WordPress/wp-includes/js/dist/edit-post.js.map

1 line
271 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["webpack://wp.[name]/webpack/bootstrap","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/objectSpread.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://wp.[name]/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/admin-notices/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/block-settings-menu/plugin-block-settings-menu-group.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/block-settings-menu/plugin-block-settings-menu-item.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/browser-url/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/fullscreen-mode/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/feature-toggle/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/fullscreen-mode-close/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/header-toolbar/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/mode-switcher/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/more-menu/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/options-menu-item/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/pinned-plugins/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/plugin-sidebar-more-menu-item/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/plugins-more-menu-group/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/post-publish-button-or-toggle.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/tools-more-menu-group/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/header/writing-menu/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/keyboard-shortcut-help-modal/config.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/keyboard-shortcut-help-modal/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/keyboard-shortcuts/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/layout/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/meta-boxes/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/meta-boxes/meta-box-visibility.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/meta-boxes/meta-boxes-area/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/meta-boxes-section.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/options/base.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/options/deferred.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/options/enable-custom-fields.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/options/enable-panel.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/options/enable-publish-sidebar.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/options/enable-tips.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/options/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/options-modal/section.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/discussion-panel/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/featured-image/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/last-revision/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/page-attributes/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/plugin-post-publish-panel/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/plugin-post-status-info/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/plugin-pre-publish-panel/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/plugin-sidebar/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-author/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-excerpt/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-format/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-link/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-pending-status/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-schedule/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-status/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-sticky/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-taxonomies/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-taxonomies/taxonomy-panel.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-trash/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/post-visibility/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/settings-header/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/settings-sidebar/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/sidebar/sidebar-header/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/text-editor/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/visual-editor/block-inspector-button.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/components/visual-editor/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/editor.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/hooks/components/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/hooks/components/media-upload/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/hooks/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/hooks/validate-multiple-use/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/keyboard-shortcuts.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/plugins/copy-content-menu-item/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/plugins/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/plugins/keyboard-shortcuts-help-menu-item/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/store/actions.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/store/defaults.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/store/effects.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/store/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/store/middlewares.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/store/reducer.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/store/selectors.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/store/utils.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/edit-post/src/utils/meta-boxes.js","webpack://wp.[name]/./node_modules/classnames/index.js","webpack://wp.[name]/./node_modules/refx/refx.js","webpack://wp.[name]/./node_modules/rememo/es/rememo.js","webpack://wp.[name]/external {\"this\":[\"wp\",\"a11y\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"apiFetch\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"blockLibrary\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"blocks\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"components\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"compose\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"coreData\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"data\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"editor\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"element\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"hooks\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"i18n\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"keycodes\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"notices\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"nux\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"plugins\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"url\"]}","webpack://wp.[name]/external {\"this\":[\"wp\",\"viewport\"]}","webpack://wp.[name]/external \"lodash\""],"names":["NOTICE_CLASS_STATUSES","updated","error","getAdminNotices","document","querySelectorAll","reverse","getNoticeHTML","element","fragments","childNodes","child","nodeType","window","Node","ELEMENT_NODE","value","nodeValue","trim","push","classList","contains","outerHTML","join","getNoticeStatus","className","hasOwnProperty","AdminNotices","convertNotices","createNotice","props","forEach","status","content","isDismissible","speak","__unstableHTML","parentNode","removeChild","Component","withDispatch","dispatch","createSlotFill","PluginBlockSettingsMenuGroup","Fill","Slot","PluginBlockSettingsMenuGroupSlot","fillProps","selectedBlocks","map","block","name","fills","isEmpty","withSelect","select","clientIds","getBlocksByClientId","isEverySelectedBlockAllowed","selected","allowed","difference","length","shouldRenderItem","selectedBlockNames","allowedBlockNames","Array","isArray","PluginBlockSettingsMenuItem","allowedBlocks","icon","label","onClick","small","role","onClose","compose","undefined","getPostEditURL","postId","addQueryArgs","post","action","getPostTrashedURL","postType","trashed","post_type","ids","BrowserURL","arguments","state","historyId","prevProps","postStatus","setTrashURL","setBrowserURL","location","href","history","replaceState","id","setState","getCurrentPost","type","FullscreenMode","isSticky","sync","body","remove","add","isActive","isFeatureActive","FeatureToggle","onToggle","info","feature","ownProps","toggleFeature","FullscreenModeClose","slug","get","__","getCurrentPostType","getPostType","HeaderToolbar","hasFixedToolbar","isLargeViewport","showInserter","toolbarAriaLabel","getEditorMode","getEditorSettings","richEditingEnabled","withViewportMatch","Header","closeGeneralSidebar","hasActiveMetaboxes","isEditorSidebarOpened","isPublishSidebarOpened","isSaving","openGeneralSidebar","toggleGeneralSidebar","shortcuts","toggleSidebar","hasMetaBoxes","hasBlockSelection","getBlockSelectionStart","isSavingMetaBoxes","sidebarToOpen","MODES","ModeSwitcher","onSwitch","mode","choices","choice","shortcut","toggleEditorMode","display","isRichEditingEnabled","ifCondition","switchEditorMode","onSelect","ariaClosed","ariaOpen","MoreMenu","isOpen","OptionsMenuItem","openModal","PinnedPlugins","PluginSidebarMoreMenuItem","children","isSelected","withPluginContext","context","sidebarName","target","getActiveGeneralSidebarName","PluginsMoreMenuGroup","PostPublishButtonOrToggle","forceIsDirty","forceIsSaving","hasPublishAction","isBeingScheduled","isLessThanMediumViewport","isPending","isPublished","isPublishSidebarEnabled","isScheduled","togglePublishSidebar","IS_TOGGLE","IS_BUTTON","component","isEditedPostBeingScheduled","isCurrentPostPending","isCurrentPostPublished","isCurrentPostScheduled","ToolsMoreMenuGroup","WritingMenu","_x","ifViewportMatches","primary","displayShortcutList","primaryShift","primaryAlt","secondary","access","ctrl","alt","ctrlShift","shiftAlt","globalShortcuts","title","keyCombination","description","ariaLabel","shortcutAriaLabel","selectionShortcuts","blockShortcuts","textFormattingShortcuts","MODAL_NAME","mapKeyCombination","character","index","ShortcutList","castArray","ShortcutSection","KeyboardShortcutHelpModal","isModalActive","toggleModal","rawShortcut","shortcutConfig","config","closeModal","EditorModeKeyboardShortcuts","toggleMode","bind","switchMode","event","preventDefault","isEditorSidebarOpen","closeSidebar","openSidebar","raw","Layout","editorSidebarOpened","pluginSidebarOpened","publishSidebarOpened","closePublishSidebar","isMobileViewport","sidebarIsOpened","classnames","publishLandmarkProps","tabIndex","PluginPrePublishPanel","PluginPostPublishPanel","isPluginSidebarOpened","navigateRegions","MetaBoxes","isVisible","metaBoxes","isMetaBoxLocationVisible","getMetaBoxesPerLocation","MetaBoxVisibility","updateDOM","getElementById","style","isEditorPanelEnabled","MetaBoxesArea","bindContainerNode","form","querySelector","container","appendChild","node","classes","OptionsModal","taxonomy","MetaBoxesSection","areCustomFieldsRegistered","sectionProps","thirdPartyMetaBoxes","filter","getAllMetaBoxes","enableCustomFields","BaseOption","isChecked","onChange","DeferredOption","EnableCustomFieldsOption","toggleCustomFields","submit","panelName","isEditorPanelRemoved","isRemoved","toggleEditorPanelEnabled","enablePublishSidebar","disablePublishSidebar","isEnabled","areTipsEnabled","enableTips","disableTips","Section","PANEL_NAME","DiscussionPanel","isOpened","onTogglePanel","isEditorPanelOpened","toggleEditorPanelOpened","FeaturedImage","applyWithSelect","getEditedPostAttribute","applyWithDispatch","partial","Sidebar","WrappedSidebar","withFocusReturn","LastRevision","PageAttributes","initialOpen","PluginPostStatusInfo","PluginSidebar","isPinnable","isPinned","togglePin","isPluginItemPinned","togglePinnedPluginItem","PostAuthor","PostExcerpt","PostFormat","PostLink","isEditable","postLink","permalinkParts","editPermalink","forceEmptyField","postTitle","postSlug","postID","prefix","suffix","prefixElement","postNameElement","suffixElement","currentSlug","cleanForSlug","newValue","isEditedPostNew","isPermalinkEditable","getPermalinkParts","link","postTypeName","isNew","isViewable","editPost","newSlug","withState","PostPendingStatus","PostSchedule","instanceId","withInstanceId","PostStatus","PostSticky","PostTaxonomies","TaxonomyPanel","taxonomyMenuName","PostTrash","PostVisibility","canEdit","SettingsHeader","openDocumentSettings","openBlockSettings","blockLabel","documentAriaLabel","documentActiveClass","blockAriaLabel","blockActiveClass","clearSelectedBlock","SettingsSidebar","SidebarHeader","closeLabel","TextEditor","onExit","displayShortcut","BlockInspectorButton","areAdvancedSettingsOpened","openEditorSidebar","noop","speakMessage","flow","withSpokenMessages","VisualEditor","Editor","settings","focusMode","initialEdits","onError","editorSettings","getEntityRecord","replaceMediaUpload","MediaUpload","addFilter","getGalleryDetailsMediaFrame","wp","media","view","MediaFrame","Post","extend","createStates","states","controller","Library","l10n","createGalleryTitle","priority","toolbar","filterable","multiple","editable","library","query","_","defaults","options","GalleryEdit","selection","editing","menu","displaySettings","GalleryAdd","slimImageObject","img","attrSet","pick","getAttachmentsCollection","order","orderby","post__in","posts_per_page","allowedTypes","gallery","modalClass","onOpen","onUpdate","currentState","GalleryDetailsMediaFrame","attachments","model","Selection","models","toJSON","frame","mimeType","frameConfig","button","text","$el","addClass","on","selections","selectedImages","attachment","updateCollection","more","frameContent","collection","toArray","trigger","mirroring","_hasMore","open","render","enhance","blocks","getBlocks","hasBlockSupport","firstOfSameType","find","isInvalid","clientId","originalBlockClientId","selectFirst","selectBlock","withMultipleValidation","createHigherOrderComponent","BlockEdit","blockType","getBlockType","outboundType","getOutboundType","minHeight","onReplace","createBlock","attributes","blockName","transform","findTransform","getBlockTransforms","reinitializeEditor","unmountComponentAtNode","reboot","initializeEditor","registerCoreBlocks","triggerGuide","CopyContentMenuItem","editedPostContent","hasCopied","registerPlugin","KeyboardShortcutsHelpMenuItem","openPublishSidebar","removeEditorPanel","pluginName","setAvailableMetaBoxesPerLocation","metaBoxesPerLocation","requestMetaBoxUpdates","metaBoxUpdatesSuccess","PREFERENCES_DEFAULTS","editorMode","isGeneralSidebarDismissed","panels","opened","features","fixedToolbar","pinnedPluginItems","VIEW_AS_LINK_SELECTOR","effects","SET_META_BOXES_PER_LOCATIONS","store","setTimeout","postboxes","page","add_postbox_toggles","wasSavingPost","isSavingPost","wasAutosavingPost","isAutosavingPost","wasPreviewingPost","isPreviewingPost","subscribe","hasActiveMetaBoxes","shouldTriggerMetaboxesSave","REQUEST_META_BOX_UPDATES","getState","additionalData","comment_status","ping_status","sticky","author","Boolean","baseFormData","FormData","formDataToMerge","getActiveMetaBoxLocations","getMetaBoxContainer","formData","reduce","memo","currentFormData","key","append","apiFetch","url","_wpMetaBoxUrl","method","parse","then","SWITCH_MODE","message","INIT","onChangeListener","isMobileViewPort","isViewportMatch","adjustSidebar","sidebarToReOpenOnExpand","isSmall","updateViewAsLink","newPermalink","nodeToUpdate","setAttribute","registerStore","reducer","actions","selectors","persist","applyMiddlewares","middlewares","refx","enhancedDispatch","Error","chain","middlewareAPI","middleware","flowRight","DEFAULT_ACTIVE_GENERAL_SIDEBAR","preferences","combineReducers","enabled","removedPanels","includes","activeGeneralSidebar","activeModal","publishSidebarActive","metaBoxLocations","locations","getPreference","isDismissed","getPreferences","preferenceKey","defaultValue","modalName","createSelector","Object","keys","isMetaBoxLocationActive","some","flatten","values","selector","listener","previousValue","selectedValue","area"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;;AClFA;AAAA;AAAe;AACf;AACA,C;;;;;;;;;;;;ACFA;AAAA;AAAe;AACf;AACA,iDAAiD,gBAAgB;AACjE;AACA;;AAEA;AACA;AACA,C;;;;;;;;;;;;ACRA;AAAA;AAAe;AACf;AACA;AACA;;AAEA;AACA,C;;;;;;;;;;;;ACNA;AAAA;AAAe;AACf;AACA;AACA;AACA,C;;;;;;;;;;;;ACJA;AAAA;AAAA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;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,QAAQ,CAACyQ,aAAT,CAAwB,kCAAkC7K,QAA1D,CAAP;AACA,CAPM;;;;;;;;;;;;ACRP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,EAAE,UAAU,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,oGAAC;AACJ,EAAE,MAAM,EAEN;AACF,CAAC;;;;;;;;;;;;;ACnDY;;AAEb;AACA;AACA;AACA,cAAc,oBAAoB;AAClC;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa;AACb;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;;;;;;;;;;;;AC/CA;AAAa;;AAEb;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA,WAAW,EAAE;AACb;AACA,YAAY,MAAM;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB;AACA,YAAY,QAAQ;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,cAAc;AACnC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB;AACA;AACA;AACA,YAAY,SAAS;AACrB;AACe;AACf;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa,iBAAiB;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,MAAM;AAClB;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA,cAAc,uBAAuB;AACrC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,KAAK;AACjB;AACA,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAc,SAAS;AACvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;ACjRD,aAAa,qCAAqC,EAAE,I;;;;;;;;;;;ACApD,aAAa,yCAAyC,EAAE,I;;;;;;;;;;;ACAxD,aAAa,6CAA6C,EAAE,I;;;;;;;;;;;ACA5D,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,2CAA2C,EAAE,I;;;;;;;;;;;ACA1D,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,yCAAyC,EAAE,I;;;;;;;;;;;ACAxD,aAAa,qCAAqC,EAAE,I;;;;;;;;;;;ACApD,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,sCAAsC,EAAE,I;;;;;;;;;;;ACArD,aAAa,qCAAqC,EAAE,I;;;;;;;;;;;ACApD,aAAa,yCAAyC,EAAE,I;;;;;;;;;;;ACAxD,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,oCAAoC,EAAE,I;;;;;;;;;;;ACAnD,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,oCAAoC,EAAE,I;;;;;;;;;;;ACAnD,aAAa,yCAAyC,EAAE,I;;;;;;;;;;;ACAxD,aAAa,iCAAiC,EAAE,I","file":"edit-post.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./node_modules/@wordpress/edit-post/build-module/index.js\");\n","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","import setPrototypeOf from \"./setPrototypeOf\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}","export default function _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}","import defineProperty from \"./defineProperty\";\nexport default function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}","import _typeof from \"../../helpers/esm/typeof\";\nimport assertThisInitialized from \"./assertThisInitialized\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import arrayWithHoles from \"./arrayWithHoles\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit\";\nimport nonIterableRest from \"./nonIterableRest\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}","import arrayWithoutHoles from \"./arrayWithoutHoles\";\nimport iterableToArray from \"./iterableToArray\";\nimport nonIterableSpread from \"./nonIterableSpread\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n}","function _typeof2(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\nexport default function _typeof(obj) {\n if (typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\") {\n _typeof = function _typeof(obj) {\n return _typeof2(obj);\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n }\n\n return _typeof(obj);\n}","/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\nimport { withDispatch } from '@wordpress/data';\n\n/**\n * Mapping of server-supported notice class names to an equivalent notices\n * module status.\n *\n * @type {Map}\n */\nconst NOTICE_CLASS_STATUSES = {\n\t'notice-success': 'success',\n\tupdated: 'success',\n\t'notice-warning': 'warning',\n\t'notice-error': 'error',\n\terror: 'error',\n\t'notice-info': 'info',\n};\n\n/**\n * Returns an array of admin notice Elements.\n *\n * @return {Element[]} Admin notice elements.\n */\nfunction getAdminNotices() {\n\t// The order is reversed to match expectations of rendered order, since a\n\t// NoticesList is itself rendered in reverse order (newest to oldest).\n\treturn [ ...document.querySelectorAll( '#wpbody-content > .notice' ) ].reverse();\n}\n\n/**\n * Given an admin notice Element, returns the relevant notice content HTML.\n *\n * @param {Element} element Admin notice element.\n *\n * @return {Element} Upgraded notice HTML.\n */\nfunction getNoticeHTML( element ) {\n\tconst fragments = [];\n\n\tfor ( const child of element.childNodes ) {\n\t\tif ( child.nodeType !== window.Node.ELEMENT_NODE ) {\n\t\t\tconst value = child.nodeValue.trim();\n\t\t\tif ( value ) {\n\t\t\t\tfragments.push( child.nodeValue );\n\t\t\t}\n\t\t} else if ( ! child.classList.contains( 'notice-dismiss' ) ) {\n\t\t\tfragments.push( child.outerHTML );\n\t\t}\n\t}\n\n\treturn fragments.join( '' );\n}\n\n/**\n * Given an admin notice Element, returns the upgraded status type, or\n * undefined if one cannot be determined (i.e. one is not assigned).\n *\n * @param {Element} element Admin notice element.\n *\n * @return {?string} Upgraded status type.\n */\nfunction getNoticeStatus( element ) {\n\tfor ( const className of element.classList ) {\n\t\tif ( NOTICE_CLASS_STATUSES.hasOwnProperty( className ) ) {\n\t\t\treturn NOTICE_CLASS_STATUSES[ className ];\n\t\t}\n\t}\n}\n\nexport class AdminNotices extends Component {\n\tcomponentDidMount() {\n\t\tthis.convertNotices();\n\t}\n\n\tconvertNotices() {\n\t\tconst { createNotice } = this.props;\n\t\tgetAdminNotices().forEach( ( element ) => {\n\t\t\t// Convert and create.\n\t\t\tconst status = getNoticeStatus( element );\n\t\t\tconst content = getNoticeHTML( element );\n\t\t\tconst isDismissible = element.classList.contains( 'is-dismissible' );\n\t\t\tcreateNotice( status, content, {\n\t\t\t\tspeak: false,\n\t\t\t\t__unstableHTML: true,\n\t\t\t\tisDismissible,\n\t\t\t} );\n\n\t\t\t// Remove (now-redundant) admin notice element.\n\t\t\telement.parentNode.removeChild( element );\n\t\t} );\n\t}\n\n\trender() {\n\t\treturn null;\n\t}\n}\n\nexport default withDispatch( ( dispatch ) => {\n\tconst { createNotice } = dispatch( 'core/notices' );\n\n\treturn { createNotice };\n} )( AdminNotices );\n","/**\n * External dependencies\n */\nimport { isEmpty, map } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { createSlotFill } from '@wordpress/components';\nimport { Fragment } from '@wordpress/element';\nimport { withSelect } from '@wordpress/data';\n\nconst { Fill: PluginBlockSettingsMenuGroup, Slot } = createSlotFill( 'PluginBlockSettingsMenuGroup' );\n\nconst PluginBlockSettingsMenuGroupSlot = ( { fillProps, selectedBlocks } ) => {\n\tselectedBlocks = map( selectedBlocks, ( block ) => block.name );\n\treturn (\n\t\t<Slot fillProps={ { ...fillProps, selectedBlocks } } >\n\t\t\t{ ( fills ) => ! isEmpty( fills ) && (\n\t\t\t\t<Fragment>\n\t\t\t\t\t<div className=\"editor-block-settings-menu__separator\" />\n\t\t\t\t\t{ fills }\n\t\t\t\t</Fragment>\n\t\t\t) }\n\t\t</Slot>\n\t);\n};\n\nPluginBlockSettingsMenuGroup.Slot = withSelect( ( select, { fillProps: { clientIds } } ) => ( {\n\tselectedBlocks: select( 'core/editor' ).getBlocksByClientId( clientIds ),\n} ) )( PluginBlockSettingsMenuGroupSlot );\n\nexport default PluginBlockSettingsMenuGroup;\n","/**\n * External dependencies\n */\nimport { difference } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { IconButton } from '@wordpress/components';\nimport { compose } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport PluginBlockSettingsMenuGroup from './plugin-block-settings-menu-group';\n\nconst isEverySelectedBlockAllowed = ( selected, allowed ) => difference( selected, allowed ).length === 0;\n\n/**\n * Plugins may want to add an item to the menu either for every block\n * or only for the specific ones provided in the `allowedBlocks` component property.\n *\n * If there are multiple blocks selected the item will be rendered if every block\n * is of one allowed type (not necessarily the same).\n *\n * @param {string[]} selectedBlockNames Array containing the names of the blocks selected\n * @param {string[]} allowedBlockNames Array containing the names of the blocks allowed\n * @return {boolean} Whether the item will be rendered or not.\n */\nconst shouldRenderItem = ( selectedBlockNames, allowedBlockNames ) => ! Array.isArray( allowedBlockNames ) ||\n\tisEverySelectedBlockAllowed( selectedBlockNames, allowedBlockNames );\n\nconst PluginBlockSettingsMenuItem = ( { allowedBlocks, icon, label, onClick, small, role } ) => (\n\t<PluginBlockSettingsMenuGroup>\n\t\t{ ( { selectedBlocks, onClose } ) => {\n\t\t\tif ( ! shouldRenderItem( selectedBlocks, allowedBlocks ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn ( <IconButton\n\t\t\t\tclassName=\"editor-block-settings-menu__control\"\n\t\t\t\tonClick={ compose( onClick, onClose ) }\n\t\t\t\ticon={ icon || 'admin-plugins' }\n\t\t\t\tlabel={ small ? label : undefined }\n\t\t\t\trole={ role }\n\t\t\t>\n\t\t\t\t{ ! small && label }\n\t\t\t</IconButton> );\n\t\t} }\n\t</PluginBlockSettingsMenuGroup>\n);\n\nexport default PluginBlockSettingsMenuItem;\n","/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\nimport { withSelect } from '@wordpress/data';\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Returns the Post's Edit URL.\n *\n * @param {number} postId Post ID.\n *\n * @return {string} Post edit URL.\n */\nexport function getPostEditURL( postId ) {\n\treturn addQueryArgs( 'post.php', { post: postId, action: 'edit' } );\n}\n\n/**\n * Returns the Post's Trashed URL.\n *\n * @param {number} postId Post ID.\n * @param {string} postType Post Type.\n *\n * @return {string} Post trashed URL.\n */\nexport function getPostTrashedURL( postId, postType ) {\n\treturn addQueryArgs( 'edit.php', {\n\t\ttrashed: 1,\n\t\tpost_type: postType,\n\t\tids: postId,\n\t} );\n}\n\nexport class BrowserURL extends Component {\n\tconstructor() {\n\t\tsuper( ...arguments );\n\n\t\tthis.state = {\n\t\t\thistoryId: null,\n\t\t};\n\t}\n\n\tcomponentDidUpdate( prevProps ) {\n\t\tconst { postId, postStatus, postType } = this.props;\n\t\tconst { historyId } = this.state;\n\n\t\tif ( postStatus === 'trash' ) {\n\t\t\tthis.setTrashURL( postId, postType );\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ( postId !== prevProps.postId || postId !== historyId ) && postStatus !== 'auto-draft' ) {\n\t\t\tthis.setBrowserURL( postId );\n\t\t}\n\t}\n\n\t/**\n\t * Navigates the browser to the post trashed URL to show a notice about the trashed post.\n\t *\n\t * @param {number} postId Post ID.\n\t * @param {string} postType Post Type.\n\t */\n\tsetTrashURL( postId, postType ) {\n\t\twindow.location.href = getPostTrashedURL( postId, postType );\n\t}\n\n\t/**\n\t * Replaces the browser URL with a post editor link for the given post ID.\n\t *\n\t * Note it is important that, since this function may be called when the\n\t * editor first loads, the result generated `getPostEditURL` matches that\n\t * produced by the server. Otherwise, the URL will change unexpectedly.\n\t *\n\t * @param {number} postId Post ID for which to generate post editor URL.\n\t */\n\tsetBrowserURL( postId ) {\n\t\twindow.history.replaceState(\n\t\t\t{ id: postId },\n\t\t\t'Post ' + postId,\n\t\t\tgetPostEditURL( postId )\n\t\t);\n\n\t\tthis.setState( () => ( {\n\t\t\thistoryId: postId,\n\t\t} ) );\n\t}\n\n\trender() {\n\t\treturn null;\n\t}\n}\n\nexport default withSelect( ( select ) => {\n\tconst { getCurrentPost } = select( 'core/editor' );\n\tconst { id, status, type } = getCurrentPost();\n\n\treturn {\n\t\tpostId: id,\n\t\tpostStatus: status,\n\t\tpostType: type,\n\t};\n} )( BrowserURL );\n","/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\nimport { withSelect } from '@wordpress/data';\n\nexport class FullscreenMode extends Component {\n\tcomponentDidMount() {\n\t\tthis.isSticky = false;\n\t\tthis.sync();\n\n\t\t// `is-fullscreen-mode` is set in PHP as a body class by Gutenberg, and this causes\n\t\t// `sticky-menu` to be applied by WordPress and prevents the admin menu being scrolled\n\t\t// even if `is-fullscreen-mode` is then removed. Let's remove `sticky-menu` here as\n\t\t// a consequence of the FullscreenMode setup\n\t\tif ( document.body.classList.contains( 'sticky-menu' ) ) {\n\t\t\tthis.isSticky = true;\n\t\t\tdocument.body.classList.remove( 'sticky-menu' );\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\tif ( this.isSticky ) {\n\t\t\tdocument.body.classList.add( 'sticky-menu' );\n\t\t}\n\t}\n\n\tcomponentDidUpdate( prevProps ) {\n\t\tif ( this.props.isActive !== prevProps.isActive ) {\n\t\t\tthis.sync();\n\t\t}\n\t}\n\n\tsync() {\n\t\tconst { isActive } = this.props;\n\t\tif ( isActive ) {\n\t\t\tdocument.body.classList.add( 'is-fullscreen-mode' );\n\t\t} else {\n\t\t\tdocument.body.classList.remove( 'is-fullscreen-mode' );\n\t\t}\n\t}\n\n\trender() {\n\t\treturn null;\n\t}\n}\n\nexport default withSelect( ( select ) => ( {\n\tisActive: select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' ),\n} ) )( FullscreenMode );\n","/**\n * WordPress Dependencies\n */\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { compose } from '@wordpress/compose';\nimport { MenuItem } from '@wordpress/components';\n\nfunction FeatureToggle( { onToggle, isActive, label, info } ) {\n\treturn (\n\t\t<MenuItem\n\t\t\ticon={ isActive && 'yes' }\n\t\t\tisSelected={ isActive }\n\t\t\tonClick={ onToggle }\n\t\t\trole=\"menuitemcheckbox\"\n\t\t\tlabel={ label }\n\t\t\tinfo={ info }\n\t\t>\n\t\t\t{ label }\n\t\t</MenuItem>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select, { feature } ) => ( {\n\t\tisActive: select( 'core/edit-post' ).isFeatureActive( feature ),\n\t} ) ),\n\twithDispatch( ( dispatch, ownProps ) => ( {\n\t\tonToggle() {\n\t\t\tdispatch( 'core/edit-post' ).toggleFeature( ownProps.feature );\n\t\t\townProps.onToggle();\n\t\t},\n\t} ) ),\n] )( FeatureToggle );\n","/**\n * External Dependencies\n */\nimport { get } from 'lodash';\n\n/**\n * WordPress Dependencies\n */\nimport { withSelect } from '@wordpress/data';\nimport { IconButton, Toolbar } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { addQueryArgs } from '@wordpress/url';\n\nfunction FullscreenModeClose( { isActive, postType } ) {\n\tif ( ! isActive || ! postType ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Toolbar className=\"edit-post-fullscreen-mode-close__toolbar\">\n\t\t\t<IconButton\n\t\t\t\ticon=\"exit\"\n\t\t\t\thref={ addQueryArgs( 'edit.php', { post_type: postType.slug } ) }\n\t\t\t\tlabel={ get(\n\t\t\t\t\tpostType,\n\t\t\t\t\t[ 'labels', 'view_items' ],\n\t\t\t\t\t__( 'View Posts' )\n\t\t\t\t) }\n\t\t\t/>\n\t\t</Toolbar>\n\t);\n}\n\nexport default withSelect( ( select ) => {\n\tconst { getCurrentPostType } = select( 'core/editor' );\n\tconst { isFeatureActive } = select( 'core/edit-post' );\n\tconst { getPostType } = select( 'core' );\n\n\treturn {\n\t\tisActive: isFeatureActive( 'fullscreenMode' ),\n\t\tpostType: getPostType( getCurrentPostType() ),\n\t};\n} )( FullscreenModeClose );\n","/**\n * WordPress dependencies\n */\nimport { compose } from '@wordpress/compose';\nimport { withSelect } from '@wordpress/data';\nimport { withViewportMatch } from '@wordpress/viewport';\nimport { DotTip } from '@wordpress/nux';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tInserter,\n\tBlockToolbar,\n\tTableOfContents,\n\tEditorHistoryRedo,\n\tEditorHistoryUndo,\n\tNavigableToolbar,\n\tBlockNavigationDropdown,\n} from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport FullscreenModeClose from '../fullscreen-mode-close';\n\nfunction HeaderToolbar( { hasFixedToolbar, isLargeViewport, showInserter } ) {\n\tconst toolbarAriaLabel = hasFixedToolbar ?\n\t\t/* translators: accessibility text for the editor toolbar when Top Toolbar is on */\n\t\t__( 'Document and block tools' ) :\n\t\t/* translators: accessibility text for the editor toolbar when Top Toolbar is off */\n\t\t__( 'Document tools' );\n\n\treturn (\n\t\t<NavigableToolbar\n\t\t\tclassName=\"edit-post-header-toolbar\"\n\t\t\taria-label={ toolbarAriaLabel }\n\t\t>\n\t\t\t<FullscreenModeClose />\n\t\t\t<div>\n\t\t\t\t<Inserter disabled={ ! showInserter } position=\"bottom right\" />\n\t\t\t\t<DotTip tipId=\"core/editor.inserter\">\n\t\t\t\t\t{ __( 'Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!' ) }\n\t\t\t\t</DotTip>\n\t\t\t</div>\n\t\t\t<EditorHistoryUndo />\n\t\t\t<EditorHistoryRedo />\n\t\t\t<TableOfContents />\n\t\t\t<BlockNavigationDropdown />\n\t\t\t{ hasFixedToolbar && isLargeViewport && (\n\t\t\t\t<div className=\"edit-post-header-toolbar__block-toolbar\">\n\t\t\t\t\t<BlockToolbar />\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</NavigableToolbar>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => ( {\n\t\thasFixedToolbar: select( 'core/edit-post' ).isFeatureActive( 'fixedToolbar' ),\n\t\tshowInserter: select( 'core/edit-post' ).getEditorMode() === 'visual' && select( 'core/editor' ).getEditorSettings().richEditingEnabled,\n\t} ) ),\n\twithViewportMatch( { isLargeViewport: 'medium' } ),\n] )( HeaderToolbar );\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { IconButton } from '@wordpress/components';\nimport {\n\tPostPreviewButton,\n\tPostSavedState,\n} from '@wordpress/editor';\nimport { withDispatch, withSelect } from '@wordpress/data';\nimport { compose } from '@wordpress/compose';\nimport { DotTip } from '@wordpress/nux';\n\n/**\n * Internal dependencies\n */\nimport MoreMenu from './more-menu';\nimport HeaderToolbar from './header-toolbar';\nimport PinnedPlugins from './pinned-plugins';\nimport shortcuts from '../../keyboard-shortcuts';\nimport PostPublishButtonOrToggle from './post-publish-button-or-toggle';\n\nfunction Header( {\n\tcloseGeneralSidebar,\n\thasActiveMetaboxes,\n\tisEditorSidebarOpened,\n\tisPublishSidebarOpened,\n\tisSaving,\n\topenGeneralSidebar,\n} ) {\n\tconst toggleGeneralSidebar = isEditorSidebarOpened ? closeGeneralSidebar : openGeneralSidebar;\n\n\treturn (\n\t\t<div\n\t\t\trole=\"region\"\n\t\t\t/* translators: accessibility text for the top bar landmark region. */\n\t\t\taria-label={ __( 'Editor top bar' ) }\n\t\t\tclassName=\"edit-post-header\"\n\t\t\ttabIndex=\"-1\"\n\t\t>\n\t\t\t<HeaderToolbar />\n\t\t\t<div className=\"edit-post-header__settings\">\n\t\t\t\t{ ! isPublishSidebarOpened && (\n\t\t\t\t\t// This button isn't completely hidden by the publish sidebar.\n\t\t\t\t\t// We can't hide the whole toolbar when the publish sidebar is open because\n\t\t\t\t\t// we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node.\n\t\t\t\t\t// We track that DOM node to return focus to the PostPublishButtonOrToggle\n\t\t\t\t\t// when the publish sidebar has been closed.\n\t\t\t\t\t<PostSavedState\n\t\t\t\t\t\tforceIsDirty={ hasActiveMetaboxes }\n\t\t\t\t\t\tforceIsSaving={ isSaving }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t\t<PostPreviewButton\n\t\t\t\t\tforceIsAutosaveable={ hasActiveMetaboxes }\n\t\t\t\t\tforcePreviewLink={ isSaving ? null : undefined }\n\t\t\t\t/>\n\t\t\t\t<PostPublishButtonOrToggle\n\t\t\t\t\tforceIsDirty={ hasActiveMetaboxes }\n\t\t\t\t\tforceIsSaving={ isSaving }\n\t\t\t\t/>\n\t\t\t\t<div>\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\ticon=\"admin-generic\"\n\t\t\t\t\t\tlabel={ __( 'Settings' ) }\n\t\t\t\t\t\tonClick={ toggleGeneralSidebar }\n\t\t\t\t\t\tisToggled={ isEditorSidebarOpened }\n\t\t\t\t\t\taria-expanded={ isEditorSidebarOpened }\n\t\t\t\t\t\tshortcut={ shortcuts.toggleSidebar }\n\t\t\t\t\t/>\n\t\t\t\t\t<DotTip tipId=\"core/editor.settings\">\n\t\t\t\t\t\t{ __( 'Youll find more settings for your page and blocks in the sidebar. Click “Settings” to open it.' ) }\n\t\t\t\t\t</DotTip>\n\t\t\t\t</div>\n\t\t\t\t<PinnedPlugins.Slot />\n\t\t\t\t<MoreMenu />\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\thasActiveMetaboxes: select( 'core/edit-post' ).hasMetaBoxes(),\n\t\thasBlockSelection: !! select( 'core/editor' ).getBlockSelectionStart(),\n\t\tisEditorSidebarOpened: select( 'core/edit-post' ).isEditorSidebarOpened(),\n\t\tisPublishSidebarOpened: select( 'core/edit-post' ).isPublishSidebarOpened(),\n\t\tisSaving: select( 'core/edit-post' ).isSavingMetaBoxes(),\n\t} ) ),\n\twithDispatch( ( dispatch, { hasBlockSelection } ) => {\n\t\tconst { openGeneralSidebar, closeGeneralSidebar } = dispatch( 'core/edit-post' );\n\t\tconst sidebarToOpen = hasBlockSelection ? 'edit-post/block' : 'edit-post/document';\n\t\treturn {\n\t\t\topenGeneralSidebar: () => openGeneralSidebar( sidebarToOpen ),\n\t\t\tcloseGeneralSidebar: closeGeneralSidebar,\n\t\t\thasBlockSelection: undefined,\n\t\t};\n\t} ),\n)( Header );\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { MenuItemsChoice, MenuGroup } from '@wordpress/components';\nimport { compose, ifCondition } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport shortcuts from '../../../keyboard-shortcuts';\n/**\n * Set of available mode options.\n *\n * @type {Array}\n */\nconst MODES = [\n\t{\n\t\tvalue: 'visual',\n\t\tlabel: __( 'Visual Editor' ),\n\t},\n\t{\n\t\tvalue: 'text',\n\t\tlabel: __( 'Code Editor' ),\n\t},\n];\n\nfunction ModeSwitcher( { onSwitch, mode } ) {\n\tconst choices = MODES.map( ( choice ) => {\n\t\tif ( choice.value !== mode ) {\n\t\t\treturn { ...choice, shortcut: shortcuts.toggleEditorMode.display };\n\t\t}\n\t\treturn choice;\n\t} );\n\n\treturn (\n\t\t<MenuGroup\n\t\t\tlabel={ __( 'Editor' ) }\n\t\t>\n\t\t\t<MenuItemsChoice\n\t\t\t\tchoices={ choices }\n\t\t\t\tvalue={ mode }\n\t\t\t\tonSelect={ onSwitch }\n\t\t\t/>\n\t\t</MenuGroup>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => ( {\n\t\tisRichEditingEnabled: select( 'core/editor' ).getEditorSettings().richEditingEnabled,\n\t\tmode: select( 'core/edit-post' ).getEditorMode(),\n\t} ) ),\n\tifCondition( ( { isRichEditingEnabled } ) => isRichEditingEnabled ),\n\twithDispatch( ( dispatch, ownProps ) => ( {\n\t\tonSwitch( mode ) {\n\t\t\tdispatch( 'core/edit-post' ).switchEditorMode( mode );\n\t\t\townProps.onSelect( mode );\n\t\t},\n\t} ) ),\n] )( ModeSwitcher );\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { IconButton, Dropdown, MenuGroup } from '@wordpress/components';\nimport { Fragment } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport ModeSwitcher from '../mode-switcher';\nimport PluginMoreMenuGroup from '../plugins-more-menu-group';\nimport ToolsMoreMenuGroup from '../tools-more-menu-group';\nimport OptionsMenuItem from '../options-menu-item';\nimport WritingMenu from '../writing-menu';\n\nconst ariaClosed = __( 'Show more tools & options' );\nconst ariaOpen = __( 'Hide more tools & options' );\n\nconst MoreMenu = () => (\n\t<Dropdown\n\t\tclassName=\"edit-post-more-menu\"\n\t\tcontentClassName=\"edit-post-more-menu__content\"\n\t\tposition=\"bottom left\"\n\t\trenderToggle={ ( { isOpen, onToggle } ) => (\n\t\t\t<IconButton\n\t\t\t\ticon=\"ellipsis\"\n\t\t\t\tlabel={ isOpen ? ariaOpen : ariaClosed }\n\t\t\t\tonClick={ onToggle }\n\t\t\t\taria-expanded={ isOpen }\n\t\t\t/>\n\t\t) }\n\t\trenderContent={ ( { onClose } ) => (\n\t\t\t<Fragment>\n\t\t\t\t<WritingMenu onClose={ onClose } />\n\t\t\t\t<ModeSwitcher onSelect={ onClose } />\n\t\t\t\t<PluginMoreMenuGroup.Slot fillProps={ { onClose } } />\n\t\t\t\t<ToolsMoreMenuGroup.Slot fillProps={ { onClose } } />\n\t\t\t\t<MenuGroup>\n\t\t\t\t\t<OptionsMenuItem onSelect={ onClose } />\n\t\t\t\t</MenuGroup>\n\t\t\t</Fragment>\n\t\t) }\n\t/>\n);\n\nexport default MoreMenu;\n","/**\n * WordPress Dependencies\n */\nimport { withDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { MenuItem } from '@wordpress/components';\n\nexport function OptionsMenuItem( { openModal, onSelect } ) {\n\treturn (\n\t\t<MenuItem\n\t\t\tonClick={ () => {\n\t\t\t\tonSelect();\n\t\t\t\topenModal( 'edit-post/options' );\n\t\t\t} }\n\t\t>\n\t\t\t{ __( 'Options' ) }\n\t\t</MenuItem>\n\t);\n}\n\nexport default withDispatch( ( dispatch ) => {\n\tconst { openModal } = dispatch( 'core/edit-post' );\n\n\treturn {\n\t\topenModal,\n\t};\n} )( OptionsMenuItem );\n","/**\n * External dependencies\n */\nimport { isEmpty } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { createSlotFill } from '@wordpress/components';\n\nconst { Fill: PinnedPlugins, Slot } = createSlotFill( 'PinnedPlugins' );\n\nPinnedPlugins.Slot = ( props ) => (\n\t<Slot { ...props }>\n\t\t{ ( fills ) => ! isEmpty( fills ) && (\n\t\t\t<div className=\"edit-post-pinned-plugins\">\n\t\t\t\t{ fills }\n\t\t\t</div>\n\t\t) }\n\t</Slot>\n);\n\nexport default PinnedPlugins;\n","/**\n * WordPress dependencies\n */\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { MenuItem } from '@wordpress/components';\nimport { withPluginContext } from '@wordpress/plugins';\n\n/**\n * Internal dependencies\n */\nimport PluginsMoreMenuGroup from '../plugins-more-menu-group';\n\nconst PluginSidebarMoreMenuItem = ( { children, icon, isSelected, onClick } ) => (\n\t<PluginsMoreMenuGroup>\n\t\t{ ( fillProps ) => (\n\t\t\t<MenuItem\n\t\t\t\ticon={ isSelected ? 'yes' : icon }\n\t\t\t\tisSelected={ isSelected }\n\t\t\t\trole=\"menuitemcheckbox\"\n\t\t\t\tonClick={ compose( onClick, fillProps.onClose ) }\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</MenuItem>\n\t\t) }\n\t</PluginsMoreMenuGroup>\n);\n\nexport default compose(\n\twithPluginContext( ( context, ownProps ) => {\n\t\treturn {\n\t\t\ticon: ownProps.icon || context.icon,\n\t\t\tsidebarName: `${ context.name }/${ ownProps.target }`,\n\t\t};\n\t} ),\n\twithSelect( ( select, { sidebarName } ) => {\n\t\tconst {\n\t\t\tgetActiveGeneralSidebarName,\n\t\t} = select( 'core/edit-post' );\n\n\t\treturn {\n\t\t\tisSelected: getActiveGeneralSidebarName() === sidebarName,\n\t\t};\n\t} ),\n\twithDispatch( ( dispatch, { isSelected, sidebarName } ) => {\n\t\tconst {\n\t\t\tcloseGeneralSidebar,\n\t\t\topenGeneralSidebar,\n\t\t} = dispatch( 'core/edit-post' );\n\t\tconst onClick = isSelected ?\n\t\t\tcloseGeneralSidebar :\n\t\t\t() => openGeneralSidebar( sidebarName );\n\n\t\treturn { onClick };\n\t} ),\n)( PluginSidebarMoreMenuItem );\n","/**\n * External dependencies\n */\nimport { isEmpty } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { createSlotFill, MenuGroup } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nconst { Fill: PluginsMoreMenuGroup, Slot } = createSlotFill( 'PluginsMoreMenuGroup' );\n\nPluginsMoreMenuGroup.Slot = ( { fillProps } ) => (\n\t<Slot fillProps={ fillProps }>\n\t\t{ ( fills ) => ! isEmpty( fills ) && (\n\t\t\t<MenuGroup label={ __( 'Plugins' ) }>\n\t\t\t\t{ fills }\n\t\t\t</MenuGroup>\n\t\t) }\n\t</Slot>\n);\n\nexport default PluginsMoreMenuGroup;\n","/**\n * External Dependencies\n */\nimport { get } from 'lodash';\n\n/**\n * WordPress dependencies.\n */\nimport { compose } from '@wordpress/compose';\nimport { withDispatch, withSelect } from '@wordpress/data';\nimport { PostPublishButton } from '@wordpress/editor';\nimport { withViewportMatch } from '@wordpress/viewport';\n\nexport function PostPublishButtonOrToggle( {\n\tforceIsDirty,\n\tforceIsSaving,\n\thasPublishAction,\n\tisBeingScheduled,\n\tisLessThanMediumViewport,\n\tisPending,\n\tisPublished,\n\tisPublishSidebarEnabled,\n\tisPublishSidebarOpened,\n\tisScheduled,\n\ttogglePublishSidebar,\n} ) {\n\tconst IS_TOGGLE = 'toggle';\n\tconst IS_BUTTON = 'button';\n\tlet component;\n\n\t/**\n\t * Conditions to show a BUTTON (publish directly) or a TOGGLE (open publish sidebar):\n\t *\n\t * 1) We want to show a BUTTON when the post status is at the _final stage_\n\t * for a particular role (see https://codex.wordpress.org/Post_Status):\n\t *\n\t * - is published\n\t * - is scheduled to be published\n\t * - is pending and can't be published (but only for viewports >= medium).\n\t * \t Originally, we considered showing a button for pending posts that couldn't be published\n\t * \t (for example, for an author with the contributor role). Some languages can have\n\t * \t long translations for \"Submit for review\", so given the lack of UI real estate available\n\t * \t we decided to take into account the viewport in that case.\n\t * \t See: https://github.com/WordPress/gutenberg/issues/10475\n\t *\n\t * 2) Then, in small viewports, we'll show a TOGGLE.\n\t *\n\t * 3) Finally, we'll use the publish sidebar status to decide:\n\t *\n\t * - if it is enabled, we show a TOGGLE\n\t * - if it is disabled, we show a BUTTON\n\t */\n\tif (\n\t\tisPublished ||\n\t\t( isScheduled && isBeingScheduled ) ||\n\t\t( isPending && ! hasPublishAction && ! isLessThanMediumViewport )\n\t) {\n\t\tcomponent = IS_BUTTON;\n\t} else if ( isLessThanMediumViewport ) {\n\t\tcomponent = IS_TOGGLE;\n\t} else if ( isPublishSidebarEnabled ) {\n\t\tcomponent = IS_TOGGLE;\n\t} else {\n\t\tcomponent = IS_BUTTON;\n\t}\n\n\treturn (\n\t\t<PostPublishButton\n\t\t\tforceIsDirty={ forceIsDirty }\n\t\t\tforceIsSaving={ forceIsSaving }\n\t\t\tisOpen={ isPublishSidebarOpened }\n\t\t\tisToggle={ component === IS_TOGGLE }\n\t\t\tonToggle={ togglePublishSidebar }\n\t\t/>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\thasPublishAction: get(\n\t\t\tselect( 'core/editor' ).getCurrentPost(),\n\t\t\t[ '_links', 'wp:action-publish' ],\n\t\t\tfalse\n\t\t),\n\t\tisBeingScheduled: select( 'core/editor' ).isEditedPostBeingScheduled(),\n\t\tisPending: select( 'core/editor' ).isCurrentPostPending(),\n\t\tisPublished: select( 'core/editor' ).isCurrentPostPublished(),\n\t\tisPublishSidebarEnabled: select( 'core/editor' ).isPublishSidebarEnabled(),\n\t\tisPublishSidebarOpened: select( 'core/edit-post' ).isPublishSidebarOpened(),\n\t\tisScheduled: select( 'core/editor' ).isCurrentPostScheduled(),\n\t} ) ),\n\twithDispatch( ( dispatch ) => {\n\t\tconst { togglePublishSidebar } = dispatch( 'core/edit-post' );\n\t\treturn {\n\t\t\ttogglePublishSidebar,\n\t\t};\n\t} ),\n\twithViewportMatch( { isLessThanMediumViewport: '< medium' } ),\n)( PostPublishButtonOrToggle );\n","/**\n * External dependencies\n */\nimport { isEmpty } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { createSlotFill, MenuGroup } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nconst { Fill: ToolsMoreMenuGroup, Slot } = createSlotFill( 'ToolsMoreMenuGroup' );\n\nToolsMoreMenuGroup.Slot = ( { fillProps } ) => (\n\t<Slot fillProps={ fillProps }>\n\t\t{ ( fills ) => ! isEmpty( fills ) && (\n\t\t\t<MenuGroup label={ __( 'Tools' ) }>\n\t\t\t\t{ fills }\n\t\t\t</MenuGroup>\n\t\t) }\n\t</Slot>\n);\n\nexport default ToolsMoreMenuGroup;\n","/**\n * WordPress Dependencies\n */\nimport { MenuGroup } from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\nimport { ifViewportMatches } from '@wordpress/viewport';\n\n/**\n * Internal dependencies\n */\nimport FeatureToggle from '../feature-toggle';\n\nfunction WritingMenu( { onClose } ) {\n\treturn (\n\t\t<MenuGroup\n\t\t\tlabel={ _x( 'View', 'noun' ) }\n\t\t>\n\t\t\t<FeatureToggle\n\t\t\t\tfeature=\"fixedToolbar\"\n\t\t\t\tlabel={ __( 'Top Toolbar' ) }\n\t\t\t\tinfo={ __( 'Access all block and document tools in a single place' ) }\n\t\t\t\tonToggle={ onClose } />\n\t\t\t<FeatureToggle\n\t\t\t\tfeature=\"focusMode\"\n\t\t\t\tlabel={ __( 'Spotlight Mode' ) }\n\t\t\t\tinfo={ __( 'Focus on one block at a time' ) }\n\t\t\t\tonToggle={ onClose } />\n\t\t\t<FeatureToggle\n\t\t\t\tfeature=\"fullscreenMode\"\n\t\t\t\tlabel={ __( 'Fullscreen Mode' ) }\n\t\t\t\tinfo={ __( 'Work without distraction' ) }\n\t\t\t\tonToggle={ onClose } />\n\t\t</MenuGroup>\n\t);\n}\n\nexport default ifViewportMatches( 'medium' )( WritingMenu );\n","/**\n * WordPress dependencies\n */\nimport { displayShortcutList, shortcutAriaLabel } from '@wordpress/keycodes';\nimport { __ } from '@wordpress/i18n';\n\nconst {\n\t// Cmd+<key> on a mac, Ctrl+<key> elsewhere.\n\tprimary,\n\t// Shift+Cmd+<key> on a mac, Ctrl+Shift+<key> elsewhere.\n\tprimaryShift,\n\t// Option+Cmd+<key> on a mac, Ctrl+Alt+<key> elsewhere.\n\tprimaryAlt,\n\t// Shift+Alt+Cmd+<key> on a mac, Ctrl+Shift+Akt+<key> elsewhere.\n\tsecondary,\n\t// Ctrl+Alt+<key> on a mac, Shift+Alt+<key> elsewhere.\n\taccess,\n\tctrl,\n\talt,\n\tctrlShift,\n\tshiftAlt,\n} = displayShortcutList;\n\nconst globalShortcuts = {\n\ttitle: __( 'Global shortcuts' ),\n\tshortcuts: [\n\t\t{\n\t\t\tkeyCombination: access( 'h' ),\n\t\t\tdescription: __( 'Display this help.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primary( 's' ),\n\t\t\tdescription: __( 'Save your changes.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primary( 'z' ),\n\t\t\tdescription: __( 'Undo your last changes.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primaryShift( 'z' ),\n\t\t\tdescription: __( 'Redo your last undo.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primaryShift( ',' ),\n\t\t\tdescription: __( 'Show or hide the settings sidebar.' ),\n\t\t\tariaLabel: shortcutAriaLabel.primaryShift( ',' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: access( 'o' ),\n\t\t\tdescription: __( 'Open the block navigation menu.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: ctrl( '`' ),\n\t\t\tdescription: __( 'Navigate to the next part of the editor.' ),\n\t\t\tariaLabel: shortcutAriaLabel.ctrl( '`' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: ctrlShift( '`' ),\n\t\t\tdescription: __( 'Navigate to the previous part of the editor.' ),\n\t\t\tariaLabel: shortcutAriaLabel.ctrlShift( '`' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: shiftAlt( 'n' ),\n\t\t\tdescription: __( 'Navigate to the next part of the editor (alternative).' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: shiftAlt( 'p' ),\n\t\t\tdescription: __( 'Navigate to the previous part of the editor (alternative).' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: alt( 'F10' ),\n\t\t\tdescription: __( 'Navigate to the nearest toolbar.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: secondary( 'm' ),\n\t\t\tdescription: __( 'Switch between Visual Editor and Code Editor.' ),\n\t\t},\n\t],\n};\n\nconst selectionShortcuts = {\n\ttitle: __( 'Selection shortcuts' ),\n\tshortcuts: [\n\t\t{\n\t\t\tkeyCombination: primary( 'a' ),\n\t\t\tdescription: __( 'Select all text when typing. Press again to select all blocks.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: 'Esc',\n\t\t\tdescription: __( 'Clear selection.' ),\n\t\t\t/* translators: The 'escape' key on a keyboard. */\n\t\t\tariaLabel: __( 'Escape' ),\n\t\t},\n\t],\n};\n\nconst blockShortcuts = {\n\ttitle: __( 'Block shortcuts' ),\n\tshortcuts: [\n\t\t{\n\t\t\tkeyCombination: primaryShift( 'd' ),\n\t\t\tdescription: __( 'Duplicate the selected block(s).' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: access( 'z' ),\n\t\t\tdescription: __( 'Remove the selected block(s).' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primaryAlt( 't' ),\n\t\t\tdescription: __( 'Insert a new block before the selected block(s).' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primaryAlt( 'y' ),\n\t\t\tdescription: __( 'Insert a new block after the selected block(s).' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: '/',\n\t\t\tdescription: __( 'Change the block type after adding a new paragraph.' ),\n\t\t\t/* translators: The forward-slash character. e.g. '/'. */\n\t\t\tariaLabel: __( 'Forward-slash' ),\n\t\t},\n\t],\n};\n\nconst textFormattingShortcuts = {\n\ttitle: __( 'Text formatting' ),\n\tshortcuts: [\n\t\t{\n\t\t\tkeyCombination: primary( 'b' ),\n\t\t\tdescription: __( 'Make the selected text bold.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primary( 'i' ),\n\t\t\tdescription: __( 'Make the selected text italic.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primary( 'u' ),\n\t\t\tdescription: __( 'Underline the selected text.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primary( 'k' ),\n\t\t\tdescription: __( 'Convert the selected text into a link.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: primaryShift( 'k' ),\n\t\t\tdescription: __( 'Remove a link.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: access( 'd' ),\n\t\t\tdescription: __( 'Add a strikethrough to the selected text.' ),\n\t\t},\n\t\t{\n\t\t\tkeyCombination: access( 'x' ),\n\t\t\tdescription: __( 'Display the selected text in a monospaced font.' ),\n\t\t},\n\t],\n};\n\nexport default [\n\tglobalShortcuts,\n\tselectionShortcuts,\n\tblockShortcuts,\n\ttextFormattingShortcuts,\n];\n","/**\n * External dependencies\n */\nimport { castArray } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { Fragment } from '@wordpress/element';\nimport { Modal, KeyboardShortcuts } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { rawShortcut } from '@wordpress/keycodes';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { compose } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport shortcutConfig from './config';\n\nconst MODAL_NAME = 'edit-post/keyboard-shortcut-help';\n\nconst mapKeyCombination = ( keyCombination ) => keyCombination.map( ( character, index ) => {\n\tif ( character === '+' ) {\n\t\treturn (\n\t\t\t<Fragment key={ index }>\n\t\t\t\t{ character }\n\t\t\t</Fragment>\n\t\t);\n\t}\n\n\treturn (\n\t\t<kbd\n\t\t\tkey={ index }\n\t\t\tclassName=\"edit-post-keyboard-shortcut-help__shortcut-key\"\n\t\t>\n\t\t\t{ character }\n\t\t</kbd>\n\t);\n} );\n\nconst ShortcutList = ( { shortcuts } ) => (\n\t<dl className=\"edit-post-keyboard-shortcut-help__shortcut-list\">\n\t\t{ shortcuts.map( ( { keyCombination, description, ariaLabel }, index ) => (\n\t\t\t<div\n\t\t\t\tclassName=\"edit-post-keyboard-shortcut-help__shortcut\"\n\t\t\t\tkey={ index }\n\t\t\t>\n\t\t\t\t<dt className=\"edit-post-keyboard-shortcut-help__shortcut-term\">\n\t\t\t\t\t<kbd className=\"edit-post-keyboard-shortcut-help__shortcut-key-combination\" aria-label={ ariaLabel }>\n\t\t\t\t\t\t{ mapKeyCombination( castArray( keyCombination ) ) }\n\t\t\t\t\t</kbd>\n\t\t\t\t</dt>\n\t\t\t\t<dd className=\"edit-post-keyboard-shortcut-help__shortcut-description\">\n\t\t\t\t\t{ description }\n\t\t\t\t</dd>\n\t\t\t</div>\n\t\t) ) }\n\t</dl>\n);\n\nconst ShortcutSection = ( { title, shortcuts } ) => (\n\t<section className=\"edit-post-keyboard-shortcut-help__section\">\n\t\t<h2 className=\"edit-post-keyboard-shortcut-help__section-title\">\n\t\t\t{ title }\n\t\t</h2>\n\t\t<ShortcutList shortcuts={ shortcuts } />\n\t</section>\n);\n\nexport function KeyboardShortcutHelpModal( { isModalActive, toggleModal } ) {\n\tconst title = (\n\t\t<span className=\"edit-post-keyboard-shortcut-help__title\">\n\t\t\t{ __( 'Keyboard Shortcuts' ) }\n\t\t</span>\n\t);\n\n\treturn (\n\t\t<Fragment>\n\t\t\t<KeyboardShortcuts\n\t\t\t\tbindGlobal\n\t\t\t\tshortcuts={ {\n\t\t\t\t\t[ rawShortcut.access( 'h' ) ]: toggleModal,\n\t\t\t\t} }\n\t\t\t/>\n\t\t\t{ isModalActive && (\n\t\t\t\t<Modal\n\t\t\t\t\tclassName=\"edit-post-keyboard-shortcut-help\"\n\t\t\t\t\ttitle={ title }\n\t\t\t\t\tcloseLabel={ __( 'Close' ) }\n\t\t\t\t\tonRequestClose={ toggleModal }\n\t\t\t\t>\n\t\t\t\t\t{ shortcutConfig.map( ( config, index ) => (\n\t\t\t\t\t\t<ShortcutSection key={ index } { ...config } />\n\t\t\t\t\t) ) }\n\t\t\t\t</Modal>\n\t\t\t) }\n\t\t</Fragment>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => ( {\n\t\tisModalActive: select( 'core/edit-post' ).isModalActive( MODAL_NAME ),\n\t} ) ),\n\twithDispatch( ( dispatch, { isModalActive } ) => {\n\t\tconst {\n\t\t\topenModal,\n\t\t\tcloseModal,\n\t\t} = dispatch( 'core/edit-post' );\n\n\t\treturn {\n\t\t\ttoggleModal: () => isModalActive ? closeModal() : openModal( MODAL_NAME ),\n\t\t};\n\t} ),\n] )( KeyboardShortcutHelpModal );\n","/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\nimport { KeyboardShortcuts } from '@wordpress/components';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { compose } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport shortcuts from '../../keyboard-shortcuts';\n\nclass EditorModeKeyboardShortcuts extends Component {\n\tconstructor() {\n\t\tsuper( ...arguments );\n\n\t\tthis.toggleMode = this.toggleMode.bind( this );\n\t\tthis.toggleSidebar = this.toggleSidebar.bind( this );\n\t}\n\n\ttoggleMode() {\n\t\tconst { mode, switchMode, isRichEditingEnabled } = this.props;\n\t\tif ( ! isRichEditingEnabled ) {\n\t\t\treturn;\n\t\t}\n\t\tswitchMode( mode === 'visual' ? 'text' : 'visual' );\n\t}\n\n\ttoggleSidebar( event ) {\n\t\t// This shortcut has no known clashes, but use preventDefault to prevent any\n\t\t// obscure shortcuts from triggering.\n\t\tevent.preventDefault();\n\t\tconst { isEditorSidebarOpen, closeSidebar, openSidebar } = this.props;\n\n\t\tif ( isEditorSidebarOpen ) {\n\t\t\tcloseSidebar();\n\t\t} else {\n\t\t\topenSidebar();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<KeyboardShortcuts\n\t\t\t\tbindGlobal\n\t\t\t\tshortcuts={ {\n\t\t\t\t\t[ shortcuts.toggleEditorMode.raw ]: this.toggleMode,\n\t\t\t\t\t[ shortcuts.toggleSidebar.raw ]: this.toggleSidebar,\n\t\t\t\t} }\n\t\t\t/>\n\t\t);\n\t}\n}\n\nexport default compose( [\n\twithSelect( ( select ) => ( {\n\t\tisRichEditingEnabled: select( 'core/editor' ).getEditorSettings().richEditingEnabled,\n\t\tmode: select( 'core/edit-post' ).getEditorMode(),\n\t\tisEditorSidebarOpen: select( 'core/edit-post' ).isEditorSidebarOpened(),\n\t\thasBlockSelection: !! select( 'core/editor' ).getBlockSelectionStart(),\n\t} ) ),\n\twithDispatch( ( dispatch, { hasBlockSelection } ) => ( {\n\t\tswitchMode( mode ) {\n\t\t\tdispatch( 'core/edit-post' ).switchEditorMode( mode );\n\t\t},\n\t\topenSidebar() {\n\t\t\tconst sidebarToOpen = hasBlockSelection ? 'edit-post/block' : 'edit-post/document';\n\t\t\tdispatch( 'core/edit-post' ).openGeneralSidebar( sidebarToOpen );\n\t\t},\n\t\tcloseSidebar: dispatch( 'core/edit-post' ).closeGeneralSidebar,\n\t} ) ),\n] )( EditorModeKeyboardShortcuts );\n","/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { Button, Popover, ScrollLock, navigateRegions } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tAutosaveMonitor,\n\tUnsavedChangesWarning,\n\tEditorNotices,\n\tPostPublishPanel,\n\tPreserveScrollInReorder,\n} from '@wordpress/editor';\nimport { withDispatch, withSelect } from '@wordpress/data';\nimport { Fragment } from '@wordpress/element';\nimport { PluginArea } from '@wordpress/plugins';\nimport { withViewportMatch } from '@wordpress/viewport';\nimport { compose } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport BrowserURL from '../browser-url';\nimport Header from '../header';\nimport TextEditor from '../text-editor';\nimport VisualEditor from '../visual-editor';\nimport EditorModeKeyboardShortcuts from '../keyboard-shortcuts';\nimport KeyboardShortcutHelpModal from '../keyboard-shortcut-help-modal';\nimport OptionsModal from '../options-modal';\nimport MetaBoxes from '../meta-boxes';\nimport SettingsSidebar from '../sidebar/settings-sidebar';\nimport Sidebar from '../sidebar';\nimport PluginPostPublishPanel from '../sidebar/plugin-post-publish-panel';\nimport PluginPrePublishPanel from '../sidebar/plugin-pre-publish-panel';\nimport FullscreenMode from '../fullscreen-mode';\nimport AdminNotices from '../admin-notices';\n\nfunction Layout( {\n\tmode,\n\teditorSidebarOpened,\n\tpluginSidebarOpened,\n\tpublishSidebarOpened,\n\thasFixedToolbar,\n\tclosePublishSidebar,\n\ttogglePublishSidebar,\n\thasActiveMetaboxes,\n\tisSaving,\n\tisMobileViewport,\n\tisRichEditingEnabled,\n} ) {\n\tconst sidebarIsOpened = editorSidebarOpened || pluginSidebarOpened || publishSidebarOpened;\n\n\tconst className = classnames( 'edit-post-layout', {\n\t\t'is-sidebar-opened': sidebarIsOpened,\n\t\t'has-fixed-toolbar': hasFixedToolbar,\n\t} );\n\n\tconst publishLandmarkProps = {\n\t\trole: 'region',\n\t\t/* translators: accessibility text for the publish landmark region. */\n\t\t'aria-label': __( 'Editor publish' ),\n\t\ttabIndex: -1,\n\t};\n\treturn (\n\t\t<div className={ className }>\n\t\t\t<FullscreenMode />\n\t\t\t<BrowserURL />\n\t\t\t<UnsavedChangesWarning />\n\t\t\t<AutosaveMonitor />\n\t\t\t<AdminNotices />\n\t\t\t<Header />\n\t\t\t<div\n\t\t\t\tclassName=\"edit-post-layout__content\"\n\t\t\t\trole=\"region\"\n\t\t\t\t/* translators: accessibility text for the content landmark region. */\n\t\t\t\taria-label={ __( 'Editor content' ) }\n\t\t\t\ttabIndex=\"-1\"\n\t\t\t>\n\t\t\t\t<EditorNotices />\n\t\t\t\t<PreserveScrollInReorder />\n\t\t\t\t<EditorModeKeyboardShortcuts />\n\t\t\t\t<KeyboardShortcutHelpModal />\n\t\t\t\t<OptionsModal />\n\t\t\t\t{ ( mode === 'text' || ! isRichEditingEnabled ) && <TextEditor /> }\n\t\t\t\t{ isRichEditingEnabled && mode === 'visual' && <VisualEditor /> }\n\t\t\t\t<div className=\"edit-post-layout__metaboxes\">\n\t\t\t\t\t<MetaBoxes location=\"normal\" />\n\t\t\t\t</div>\n\t\t\t\t<div className=\"edit-post-layout__metaboxes\">\n\t\t\t\t\t<MetaBoxes location=\"advanced\" />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{ publishSidebarOpened ? (\n\t\t\t\t<PostPublishPanel\n\t\t\t\t\t{ ...publishLandmarkProps }\n\t\t\t\t\tonClose={ closePublishSidebar }\n\t\t\t\t\tforceIsDirty={ hasActiveMetaboxes }\n\t\t\t\t\tforceIsSaving={ isSaving }\n\t\t\t\t\tPrePublishExtension={ PluginPrePublishPanel.Slot }\n\t\t\t\t\tPostPublishExtension={ PluginPostPublishPanel.Slot }\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<Fragment>\n\t\t\t\t\t<div className=\"edit-post-toggle-publish-panel\" { ...publishLandmarkProps }>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tisDefault\n\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\tclassName=\"edit-post-toggle-publish-panel__button\"\n\t\t\t\t\t\t\tonClick={ togglePublishSidebar }\n\t\t\t\t\t\t\taria-expanded={ false }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Open publish panel' ) }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<SettingsSidebar />\n\t\t\t\t\t<Sidebar.Slot />\n\t\t\t\t\t{\n\t\t\t\t\t\tisMobileViewport && sidebarIsOpened && <ScrollLock />\n\t\t\t\t\t}\n\t\t\t\t</Fragment>\n\t\t\t) }\n\t\t\t<Popover.Slot />\n\t\t\t<PluginArea />\n\t\t</div>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\tmode: select( 'core/edit-post' ).getEditorMode(),\n\t\teditorSidebarOpened: select( 'core/edit-post' ).isEditorSidebarOpened(),\n\t\tpluginSidebarOpened: select( 'core/edit-post' ).isPluginSidebarOpened(),\n\t\tpublishSidebarOpened: select( 'core/edit-post' ).isPublishSidebarOpened(),\n\t\thasFixedToolbar: select( 'core/edit-post' ).isFeatureActive( 'fixedToolbar' ),\n\t\thasActiveMetaboxes: select( 'core/edit-post' ).hasMetaBoxes(),\n\t\tisSaving: select( 'core/edit-post' ).isSavingMetaBoxes(),\n\t\tisRichEditingEnabled: select( 'core/editor' ).getEditorSettings().richEditingEnabled,\n\t} ) ),\n\twithDispatch( ( dispatch ) => {\n\t\tconst { closePublishSidebar, togglePublishSidebar } = dispatch( 'core/edit-post' );\n\t\treturn {\n\t\t\tclosePublishSidebar,\n\t\t\ttogglePublishSidebar,\n\t\t};\n\t} ),\n\tnavigateRegions,\n\twithViewportMatch( { isMobileViewport: '< small' } ),\n)( Layout );\n","/**\n * External dependencies\n */\nimport { map } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { withSelect } from '@wordpress/data';\nimport { Fragment } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport MetaBoxesArea from './meta-boxes-area';\nimport MetaBoxVisibility from './meta-box-visibility';\n\nfunction MetaBoxes( { location, isVisible, metaBoxes } ) {\n\treturn (\n\t\t<Fragment>\n\t\t\t{ map( metaBoxes, ( { id } ) => (\n\t\t\t\t<MetaBoxVisibility key={ id } id={ id } />\n\t\t\t) ) }\n\t\t\t{ isVisible && <MetaBoxesArea location={ location } /> }\n\t\t</Fragment>\n\t);\n}\n\nexport default withSelect( ( select, { location } ) => {\n\tconst { isMetaBoxLocationVisible, getMetaBoxesPerLocation } = select( 'core/edit-post' );\n\n\treturn {\n\t\tmetaBoxes: getMetaBoxesPerLocation( location ),\n\t\tisVisible: isMetaBoxLocationVisible( location ),\n\t};\n} )( MetaBoxes );\n","/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\nimport { withSelect } from '@wordpress/data';\n\nclass MetaBoxVisibility extends Component {\n\tcomponentDidMount() {\n\t\tthis.updateDOM();\n\t}\n\n\tcomponentDidUpdate( prevProps ) {\n\t\tif ( this.props.isVisible !== prevProps.isVisible ) {\n\t\t\tthis.updateDOM();\n\t\t}\n\t}\n\n\tupdateDOM() {\n\t\tconst { id, isVisible } = this.props;\n\t\tconst element = document.getElementById( id );\n\t\tif ( element ) {\n\t\t\telement.style.display = isVisible ? '' : 'none';\n\t\t}\n\t}\n\n\trender() {\n\t\treturn null;\n\t}\n}\n\nexport default withSelect( ( select, { id } ) => ( {\n\tisVisible: select( 'core/edit-post' ).isEditorPanelEnabled( `meta-box-${ id }` ),\n} ) )( MetaBoxVisibility );\n","/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\nimport { Spinner } from '@wordpress/components';\nimport { withSelect } from '@wordpress/data';\n\nclass MetaBoxesArea extends Component {\n\t/**\n\t * @inheritdoc\n\t */\n\tconstructor() {\n\t\tsuper( ...arguments );\n\t\tthis.bindContainerNode = this.bindContainerNode.bind( this );\n\t}\n\n\t/**\n\t * @inheritdoc\n\t */\n\tcomponentDidMount() {\n\t\tthis.form = document.querySelector( '.metabox-location-' + this.props.location );\n\t\tif ( this.form ) {\n\t\t\tthis.container.appendChild( this.form );\n\t\t}\n\t}\n\n\t/**\n\t * Get the meta box location form from the original location.\n\t */\n\tcomponentWillUnmount() {\n\t\tif ( this.form ) {\n\t\t\tdocument.querySelector( '#metaboxes' ).appendChild( this.form );\n\t\t}\n\t}\n\n\t/**\n\t * Binds the metabox area container node.\n\t *\n\t * @param {Element} node DOM Node.\n\t */\n\tbindContainerNode( node ) {\n\t\tthis.container = node;\n\t}\n\n\t/**\n\t * @inheritdoc\n\t */\n\trender() {\n\t\tconst { location, isSaving } = this.props;\n\n\t\tconst classes = classnames(\n\t\t\t'edit-post-meta-boxes-area',\n\t\t\t`is-${ location }`,\n\t\t\t{\n\t\t\t\t'is-loading': isSaving,\n\t\t\t}\n\t\t);\n\n\t\treturn (\n\t\t\t<div className={ classes }>\n\t\t\t\t{ isSaving && <Spinner /> }\n\t\t\t\t<div className=\"edit-post-meta-boxes-area__container\" ref={ this.bindContainerNode } />\n\t\t\t\t<div className=\"edit-post-meta-boxes-area__clear\" />\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nexport default withSelect( ( select ) => {\n\treturn {\n\t\tisSaving: select( 'core/edit-post' ).isSavingMetaBoxes(),\n\t};\n} )( MetaBoxesArea );\n","/**\n * External dependencies\n */\nimport { get } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { Modal } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { compose } from '@wordpress/compose';\nimport { PostTaxonomies, PostExcerptCheck, PageAttributesCheck } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport Section from './section';\nimport {\n\tEnablePublishSidebarOption,\n\tEnableTipsOption,\n\tEnablePanelOption,\n} from './options';\nimport MetaBoxesSection from './meta-boxes-section';\n\nconst MODAL_NAME = 'edit-post/options';\n\nexport function OptionsModal( { isModalActive, closeModal } ) {\n\tif ( ! isModalActive ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Modal\n\t\t\tclassName=\"edit-post-options-modal\"\n\t\t\ttitle={ <span className=\"edit-post-options-modal__title\">{ __( 'Options' ) }</span> }\n\t\t\tcloseLabel={ __( 'Close' ) }\n\t\t\tonRequestClose={ closeModal }\n\t\t>\n\t\t\t<Section title={ __( 'General' ) }>\n\t\t\t\t<EnablePublishSidebarOption label={ __( 'Enable Pre-publish Checks' ) } />\n\t\t\t\t<EnableTipsOption label={ __( 'Enable Tips' ) } />\n\t\t\t</Section>\n\t\t\t<Section title={ __( 'Document Panels' ) }>\n\t\t\t\t<PostTaxonomies\n\t\t\t\t\ttaxonomyWrapper={ ( content, taxonomy ) => (\n\t\t\t\t\t\t<EnablePanelOption\n\t\t\t\t\t\t\tlabel={ get( taxonomy, [ 'labels', 'menu_name' ] ) }\n\t\t\t\t\t\t\tpanelName={ `taxonomy-panel-${ taxonomy.slug }` }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<EnablePanelOption label={ __( 'Featured Image' ) } panelName=\"featured-image\" />\n\t\t\t\t<PostExcerptCheck>\n\t\t\t\t\t<EnablePanelOption label={ __( 'Excerpt' ) } panelName=\"post-excerpt\" />\n\t\t\t\t</PostExcerptCheck>\n\t\t\t\t<EnablePanelOption label={ __( 'Discussion' ) } panelName=\"discussion-panel\" />\n\t\t\t\t<PageAttributesCheck>\n\t\t\t\t\t<EnablePanelOption label={ __( 'Page Attributes' ) } panelName=\"page-attributes\" />\n\t\t\t\t</PageAttributesCheck>\n\t\t\t</Section>\n\t\t\t<MetaBoxesSection title={ __( 'Advanced Panels' ) } />\n\t\t</Modal>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\tisModalActive: select( 'core/edit-post' ).isModalActive( MODAL_NAME ),\n\t} ) ),\n\twithDispatch( ( dispatch ) => {\n\t\treturn {\n\t\t\tcloseModal: () => dispatch( 'core/edit-post' ).closeModal(),\n\t\t};\n\t} )\n)( OptionsModal );\n","/**\n * External dependencies\n */\nimport { filter, map } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport Section from './section';\nimport { EnableCustomFieldsOption, EnablePanelOption } from './options';\n\nexport function MetaBoxesSection( { areCustomFieldsRegistered, metaBoxes, ...sectionProps } ) {\n\t// The 'Custom Fields' meta box is a special case that we handle separately.\n\tconst thirdPartyMetaBoxes = filter( metaBoxes, ( { id } ) => id !== 'postcustom' );\n\n\tif ( ! areCustomFieldsRegistered && thirdPartyMetaBoxes.length === 0 ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Section { ...sectionProps }>\n\t\t\t{ areCustomFieldsRegistered && <EnableCustomFieldsOption label={ __( 'Custom Fields' ) } /> }\n\t\t\t{ map( thirdPartyMetaBoxes, ( { id, title } ) => (\n\t\t\t\t<EnablePanelOption key={ id } label={ title } panelName={ `meta-box-${ id }` } />\n\t\t\t) ) }\n\t\t</Section>\n\t);\n}\n\nexport default withSelect( ( select ) => {\n\tconst { getEditorSettings } = select( 'core/editor' );\n\tconst { getAllMetaBoxes } = select( 'core/edit-post' );\n\n\treturn {\n\t\tareCustomFieldsRegistered: getEditorSettings().enableCustomFields !== undefined,\n\t\tmetaBoxes: getAllMetaBoxes(),\n\t};\n} )( MetaBoxesSection );\n","/**\n * WordPress dependencies\n */\nimport { CheckboxControl } from '@wordpress/components';\n\nfunction BaseOption( { label, isChecked, onChange } ) {\n\treturn (\n\t\t<CheckboxControl\n\t\t\tclassName=\"edit-post-options-modal__option\"\n\t\t\tlabel={ label }\n\t\t\tchecked={ isChecked }\n\t\t\tonChange={ onChange }\n\t\t/>\n\t);\n}\n\nexport default BaseOption;\n","/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport BaseOption from './base';\n\nclass DeferredOption extends Component {\n\tconstructor( { isChecked } ) {\n\t\tsuper( ...arguments );\n\t\tthis.state = {\n\t\t\tisChecked,\n\t\t};\n\t}\n\n\tcomponentWillUnmount() {\n\t\tif ( this.state.isChecked !== this.props.isChecked ) {\n\t\t\tthis.props.onChange( this.state.isChecked );\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<BaseOption\n\t\t\t\tlabel={ this.props.label }\n\t\t\t\tisChecked={ this.state.isChecked }\n\t\t\t\tonChange={ ( isChecked ) => this.setState( { isChecked } ) }\n\t\t\t/>\n\t\t);\n\t}\n}\n\nexport default DeferredOption;\n","/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport BaseOption from './base';\n\nexport class EnableCustomFieldsOption extends Component {\n\tconstructor( { isChecked } ) {\n\t\tsuper( ...arguments );\n\n\t\tthis.toggleCustomFields = this.toggleCustomFields.bind( this );\n\n\t\tthis.state = { isChecked };\n\t}\n\n\ttoggleCustomFields() {\n\t\t// Submit a hidden form which triggers the toggle_custom_fields admin action.\n\t\t// This action will toggle the setting and reload the editor with the meta box\n\t\t// assets included on the page.\n\t\tdocument.getElementById( 'toggle-custom-fields-form' ).submit();\n\n\t\t// Make it look like something happened while the page reloads.\n\t\tthis.setState( { isChecked: ! this.props.isChecked } );\n\t}\n\n\trender() {\n\t\tconst { label } = this.props;\n\t\tconst { isChecked } = this.state;\n\n\t\treturn (\n\t\t\t<BaseOption\n\t\t\t\tlabel={ label }\n\t\t\t\tisChecked={ isChecked }\n\t\t\t\tonChange={ this.toggleCustomFields }\n\t\t\t/>\n\t\t);\n\t}\n}\n\nexport default withSelect( ( select ) => ( {\n\tisChecked: !! select( 'core/editor' ).getEditorSettings().enableCustomFields,\n} ) )( EnableCustomFieldsOption );\n","/**\n * WordPress dependencies\n */\nimport { compose, ifCondition } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport BaseOption from './base';\n\nexport default compose(\n\twithSelect( ( select, { panelName } ) => {\n\t\tconst { isEditorPanelEnabled, isEditorPanelRemoved } = select( 'core/edit-post' );\n\t\treturn {\n\t\t\tisRemoved: isEditorPanelRemoved( panelName ),\n\t\t\tisChecked: isEditorPanelEnabled( panelName ),\n\t\t};\n\t} ),\n\tifCondition( ( { isRemoved } ) => ! isRemoved ),\n\twithDispatch( ( dispatch, { panelName } ) => ( {\n\t\tonChange: () => dispatch( 'core/edit-post' ).toggleEditorPanelEnabled( panelName ),\n\t} ) )\n)( BaseOption );\n","/**\n * WordPress dependencies\n */\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { ifViewportMatches } from '@wordpress/viewport';\n\n/**\n * Internal dependencies\n */\nimport BaseOption from './base';\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\tisChecked: select( 'core/editor' ).isPublishSidebarEnabled(),\n\t} ) ),\n\twithDispatch( ( dispatch ) => {\n\t\tconst { enablePublishSidebar, disablePublishSidebar } = dispatch( 'core/editor' );\n\t\treturn {\n\t\t\tonChange: ( isEnabled ) => ( isEnabled ? enablePublishSidebar() : disablePublishSidebar() ),\n\t\t};\n\t} ),\n\t// In < medium viewports we override this option and always show the publish sidebar.\n\t// See the edit-post's header component for the specific logic.\n\tifViewportMatches( 'medium' ),\n)( BaseOption );\n","/**\n * WordPress dependencies\n */\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DeferredOption from './deferred';\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\tisChecked: select( 'core/nux' ).areTipsEnabled(),\n\t} ) ),\n\twithDispatch( ( dispatch ) => {\n\t\tconst { enableTips, disableTips } = dispatch( 'core/nux' );\n\t\treturn {\n\t\t\tonChange: ( isEnabled ) => ( isEnabled ? enableTips() : disableTips() ),\n\t\t};\n\t} )\n)(\n\t// Using DeferredOption here means enableTips() is called when the Options\n\t// modal is dismissed. This stops the NUX guide from appearing above the\n\t// Options modal, which looks totally weird.\n\tDeferredOption\n);\n","export { default as EnableCustomFieldsOption } from './enable-custom-fields';\nexport { default as EnablePanelOption } from './enable-panel';\nexport { default as EnablePublishSidebarOption } from './enable-publish-sidebar';\nexport { default as EnableTipsOption } from './enable-tips';\n","const Section = ( { title, children } ) => (\n\t<section className=\"edit-post-options-modal__section\">\n\t\t<h2 className=\"edit-post-options-modal__section-title\">{ title }</h2>\n\t\t{ children }\n\t</section>\n);\n\nexport default Section;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, PanelRow } from '@wordpress/components';\nimport { PostComments, PostPingbacks, PostTypeSupportCheck } from '@wordpress/editor';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'discussion-panel';\n\nfunction DiscussionPanel( { isEnabled, isOpened, onTogglePanel } ) {\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostTypeSupportCheck supportKeys={ [ 'comments', 'trackbacks' ] }>\n\t\t\t<PanelBody title={ __( 'Discussion' ) } opened={ isOpened } onToggle={ onTogglePanel }>\n\t\t\t\t<PostTypeSupportCheck supportKeys=\"comments\">\n\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t<PostComments />\n\t\t\t\t\t</PanelRow>\n\t\t\t\t</PostTypeSupportCheck>\n\n\t\t\t\t<PostTypeSupportCheck supportKeys=\"trackbacks\">\n\t\t\t\t\t<PanelRow>\n\t\t\t\t\t\t<PostPingbacks />\n\t\t\t\t\t</PanelRow>\n\t\t\t\t</PostTypeSupportCheck>\n\t\t\t</PanelBody>\n\t\t</PostTypeSupportCheck>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => {\n\t\treturn {\n\t\t\tisEnabled: select( 'core/edit-post' ).isEditorPanelEnabled( PANEL_NAME ),\n\t\t\tisOpened: select( 'core/edit-post' ).isEditorPanelOpened( PANEL_NAME ),\n\t\t};\n\t} ),\n\twithDispatch( ( dispatch ) => ( {\n\t\tonTogglePanel() {\n\t\t\treturn dispatch( 'core/edit-post' ).toggleEditorPanelOpened( PANEL_NAME );\n\t\t},\n\t} ) ),\n] )( DiscussionPanel );\n\n","/**\n * External dependencies\n */\nimport { get, partial } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody } from '@wordpress/components';\nimport { PostFeaturedImage, PostFeaturedImageCheck } from '@wordpress/editor';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'featured-image';\n\nfunction FeaturedImage( { isEnabled, isOpened, postType, onTogglePanel } ) {\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostFeaturedImageCheck>\n\t\t\t<PanelBody\n\t\t\t\ttitle={ get(\n\t\t\t\t\tpostType,\n\t\t\t\t\t[ 'labels', 'featured_image' ],\n\t\t\t\t\t__( 'Featured Image' )\n\t\t\t\t) }\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ onTogglePanel }\n\t\t\t>\n\t\t\t\t<PostFeaturedImage />\n\t\t\t</PanelBody>\n\t\t</PostFeaturedImageCheck>\n\t);\n}\n\nconst applyWithSelect = withSelect( ( select ) => {\n\tconst { getEditedPostAttribute } = select( 'core/editor' );\n\tconst { getPostType } = select( 'core' );\n\tconst { isEditorPanelEnabled, isEditorPanelOpened } = select( 'core/edit-post' );\n\n\treturn {\n\t\tpostType: getPostType( getEditedPostAttribute( 'type' ) ),\n\t\tisEnabled: isEditorPanelEnabled( PANEL_NAME ),\n\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t};\n} );\n\nconst applyWithDispatch = withDispatch( ( dispatch ) => {\n\tconst { toggleEditorPanelOpened } = dispatch( 'core/edit-post' );\n\n\treturn {\n\t\tonTogglePanel: partial( toggleEditorPanelOpened, PANEL_NAME ),\n\t};\n} );\n\nexport default compose(\n\tapplyWithSelect,\n\tapplyWithDispatch,\n)( FeaturedImage );\n","/**\n * WordPress Dependencies\n */\nimport { createSlotFill, withFocusReturn } from '@wordpress/components';\nimport { withSelect } from '@wordpress/data';\nimport { ifCondition, compose } from '@wordpress/compose';\n\nconst { Fill, Slot } = createSlotFill( 'Sidebar' );\n\n/**\n * Renders a sidebar with its content.\n *\n * @return {Object} The rendered sidebar.\n */\nconst Sidebar = ( { children, label } ) => {\n\treturn (\n\t\t<Fill>\n\t\t\t<div\n\t\t\t\tclassName=\"edit-post-sidebar\"\n\t\t\t\trole=\"region\"\n\t\t\t\taria-label={ label }\n\t\t\t\ttabIndex=\"-1\"\n\t\t\t>\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t</Fill>\n\t);\n};\n\nconst WrappedSidebar = compose(\n\twithSelect( ( select, { name } ) => ( {\n\t\tisActive: select( 'core/edit-post' ).getActiveGeneralSidebarName() === name,\n\t} ) ),\n\tifCondition( ( { isActive } ) => isActive ),\n\twithFocusReturn,\n)( Sidebar );\n\nWrappedSidebar.Slot = Slot;\n\nexport default WrappedSidebar;\n","/**\n * WordPress dependencies\n */\nimport { PanelBody } from '@wordpress/components';\nimport { PostLastRevision, PostLastRevisionCheck } from '@wordpress/editor';\n\nfunction LastRevision() {\n\treturn (\n\t\t<PostLastRevisionCheck>\n\t\t\t<PanelBody className=\"edit-post-last-revision__panel\">\n\t\t\t\t<PostLastRevision />\n\t\t\t</PanelBody>\n\t\t</PostLastRevisionCheck>\n\t);\n}\n\nexport default LastRevision;\n","/**\n * External dependencies\n */\nimport { get, partial } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, PanelRow } from '@wordpress/components';\nimport { compose } from '@wordpress/compose';\nimport { PageAttributesCheck, PageAttributesOrder, PageAttributesParent, PageTemplate } from '@wordpress/editor';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'page-attributes';\n\nexport function PageAttributes( { isEnabled, isOpened, onTogglePanel, postType } ) {\n\tif ( ! isEnabled || ! postType ) {\n\t\treturn null;\n\t}\n\treturn (\n\t\t<PageAttributesCheck>\n\t\t\t<PanelBody\n\t\t\t\ttitle={ get( postType, [ 'labels', 'attributes' ], __( 'Page Attributes' ) ) }\n\t\t\t\topened={ isOpened }\n\t\t\t\tonToggle={ onTogglePanel }\n\t\t\t>\n\t\t\t\t<PageTemplate />\n\t\t\t\t<PageAttributesParent />\n\t\t\t\t<PanelRow>\n\t\t\t\t\t<PageAttributesOrder />\n\t\t\t\t</PanelRow>\n\t\t\t</PanelBody>\n\t\t</PageAttributesCheck>\n\t);\n}\n\nconst applyWithSelect = withSelect( ( select ) => {\n\tconst { getEditedPostAttribute } = select( 'core/editor' );\n\tconst { isEditorPanelEnabled, isEditorPanelOpened } = select( 'core/edit-post' );\n\tconst { getPostType } = select( 'core' );\n\treturn {\n\t\tisEnabled: isEditorPanelEnabled( PANEL_NAME ),\n\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t\tpostType: getPostType( getEditedPostAttribute( 'type' ) ),\n\t};\n} );\n\nconst applyWithDispatch = withDispatch( ( dispatch ) => {\n\tconst { toggleEditorPanelOpened } = dispatch( 'core/edit-post' );\n\n\treturn {\n\t\tonTogglePanel: partial( toggleEditorPanelOpened, PANEL_NAME ),\n\t};\n} );\n\nexport default compose(\n\tapplyWithSelect,\n\tapplyWithDispatch,\n)( PageAttributes );\n","/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelBody } from '@wordpress/components';\n\nconst { Fill, Slot } = createSlotFill( 'PluginPostPublishPanel' );\n\nconst PluginPostPublishPanel = ( { children, className, title, initialOpen = false } ) => (\n\t<Fill>\n\t\t<PanelBody\n\t\t\tclassName={ className }\n\t\t\tinitialOpen={ initialOpen || ! title }\n\t\t\ttitle={ title }\n\t\t>\n\t\t\t{ children }\n\t\t</PanelBody>\n\t</Fill>\n);\n\nPluginPostPublishPanel.Slot = Slot;\n\nexport default PluginPostPublishPanel;\n","/**\n * Defines as extensibility slot for the Status & Visibility panel.\n */\n\n/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelRow } from '@wordpress/components';\n\nexport const { Fill, Slot } = createSlotFill( 'PluginPostStatusInfo' );\n\nconst PluginPostStatusInfo = ( { children, className } ) => (\n\t<Fill>\n\t\t<PanelRow className={ className }>\n\t\t\t{ children }\n\t\t</PanelRow>\n\t</Fill>\n);\n\nPluginPostStatusInfo.Slot = Slot;\n\nexport default PluginPostStatusInfo;\n","/**\n * WordPress dependencies\n */\nimport { createSlotFill, PanelBody } from '@wordpress/components';\n\nconst { Fill, Slot } = createSlotFill( 'PluginPrePublishPanel' );\n\nconst PluginPrePublishPanel = ( { children, className, title, initialOpen = false } ) => (\n\t<Fill>\n\t\t<PanelBody\n\t\t\tclassName={ className }\n\t\t\tinitialOpen={ initialOpen || ! title }\n\t\t\ttitle={ title }\n\t\t>\n\t\t\t{ children }\n\t\t</PanelBody>\n\t</Fill>\n);\n\nPluginPrePublishPanel.Slot = Slot;\n\nexport default PluginPrePublishPanel;\n","/**\n * WordPress dependencies\n */\nimport { IconButton, Panel } from '@wordpress/components';\nimport { withDispatch, withSelect } from '@wordpress/data';\nimport { Fragment } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { withPluginContext } from '@wordpress/plugins';\nimport { compose } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport PinnedPlugins from '../../header/pinned-plugins';\nimport Sidebar from '../';\nimport SidebarHeader from '../sidebar-header';\n\n/**\n * Renders the plugin sidebar component.\n *\n * @param {Object} props Element props.\n *\n * @return {WPElement} Plugin sidebar component.\n */\nfunction PluginSidebar( props ) {\n\tconst {\n\t\tchildren,\n\t\ticon,\n\t\tisActive,\n\t\tisPinnable = true,\n\t\tisPinned,\n\t\tsidebarName,\n\t\ttitle,\n\t\ttogglePin,\n\t\ttoggleSidebar,\n\t} = props;\n\n\treturn (\n\t\t<Fragment>\n\t\t\t{ isPinnable && (\n\t\t\t\t<PinnedPlugins>\n\t\t\t\t\t{ isPinned && <IconButton\n\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\tlabel={ title }\n\t\t\t\t\t\tonClick={ toggleSidebar }\n\t\t\t\t\t\tisToggled={ isActive }\n\t\t\t\t\t\taria-expanded={ isActive }\n\t\t\t\t\t/> }\n\t\t\t\t</PinnedPlugins>\n\t\t\t) }\n\t\t\t<Sidebar\n\t\t\t\tname={ sidebarName }\n\t\t\t\tlabel={ __( 'Editor plugins' ) }\n\t\t\t>\n\t\t\t\t<SidebarHeader\n\t\t\t\t\tcloseLabel={ __( 'Close plugin' ) }\n\t\t\t\t>\n\t\t\t\t\t<strong>{ title }</strong>\n\t\t\t\t\t{ isPinnable && (\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\ticon={ isPinned ? 'star-filled' : 'star-empty' }\n\t\t\t\t\t\t\tlabel={ isPinned ? __( 'Unpin from toolbar' ) : __( 'Pin to toolbar' ) }\n\t\t\t\t\t\t\tonClick={ togglePin }\n\t\t\t\t\t\t\tisToggled={ isPinned }\n\t\t\t\t\t\t\taria-expanded={ isPinned }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t</SidebarHeader>\n\t\t\t\t<Panel>\n\t\t\t\t\t{ children }\n\t\t\t\t</Panel>\n\t\t\t</Sidebar>\n\t\t</Fragment>\n\t);\n}\n\nexport default compose(\n\twithPluginContext( ( context, ownProps ) => {\n\t\treturn {\n\t\t\ticon: ownProps.icon || context.icon,\n\t\t\tsidebarName: `${ context.name }/${ ownProps.name }`,\n\t\t};\n\t} ),\n\twithSelect( ( select, { sidebarName } ) => {\n\t\tconst {\n\t\t\tgetActiveGeneralSidebarName,\n\t\t\tisPluginItemPinned,\n\t\t} = select( 'core/edit-post' );\n\n\t\treturn {\n\t\t\tisActive: getActiveGeneralSidebarName() === sidebarName,\n\t\t\tisPinned: isPluginItemPinned( sidebarName ),\n\t\t};\n\t} ),\n\twithDispatch( ( dispatch, { isActive, sidebarName } ) => {\n\t\tconst {\n\t\t\tcloseGeneralSidebar,\n\t\t\topenGeneralSidebar,\n\t\t\ttogglePinnedPluginItem,\n\t\t} = dispatch( 'core/edit-post' );\n\n\t\treturn {\n\t\t\ttogglePin() {\n\t\t\t\ttogglePinnedPluginItem( sidebarName );\n\t\t\t},\n\t\t\ttoggleSidebar() {\n\t\t\t\tif ( isActive ) {\n\t\t\t\t\tcloseGeneralSidebar();\n\t\t\t\t} else {\n\t\t\t\t\topenGeneralSidebar( sidebarName );\n\t\t\t\t}\n\t\t\t},\n\t\t};\n\t} ),\n)( PluginSidebar );\n","/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport { PostAuthor as PostAuthorForm, PostAuthorCheck } from '@wordpress/editor';\n\nexport function PostAuthor() {\n\treturn (\n\t\t<PostAuthorCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostAuthorForm />\n\t\t\t</PanelRow>\n\t\t</PostAuthorCheck>\n\t);\n}\n\nexport default PostAuthor;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody } from '@wordpress/components';\nimport { PostExcerpt as PostExcerptForm, PostExcerptCheck } from '@wordpress/editor';\nimport { compose } from '@wordpress/compose';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'post-excerpt';\n\nfunction PostExcerpt( { isEnabled, isOpened, onTogglePanel } ) {\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PostExcerptCheck>\n\t\t\t<PanelBody title={ __( 'Excerpt' ) } opened={ isOpened } onToggle={ onTogglePanel }>\n\t\t\t\t<PostExcerptForm />\n\t\t\t</PanelBody>\n\t\t</PostExcerptCheck>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => {\n\t\treturn {\n\t\t\tisEnabled: select( 'core/edit-post' ).isEditorPanelEnabled( PANEL_NAME ),\n\t\t\tisOpened: select( 'core/edit-post' ).isEditorPanelOpened( PANEL_NAME ),\n\t\t};\n\t} ),\n\twithDispatch( ( dispatch ) => ( {\n\t\tonTogglePanel() {\n\t\t\treturn dispatch( 'core/edit-post' ).toggleEditorPanelOpened( PANEL_NAME );\n\t\t},\n\t} ) ),\n] )( PostExcerpt );\n\n","/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport { PostFormat as PostFormatForm, PostFormatCheck } from '@wordpress/editor';\n\nexport function PostFormat() {\n\treturn (\n\t\t<PostFormatCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostFormatForm />\n\t\t\t</PanelRow>\n\t\t</PostFormatCheck>\n\t);\n}\n\nexport default PostFormat;\n","/**\n * External dependencies\n */\nimport { get } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { Fragment } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, TextControl, ExternalLink } from '@wordpress/components';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { compose, ifCondition, withState } from '@wordpress/compose';\nimport { cleanForSlug } from '@wordpress/editor';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'post-link';\n\nfunction PostLink( {\n\tisOpened,\n\tonTogglePanel,\n\tisEditable,\n\tpostLink,\n\tpermalinkParts,\n\teditPermalink,\n\tforceEmptyField,\n\tsetState,\n\tpostTitle,\n\tpostSlug,\n\tpostID,\n} ) {\n\tconst { prefix, suffix } = permalinkParts;\n\tlet prefixElement, postNameElement, suffixElement;\n\tconst currentSlug = postSlug || cleanForSlug( postTitle ) || postID;\n\tif ( isEditable ) {\n\t\tprefixElement = prefix && (\n\t\t\t<span className=\"edit-post-post-link__link-prefix\">{ prefix }</span>\n\t\t);\n\t\tpostNameElement = currentSlug && (\n\t\t\t<span className=\"edit-post-post-link__link-post-name\">{ currentSlug }</span>\n\t\t);\n\t\tsuffixElement = suffix && (\n\t\t\t<span className=\"edit-post-post-link__link-suffix\">{ suffix }</span>\n\t\t);\n\t}\n\n\treturn (\n\t\t<PanelBody\n\t\t\ttitle={ __( 'Permalink' ) }\n\t\t\topened={ isOpened }\n\t\t\tonToggle={ onTogglePanel }\n\t\t>\n\t\t\t{ isEditable && (\n\t\t\t\t<TextControl\n\t\t\t\t\tlabel={ __( 'URL' ) }\n\t\t\t\t\tvalue={ forceEmptyField ? '' : currentSlug }\n\t\t\t\t\tonChange={ ( newValue ) => {\n\t\t\t\t\t\teditPermalink( newValue );\n\t\t\t\t\t\t// When we delete the field the permalink gets\n\t\t\t\t\t\t// reverted to the original value.\n\t\t\t\t\t\t// The forceEmptyField logic allows the user to have\n\t\t\t\t\t\t// the field temporarily empty while typing.\n\t\t\t\t\t\tif ( ! newValue ) {\n\t\t\t\t\t\t\tif ( ! forceEmptyField ) {\n\t\t\t\t\t\t\t\tsetState( {\n\t\t\t\t\t\t\t\t\tforceEmptyField: true,\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( forceEmptyField ) {\n\t\t\t\t\t\t\tsetState( {\n\t\t\t\t\t\t\t\tforceEmptyField: false,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t} }\n\t\t\t\t\tonBlur={ ( event ) => {\n\t\t\t\t\t\teditPermalink( cleanForSlug( event.target.value ) );\n\t\t\t\t\t\tif ( forceEmptyField ) {\n\t\t\t\t\t\t\tsetState( {\n\t\t\t\t\t\t\t\tforceEmptyField: false,\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t) }\n\t\t\t<p className=\"edit-post-post-link__preview-label\">\n\t\t\t\t{ __( 'Preview' ) }\n\t\t\t</p>\n\t\t\t<ExternalLink\n\t\t\t\tclassName=\"edit-post-post-link__link\"\n\t\t\t\thref={ postLink }\n\t\t\t\ttarget=\"_blank\"\n\t\t\t>\n\t\t\t\t{ isEditable ?\n\t\t\t\t\t( <Fragment>\n\t\t\t\t\t\t{ prefixElement }{ postNameElement }{ suffixElement }\n\t\t\t\t\t</Fragment> ) :\n\t\t\t\t\tpostLink\n\t\t\t\t}\n\t\t\t</ExternalLink>\n\t\t</PanelBody>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => {\n\t\tconst {\n\t\t\tisEditedPostNew,\n\t\t\tisPermalinkEditable,\n\t\t\tgetCurrentPost,\n\t\t\tisCurrentPostPublished,\n\t\t\tgetPermalinkParts,\n\t\t\tgetEditedPostAttribute,\n\t\t} = select( 'core/editor' );\n\t\tconst {\n\t\t\tisEditorPanelOpened,\n\t\t} = select( 'core/edit-post' );\n\t\tconst {\n\t\t\tgetPostType,\n\t\t} = select( 'core' );\n\n\t\tconst { link, id } = getCurrentPost();\n\t\tconst postTypeName = getEditedPostAttribute( 'type' );\n\t\tconst postType = getPostType( postTypeName );\n\t\treturn {\n\t\t\tisNew: isEditedPostNew(),\n\t\t\tpostLink: link,\n\t\t\tisEditable: isPermalinkEditable(),\n\t\t\tisPublished: isCurrentPostPublished(),\n\t\t\tisOpened: isEditorPanelOpened( PANEL_NAME ),\n\t\t\tpermalinkParts: getPermalinkParts(),\n\t\t\tisViewable: get( postType, [ 'viewable' ], false ),\n\t\t\tpostTitle: getEditedPostAttribute( 'title' ),\n\t\t\tpostSlug: getEditedPostAttribute( 'slug' ),\n\t\t\tpostID: id,\n\t\t};\n\t} ),\n\tifCondition( ( { isNew, postLink, isViewable } ) => {\n\t\treturn ! isNew && postLink && isViewable;\n\t} ),\n\twithDispatch( ( dispatch ) => {\n\t\tconst { toggleEditorPanelOpened } = dispatch( 'core/edit-post' );\n\t\tconst { editPost } = dispatch( 'core/editor' );\n\t\treturn {\n\t\t\tonTogglePanel: () => toggleEditorPanelOpened( PANEL_NAME ),\n\t\t\teditPermalink: ( newSlug ) => {\n\t\t\t\teditPost( { slug: newSlug } );\n\t\t\t},\n\t\t};\n\t} ),\n\twithState( {\n\t\tforceEmptyField: false,\n\t} ),\n] )( PostLink );\n","/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport { PostPendingStatus as PostPendingStatusForm, PostPendingStatusCheck } from '@wordpress/editor';\n\nexport function PostPendingStatus() {\n\treturn (\n\t\t<PostPendingStatusCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostPendingStatusForm />\n\t\t\t</PanelRow>\n\t\t</PostPendingStatusCheck>\n\t);\n}\n\nexport default PostPendingStatus;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelRow, Dropdown, Button } from '@wordpress/components';\nimport { withInstanceId } from '@wordpress/compose';\nimport { PostSchedule as PostScheduleForm, PostScheduleLabel, PostScheduleCheck } from '@wordpress/editor';\nimport { Fragment } from '@wordpress/element';\n\nexport function PostSchedule( { instanceId } ) {\n\treturn (\n\t\t<PostScheduleCheck>\n\t\t\t<PanelRow className=\"edit-post-post-schedule\">\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={ `edit-post-post-schedule__toggle-${ instanceId }` }\n\t\t\t\t\tid={ `edit-post-post-schedule__heading-${ instanceId }` }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Publish' ) }\n\t\t\t\t</label>\n\t\t\t\t<Dropdown\n\t\t\t\t\tposition=\"bottom left\"\n\t\t\t\t\tcontentClassName=\"edit-post-post-schedule__dialog\"\n\t\t\t\t\trenderToggle={ ( { onToggle, isOpen } ) => (\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t\tclassName=\"edit-post-post-schedule__label\"\n\t\t\t\t\t\t\t\thtmlFor={ `edit-post-post-schedule__toggle-${ instanceId }` }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<PostScheduleLabel /> { __( 'Click to change' ) }\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tid={ `edit-post-post-schedule__toggle-${ instanceId }` }\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\tclassName=\"edit-post-post-schedule__toggle\"\n\t\t\t\t\t\t\t\tonClick={ onToggle }\n\t\t\t\t\t\t\t\taria-expanded={ isOpen }\n\t\t\t\t\t\t\t\taria-live=\"polite\"\n\t\t\t\t\t\t\t\tisLink\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<PostScheduleLabel />\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t) }\n\t\t\t\t\trenderContent={ () => <PostScheduleForm /> }\n\t\t\t\t/>\n\t\t\t</PanelRow>\n\t\t</PostScheduleCheck>\n\t);\n}\n\nexport default withInstanceId( PostSchedule );\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody } from '@wordpress/components';\nimport { Fragment } from '@wordpress/element';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { compose } from '@wordpress/compose';\n\n/**\n * Internal Dependencies\n */\nimport PostVisibility from '../post-visibility';\nimport PostTrash from '../post-trash';\nimport PostSchedule from '../post-schedule';\nimport PostSticky from '../post-sticky';\nimport PostAuthor from '../post-author';\nimport PostFormat from '../post-format';\nimport PostPendingStatus from '../post-pending-status';\nimport PluginPostStatusInfo from '../plugin-post-status-info';\n\n/**\n * Module Constants\n */\nconst PANEL_NAME = 'post-status';\n\nfunction PostStatus( { isOpened, onTogglePanel } ) {\n\treturn (\n\t\t<PanelBody className=\"edit-post-post-status\" title={ __( 'Status & Visibility' ) } opened={ isOpened } onToggle={ onTogglePanel }>\n\t\t\t<PluginPostStatusInfo.Slot>\n\t\t\t\t{ ( fills ) => (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<PostVisibility />\n\t\t\t\t\t\t<PostSchedule />\n\t\t\t\t\t\t<PostFormat />\n\t\t\t\t\t\t<PostSticky />\n\t\t\t\t\t\t<PostPendingStatus />\n\t\t\t\t\t\t<PostAuthor />\n\t\t\t\t\t\t{ fills }\n\t\t\t\t\t\t<PostTrash />\n\t\t\t\t\t</Fragment>\n\t\t\t\t) }\n\t\t\t</PluginPostStatusInfo.Slot>\n\t\t</PanelBody>\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select ) => ( {\n\t\tisOpened: select( 'core/edit-post' ).isEditorPanelOpened( PANEL_NAME ),\n\t} ) ),\n\twithDispatch( ( dispatch ) => ( {\n\t\tonTogglePanel() {\n\t\t\treturn dispatch( 'core/edit-post' ).toggleEditorPanelOpened( PANEL_NAME );\n\t\t},\n\t} ) ),\n] )( PostStatus );\n\n","/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport { PostSticky as PostStickyForm, PostStickyCheck } from '@wordpress/editor';\n\nexport function PostSticky() {\n\treturn (\n\t\t<PostStickyCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostStickyForm />\n\t\t\t</PanelRow>\n\t\t</PostStickyCheck>\n\t);\n}\n\nexport default PostSticky;\n","/**\n * WordPress dependencies\n */\nimport { PostTaxonomies as PostTaxonomiesForm, PostTaxonomiesCheck } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport TaxonomyPanel from './taxonomy-panel';\n\nfunction PostTaxonomies() {\n\treturn (\n\t\t<PostTaxonomiesCheck>\n\t\t\t<PostTaxonomiesForm\n\t\t\t\ttaxonomyWrapper={ ( content, taxonomy ) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<TaxonomyPanel taxonomy={ taxonomy }>\n\t\t\t\t\t\t\t{ content }\n\t\t\t\t\t\t</TaxonomyPanel>\n\t\t\t\t\t);\n\t\t\t\t} }\n\t\t\t/>\n\t\t</PostTaxonomiesCheck>\n\t);\n}\n\nexport default PostTaxonomies;\n","/**\n * External Dependencies\n */\nimport { get } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { compose } from '@wordpress/compose';\nimport { PanelBody } from '@wordpress/components';\nimport { withSelect, withDispatch } from '@wordpress/data';\n\nfunction TaxonomyPanel( { isEnabled, taxonomy, isOpened, onTogglePanel, children } ) {\n\tif ( ! isEnabled ) {\n\t\treturn null;\n\t}\n\n\tconst taxonomyMenuName = get( taxonomy, [ 'labels', 'menu_name' ] );\n\tif ( ! taxonomyMenuName ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PanelBody\n\t\t\ttitle={ taxonomyMenuName }\n\t\t\topened={ isOpened }\n\t\t\tonToggle={ onTogglePanel }\n\t\t>\n\t\t\t{ children }\n\t\t</PanelBody>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select, ownProps ) => {\n\t\tconst slug = get( ownProps.taxonomy, [ 'slug' ] );\n\t\tconst panelName = slug ? `taxonomy-panel-${ slug }` : '';\n\t\treturn {\n\t\t\tpanelName,\n\t\t\tisEnabled: slug ?\n\t\t\t\tselect( 'core/edit-post' ).isEditorPanelEnabled( panelName ) :\n\t\t\t\tfalse,\n\t\t\tisOpened: slug ?\n\t\t\t\tselect( 'core/edit-post' ).isEditorPanelOpened( panelName ) :\n\t\t\t\tfalse,\n\t\t};\n\t} ),\n\twithDispatch( ( dispatch, ownProps ) => ( {\n\t\tonTogglePanel: () => {\n\t\t\tdispatch( 'core/edit-post' ).toggleEditorPanelOpened( ownProps.panelName );\n\t\t},\n\t} ) ),\n)( TaxonomyPanel );\n","/**\n * WordPress dependencies\n */\nimport { PanelRow } from '@wordpress/components';\nimport { PostTrash as PostTrashLink, PostTrashCheck } from '@wordpress/editor';\n\nexport default function PostTrash() {\n\treturn (\n\t\t<PostTrashCheck>\n\t\t\t<PanelRow>\n\t\t\t\t<PostTrashLink />\n\t\t\t</PanelRow>\n\t\t</PostTrashCheck>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelRow, Dropdown, Button } from '@wordpress/components';\nimport { PostVisibility as PostVisibilityForm, PostVisibilityLabel, PostVisibilityCheck } from '@wordpress/editor';\n\nexport function PostVisibility() {\n\treturn (\n\t\t<PostVisibilityCheck render={ ( { canEdit } ) => (\n\t\t\t<PanelRow className=\"edit-post-post-visibility\">\n\t\t\t\t<span>{ __( 'Visibility' ) }</span>\n\t\t\t\t{ ! canEdit && <span><PostVisibilityLabel /></span> }\n\t\t\t\t{ canEdit && (\n\t\t\t\t\t<Dropdown\n\t\t\t\t\t\tposition=\"bottom left\"\n\t\t\t\t\t\tcontentClassName=\"edit-post-post-visibility__dialog\"\n\t\t\t\t\t\trenderToggle={ ( { isOpen, onToggle } ) => (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\taria-expanded={ isOpen }\n\t\t\t\t\t\t\t\tclassName=\"edit-post-post-visibility__toggle\"\n\t\t\t\t\t\t\t\tonClick={ onToggle }\n\t\t\t\t\t\t\t\tisLink\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<PostVisibilityLabel />\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t) }\n\t\t\t\t\t\trenderContent={ () => <PostVisibilityForm /> }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</PanelRow>\n\t\t) } />\n\t);\n}\n\nexport default PostVisibility;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { withDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport SidebarHeader from '../sidebar-header';\n\nconst SettingsHeader = ( { openDocumentSettings, openBlockSettings, sidebarName } ) => {\n\tconst blockLabel = __( 'Block' );\n\tconst [ documentAriaLabel, documentActiveClass ] = sidebarName === 'edit-post/document' ?\n\t\t// translators: ARIA label for the Document Settings sidebar tab, selected.\n\t\t[ __( 'Document settings (selected)' ), 'is-active' ] :\n\t\t// translators: ARIA label for the Document Settings sidebar tab, not selected.\n\t\t[ __( 'Document settings' ), '' ];\n\n\tconst [ blockAriaLabel, blockActiveClass ] = sidebarName === 'edit-post/block' ?\n\t\t// translators: ARIA label for the Block Settings sidebar tab, selected.\n\t\t[ __( 'Block settings (selected)' ), 'is-active' ] :\n\t\t// translators: ARIA label for the Block Settings sidebar tab, not selected.\n\t\t[ __( 'Block settings' ), '' ];\n\n\treturn (\n\t\t<SidebarHeader\n\t\t\tclassName=\"edit-post-sidebar__panel-tabs\"\n\t\t\tcloseLabel={ __( 'Close settings' ) }\n\t\t>\n\t\t\t{ /* Use a list so screen readers will announce how many tabs there are. */ }\n\t\t\t<ul>\n\t\t\t\t<li>\n\t\t\t\t\t<button\n\t\t\t\t\t\tonClick={ openDocumentSettings }\n\t\t\t\t\t\tclassName={ `edit-post-sidebar__panel-tab ${ documentActiveClass }` }\n\t\t\t\t\t\taria-label={ documentAriaLabel }\n\t\t\t\t\t\tdata-label={ __( 'Document' ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Document' ) }\n\t\t\t\t\t</button>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<button\n\t\t\t\t\t\tonClick={ openBlockSettings }\n\t\t\t\t\t\tclassName={ `edit-post-sidebar__panel-tab ${ blockActiveClass }` }\n\t\t\t\t\t\taria-label={ blockAriaLabel }\n\t\t\t\t\t\tdata-label={ blockLabel }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ blockLabel }\n\t\t\t\t\t</button>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</SidebarHeader>\n\t);\n};\n\nexport default withDispatch( ( dispatch ) => {\n\tconst { openGeneralSidebar } = dispatch( 'core/edit-post' );\n\tconst { clearSelectedBlock } = dispatch( 'core/editor' );\n\treturn {\n\t\topenDocumentSettings() {\n\t\t\topenGeneralSidebar( 'edit-post/document' );\n\t\t\tclearSelectedBlock();\n\t\t},\n\t\topenBlockSettings() {\n\t\t\topenGeneralSidebar( 'edit-post/block' );\n\t\t},\n\t};\n} )( SettingsHeader );\n","/**\n * WordPress dependencies\n */\nimport { Panel, PanelBody } from '@wordpress/components';\nimport { compose, ifCondition } from '@wordpress/compose';\nimport { withSelect } from '@wordpress/data';\nimport { BlockInspector } from '@wordpress/editor';\nimport { Fragment } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n/**\n * Internal Dependencies\n */\nimport Sidebar from '../';\nimport SettingsHeader from '../settings-header';\nimport PostStatus from '../post-status';\nimport LastRevision from '../last-revision';\nimport PostTaxonomies from '../post-taxonomies';\nimport FeaturedImage from '../featured-image';\nimport PostExcerpt from '../post-excerpt';\nimport PostLink from '../post-link';\nimport DiscussionPanel from '../discussion-panel';\nimport PageAttributes from '../page-attributes';\nimport MetaBoxes from '../../meta-boxes';\n\nconst SettingsSidebar = ( { sidebarName } ) => (\n\t<Sidebar\n\t\tname={ sidebarName }\n\t\tlabel={ __( 'Editor settings' ) }\n\t>\n\t\t<SettingsHeader sidebarName={ sidebarName } />\n\t\t<Panel>\n\t\t\t{ sidebarName === 'edit-post/document' && (\n\t\t\t\t<Fragment>\n\t\t\t\t\t<PostStatus />\n\t\t\t\t\t<LastRevision />\n\t\t\t\t\t<PostLink />\n\t\t\t\t\t<PostTaxonomies />\n\t\t\t\t\t<FeaturedImage />\n\t\t\t\t\t<PostExcerpt />\n\t\t\t\t\t<DiscussionPanel />\n\t\t\t\t\t<PageAttributes />\n\t\t\t\t\t<MetaBoxes location=\"side\" />\n\t\t\t\t</Fragment>\n\t\t\t) }\n\t\t\t{ sidebarName === 'edit-post/block' && (\n\t\t\t\t<PanelBody className=\"edit-post-settings-sidebar__panel-block\">\n\t\t\t\t\t<BlockInspector />\n\t\t\t\t</PanelBody>\n\t\t\t) }\n\t\t</Panel>\n\t</Sidebar>\n);\n\nexport default compose(\n\twithSelect( ( select ) => {\n\t\tconst {\n\t\t\tgetActiveGeneralSidebarName,\n\t\t\tisEditorSidebarOpened,\n\t\t} = select( 'core/edit-post' );\n\n\t\treturn {\n\t\t\tisEditorSidebarOpened: isEditorSidebarOpened(),\n\t\t\tsidebarName: getActiveGeneralSidebarName(),\n\t\t};\n\t} ),\n\tifCondition( ( { isEditorSidebarOpened } ) => isEditorSidebarOpened ),\n)( SettingsSidebar );\n","/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { Fragment } from '@wordpress/element';\nimport { compose } from '@wordpress/compose';\nimport { __ } from '@wordpress/i18n';\nimport { IconButton } from '@wordpress/components';\nimport { withDispatch, withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport shortcuts from '../../../keyboard-shortcuts';\n\nconst SidebarHeader = ( { children, className, closeLabel, closeSidebar, title } ) => {\n\treturn (\n\t\t<Fragment>\n\t\t\t<div className=\"components-panel__header edit-post-sidebar-header__small\">\n\t\t\t\t<span className=\"edit-post-sidebar-header__title\">\n\t\t\t\t\t{ title || __( '(no title)' ) }\n\t\t\t\t</span>\n\t\t\t\t<IconButton\n\t\t\t\t\tonClick={ closeSidebar }\n\t\t\t\t\ticon=\"no-alt\"\n\t\t\t\t\tlabel={ closeLabel }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div className={ classnames( 'components-panel__header edit-post-sidebar-header', className ) }>\n\t\t\t\t{ children }\n\t\t\t\t<IconButton\n\t\t\t\t\tonClick={ closeSidebar }\n\t\t\t\t\ticon=\"no-alt\"\n\t\t\t\t\tlabel={ closeLabel }\n\t\t\t\t\tshortcut={ shortcuts.toggleSidebar }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</Fragment>\n\t);\n};\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\ttitle: select( 'core/editor' ).getEditedPostAttribute( 'title' ),\n\t} ) ),\n\twithDispatch( ( dispatch ) => ( {\n\t\tcloseSidebar: dispatch( 'core/edit-post' ).closeGeneralSidebar,\n\t} ) ),\n)( SidebarHeader );\n","/**\n * WordPress dependencies\n */\nimport { PostTextEditor, PostTitle } from '@wordpress/editor';\nimport { IconButton } from '@wordpress/components';\nimport { withDispatch, withSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { displayShortcut } from '@wordpress/keycodes';\nimport { compose } from '@wordpress/compose';\n\nfunction TextEditor( { onExit, isRichEditingEnabled } ) {\n\treturn (\n\t\t<div className=\"edit-post-text-editor\">\n\t\t\t{ isRichEditingEnabled && (\n\t\t\t\t<div className=\"edit-post-text-editor__toolbar\">\n\t\t\t\t\t<h2>{ __( 'Editing Code' ) }</h2>\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\tonClick={ onExit }\n\t\t\t\t\t\ticon=\"no-alt\"\n\t\t\t\t\t\tshortcut={ displayShortcut.secondary( 'm' ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Exit Code Editor' ) }\n\t\t\t\t\t</IconButton>\n\t\t\t\t</div>\n\t\t\t)\t}\n\t\t\t<div className=\"edit-post-text-editor__body\">\n\t\t\t\t<PostTitle />\n\t\t\t\t<PostTextEditor />\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\tisRichEditingEnabled: select( 'core/editor' ).getEditorSettings().richEditingEnabled,\n\t} ) ),\n\twithDispatch( ( dispatch ) => {\n\t\treturn {\n\t\t\tonExit() {\n\t\t\t\tdispatch( 'core/edit-post' ).switchEditorMode( 'visual' );\n\t\t\t},\n\t\t};\n\t} )\n)( TextEditor );\n","/**\n * External dependencies\n */\nimport { flow, noop } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { MenuItem, withSpokenMessages } from '@wordpress/components';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { compose } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport shortcuts from '../../keyboard-shortcuts';\n\nexport function BlockInspectorButton( {\n\tareAdvancedSettingsOpened,\n\tcloseSidebar,\n\topenEditorSidebar,\n\tonClick = noop,\n\tsmall = false,\n\tspeak,\n} ) {\n\tconst speakMessage = () => {\n\t\tif ( areAdvancedSettingsOpened ) {\n\t\t\tspeak( __( 'Block settings closed' ) );\n\t\t} else {\n\t\t\tspeak( __( 'Additional settings are now available in the Editor block settings sidebar' ) );\n\t\t}\n\t};\n\n\tconst label = areAdvancedSettingsOpened ? __( 'Hide Block Settings' ) : __( 'Show Block Settings' );\n\n\treturn (\n\t\t<MenuItem\n\t\t\tclassName=\"editor-block-settings-menu__control\"\n\t\t\tonClick={ flow( areAdvancedSettingsOpened ? closeSidebar : openEditorSidebar, speakMessage, onClick ) }\n\t\t\ticon=\"admin-generic\"\n\t\t\tlabel={ small ? label : undefined }\n\t\t\tshortcut={ shortcuts.toggleSidebar }\n\t\t>\n\t\t\t{ ! small && label }\n\t\t</MenuItem>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\tareAdvancedSettingsOpened: select( 'core/edit-post' ).getActiveGeneralSidebarName() === 'edit-post/block',\n\t} ) ),\n\twithDispatch( ( dispatch ) => ( {\n\t\topenEditorSidebar: () => dispatch( 'core/edit-post' ).openGeneralSidebar( 'edit-post/block' ),\n\t\tcloseSidebar: dispatch( 'core/edit-post' ).closeGeneralSidebar,\n\t} ) ),\n\twithSpokenMessages,\n)( BlockInspectorButton );\n","/**\n * WordPress dependencies\n */\nimport {\n\tBlockList,\n\tCopyHandler,\n\tPostTitle,\n\tWritingFlow,\n\tObserveTyping,\n\tEditorGlobalKeyboardShortcuts,\n\tBlockSelectionClearer,\n\tMultiSelectScrollIntoView,\n\t_BlockSettingsMenuFirstItem,\n\t_BlockSettingsMenuPluginsExtension,\n} from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport BlockInspectorButton from './block-inspector-button';\nimport PluginBlockSettingsMenuGroup from '../block-settings-menu/plugin-block-settings-menu-group';\n\nfunction VisualEditor() {\n\treturn (\n\t\t<BlockSelectionClearer className=\"edit-post-visual-editor editor-styles-wrapper\">\n\t\t\t<EditorGlobalKeyboardShortcuts />\n\t\t\t<CopyHandler />\n\t\t\t<MultiSelectScrollIntoView />\n\t\t\t<WritingFlow>\n\t\t\t\t<ObserveTyping>\n\t\t\t\t\t<PostTitle />\n\t\t\t\t\t<BlockList />\n\t\t\t\t</ObserveTyping>\n\t\t\t</WritingFlow>\n\t\t\t<_BlockSettingsMenuFirstItem>\n\t\t\t\t{ ( { onClose } ) => <BlockInspectorButton onClick={ onClose } /> }\n\t\t\t</_BlockSettingsMenuFirstItem>\n\t\t\t<_BlockSettingsMenuPluginsExtension>\n\t\t\t\t{ ( { clientIds, onClose } ) => <PluginBlockSettingsMenuGroup.Slot fillProps={ { clientIds, onClose } } /> }\n\t\t\t</_BlockSettingsMenuPluginsExtension>\n\t\t</BlockSelectionClearer>\n\t);\n}\n\nexport default VisualEditor;\n","/**\n * WordPress dependencies\n */\nimport { withSelect } from '@wordpress/data';\nimport { EditorProvider, ErrorBoundary, PostLockedModal } from '@wordpress/editor';\nimport { StrictMode } from '@wordpress/element';\n/**\n * Internal dependencies\n */\nimport Layout from './components/layout';\n\nfunction Editor( {\n\tsettings,\n\thasFixedToolbar,\n\tfocusMode,\n\tpost,\n\tinitialEdits,\n\tonError,\n\t...props\n} ) {\n\tif ( ! post ) {\n\t\treturn null;\n\t}\n\n\tconst editorSettings = {\n\t\t...settings,\n\t\thasFixedToolbar,\n\t\tfocusMode,\n\t};\n\n\treturn (\n\t\t<StrictMode>\n\t\t\t<EditorProvider\n\t\t\t\tsettings={ editorSettings }\n\t\t\t\tpost={ post }\n\t\t\t\tinitialEdits={ initialEdits }\n\t\t\t\t{ ...props }\n\t\t\t>\n\t\t\t\t<ErrorBoundary onError={ onError }>\n\t\t\t\t\t<Layout />\n\t\t\t\t</ErrorBoundary>\n\t\t\t\t<PostLockedModal />\n\t\t\t</EditorProvider>\n\t\t</StrictMode>\n\t);\n}\n\nexport default withSelect( ( select, { postId, postType } ) => ( {\n\thasFixedToolbar: select( 'core/edit-post' ).isFeatureActive( 'fixedToolbar' ),\n\tfocusMode: select( 'core/edit-post' ).isFeatureActive( 'focusMode' ),\n\tpost: select( 'core' ).getEntityRecord( 'postType', postType, postId ),\n} ) )( Editor );\n","/**\n * WordPress dependencies\n */\nimport { addFilter } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport MediaUpload from './media-upload';\n\nconst replaceMediaUpload = () => MediaUpload;\n\naddFilter(\n\t'editor.MediaUpload',\n\t'core/edit-post/components/media-upload/replace-media-upload',\n\treplaceMediaUpload\n);\n","/**\n * External Dependencies\n */\nimport { castArray, pick } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { Component } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\n\n// Getter for the sake of unit tests.\nconst getGalleryDetailsMediaFrame = () => {\n\t/**\n\t * Custom gallery details frame.\n\t *\n\t * @link https://github.com/xwp/wp-core-media-widgets/blob/905edbccfc2a623b73a93dac803c5335519d7837/wp-admin/js/widgets/media-gallery-widget.js\n\t * @class GalleryDetailsMediaFrame\n\t * @constructor\n\t */\n\treturn wp.media.view.MediaFrame.Post.extend( {\n\n\t\t/**\n\t\t * Create the default states.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tcreateStates: function createStates() {\n\t\t\tthis.states.add( [\n\t\t\t\tnew wp.media.controller.Library( {\n\t\t\t\t\tid: 'gallery',\n\t\t\t\t\ttitle: wp.media.view.l10n.createGalleryTitle,\n\t\t\t\t\tpriority: 40,\n\t\t\t\t\ttoolbar: 'main-gallery',\n\t\t\t\t\tfilterable: 'uploaded',\n\t\t\t\t\tmultiple: 'add',\n\t\t\t\t\teditable: false,\n\n\t\t\t\t\tlibrary: wp.media.query( _.defaults( {\n\t\t\t\t\t\ttype: 'image',\n\t\t\t\t\t}, this.options.library ) ),\n\t\t\t\t} ),\n\n\t\t\t\tnew wp.media.controller.GalleryEdit( {\n\t\t\t\t\tlibrary: this.options.selection,\n\t\t\t\t\tediting: this.options.editing,\n\t\t\t\t\tmenu: 'gallery',\n\t\t\t\t\tdisplaySettings: false,\n\t\t\t\t\tmultiple: true,\n\t\t\t\t} ),\n\n\t\t\t\tnew wp.media.controller.GalleryAdd(),\n\t\t\t] );\n\t\t},\n\t} );\n};\n\n// the media library image object contains numerous attributes\n// we only need this set to display the image in the library\nconst slimImageObject = ( img ) => {\n\tconst attrSet = [ 'sizes', 'mime', 'type', 'subtype', 'id', 'url', 'alt', 'link', 'caption' ];\n\treturn pick( img, attrSet );\n};\n\nconst getAttachmentsCollection = ( ids ) => {\n\treturn wp.media.query( {\n\t\torder: 'ASC',\n\t\torderby: 'post__in',\n\t\tpost__in: ids,\n\t\tposts_per_page: -1,\n\t\tquery: true,\n\t\ttype: 'image',\n\t} );\n};\n\nclass MediaUpload extends Component {\n\tconstructor( {\n\t\tallowedTypes,\n\t\tmultiple = false,\n\t\tgallery = false,\n\t\ttitle = __( 'Select or Upload Media' ),\n\t\tmodalClass,\n\t\tvalue,\n\t} ) {\n\t\tsuper( ...arguments );\n\t\tthis.openModal = this.openModal.bind( this );\n\t\tthis.onOpen = this.onOpen.bind( this );\n\t\tthis.onSelect = this.onSelect.bind( this );\n\t\tthis.onUpdate = this.onUpdate.bind( this );\n\t\tthis.onClose = this.onClose.bind( this );\n\n\t\tif ( gallery ) {\n\t\t\tconst currentState = value ? 'gallery-edit' : 'gallery';\n\t\t\tconst GalleryDetailsMediaFrame = getGalleryDetailsMediaFrame();\n\t\t\tconst attachments = getAttachmentsCollection( value );\n\t\t\tconst selection = new wp.media.model.Selection( attachments.models, {\n\t\t\t\tprops: attachments.props.toJSON(),\n\t\t\t\tmultiple,\n\t\t\t} );\n\t\t\tthis.frame = new GalleryDetailsMediaFrame( {\n\t\t\t\tmimeType: allowedTypes,\n\t\t\t\tstate: currentState,\n\t\t\t\tmultiple,\n\t\t\t\tselection,\n\t\t\t\tediting: ( value ) ? true : false,\n\t\t\t} );\n\t\t\twp.media.frame = this.frame;\n\t\t} else {\n\t\t\tconst frameConfig = {\n\t\t\t\ttitle,\n\t\t\t\tbutton: {\n\t\t\t\t\ttext: __( 'Select' ),\n\t\t\t\t},\n\t\t\t\tmultiple,\n\t\t\t};\n\t\t\tif ( !! allowedTypes ) {\n\t\t\t\tframeConfig.library = { type: allowedTypes };\n\t\t\t}\n\n\t\t\tthis.frame = wp.media( frameConfig );\n\t\t}\n\n\t\tif ( modalClass ) {\n\t\t\tthis.frame.$el.addClass( modalClass );\n\t\t}\n\n\t\t// When an image is selected in the media frame...\n\t\tthis.frame.on( 'select', this.onSelect );\n\t\tthis.frame.on( 'update', this.onUpdate );\n\t\tthis.frame.on( 'open', this.onOpen );\n\t\tthis.frame.on( 'close', this.onClose );\n\t}\n\n\tcomponentWillUnmount() {\n\t\tthis.frame.remove();\n\t}\n\n\tonUpdate( selections ) {\n\t\tconst { onSelect, multiple = false } = this.props;\n\t\tconst state = this.frame.state();\n\t\tconst selectedImages = selections || state.get( 'selection' );\n\n\t\tif ( ! selectedImages || ! selectedImages.models.length ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( multiple ) {\n\t\t\tonSelect( selectedImages.models.map( ( model ) => slimImageObject( model.toJSON() ) ) );\n\t\t} else {\n\t\t\tonSelect( slimImageObject( ( selectedImages.models[ 0 ].toJSON() ) ) );\n\t\t}\n\t}\n\n\tonSelect() {\n\t\tconst { onSelect, multiple = false } = this.props;\n\t\t// Get media attachment details from the frame state\n\t\tconst attachment = this.frame.state().get( 'selection' ).toJSON();\n\t\tonSelect(\n\t\t\tmultiple ?\n\t\t\t\tattachment :\n\t\t\t\tattachment[ 0 ]\n\t\t);\n\t}\n\n\tonOpen() {\n\t\tthis.updateCollection();\n\n\t\tif ( ! this.props.value ) {\n\t\t\treturn;\n\t\t}\n\t\tif ( ! this.props.gallery ) {\n\t\t\tconst selection = this.frame.state().get( 'selection' );\n\t\t\tcastArray( this.props.value ).map( ( id ) => {\n\t\t\t\tselection.add( wp.media.attachment( id ) );\n\t\t\t} );\n\t\t}\n\t\t// load the images so they are available in the media modal.\n\t\tgetAttachmentsCollection( castArray( this.props.value ) ).more();\n\t}\n\n\tonClose() {\n\t\tconst { onClose } = this.props;\n\n\t\tif ( onClose ) {\n\t\t\tonClose();\n\t\t}\n\t}\n\n\tupdateCollection() {\n\t\tconst frameContent = this.frame.content.get();\n\t\tif ( frameContent && frameContent.collection ) {\n\t\t\tconst collection = frameContent.collection;\n\n\t\t\t// clean all attachments we have in memory.\n\t\t\tcollection.toArray().forEach( ( model ) => model.trigger( 'destroy', model ) );\n\n\t\t\t// reset has more flag, if library had small amount of items all items may have been loaded before.\n\t\t\tcollection.mirroring._hasMore = true;\n\n\t\t\t// request items\n\t\t\tcollection.more();\n\t\t}\n\t}\n\n\topenModal() {\n\t\tthis.frame.open();\n\t}\n\n\trender() {\n\t\treturn this.props.render( { open: this.openModal } );\n\t}\n}\n\nexport default MediaUpload;\n\n","/**\n * Internal dependencies\n */\nimport './components';\nimport './validate-multiple-use';\n","/**\n * External dependencies\n */\nimport { find } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tcreateBlock,\n\tfindTransform,\n\tgetBlockTransforms,\n\tgetBlockType,\n\thasBlockSupport,\n} from '@wordpress/blocks';\nimport { Button } from '@wordpress/components';\nimport { withSelect, withDispatch } from '@wordpress/data';\nimport { Warning } from '@wordpress/editor';\nimport { addFilter } from '@wordpress/hooks';\nimport { __ } from '@wordpress/i18n';\nimport { compose, createHigherOrderComponent } from '@wordpress/compose';\n\nconst enhance = compose(\n\t/**\n\t * For blocks whose block type doesn't support `multiple`, provides the\n\t * wrapped component with `originalBlockClientId` -- a reference to the\n\t * first block of the same type in the content -- if and only if that\n\t * \"original\" block is not the current one. Thus, an inexisting\n\t * `originalBlockClientId` prop signals that the block is valid.\n\t *\n\t * @param {Component} WrappedBlockEdit A filtered BlockEdit instance.\n\t *\n\t * @return {Component} Enhanced component with merged state data props.\n\t */\n\twithSelect( ( select, block ) => {\n\t\tconst blocks = select( 'core/editor' ).getBlocks();\n\t\tconst multiple = hasBlockSupport( block.name, 'multiple', true );\n\n\t\t// For block types with `multiple` support, there is no \"original\n\t\t// block\" to be found in the content, as the block itself is valid.\n\t\tif ( multiple ) {\n\t\t\treturn {};\n\t\t}\n\n\t\t// Otherwise, only pass `originalBlockClientId` if it refers to a different\n\t\t// block from the current one.\n\t\tconst firstOfSameType = find( blocks, ( { name } ) => block.name === name );\n\t\tconst isInvalid = firstOfSameType && firstOfSameType.clientId !== block.clientId;\n\t\treturn {\n\t\t\toriginalBlockClientId: isInvalid && firstOfSameType.clientId,\n\t\t};\n\t} ),\n\twithDispatch( ( dispatch, { originalBlockClientId } ) => ( {\n\t\tselectFirst: () => dispatch( 'core/editor' ).selectBlock( originalBlockClientId ),\n\t} ) ),\n);\n\nconst withMultipleValidation = createHigherOrderComponent( ( BlockEdit ) => {\n\treturn enhance( ( {\n\t\toriginalBlockClientId,\n\t\tselectFirst,\n\t\t...props\n\t} ) => {\n\t\tif ( ! originalBlockClientId ) {\n\t\t\treturn <BlockEdit { ...props } />;\n\t\t}\n\n\t\tconst blockType = getBlockType( props.name );\n\t\tconst outboundType = getOutboundType( props.name );\n\n\t\treturn [\n\t\t\t<div key=\"invalid-preview\" style={ { minHeight: '60px' } }>\n\t\t\t\t<BlockEdit key=\"block-edit\" { ...props } />\n\t\t\t</div>,\n\t\t\t<Warning\n\t\t\t\tkey=\"multiple-use-warning\"\n\t\t\t\tactions={ [\n\t\t\t\t\t<Button key=\"find-original\" isLarge onClick={ selectFirst }>\n\t\t\t\t\t\t{ __( 'Find original' ) }\n\t\t\t\t\t</Button>,\n\t\t\t\t\t<Button key=\"remove\" isLarge onClick={ () => props.onReplace( [] ) }>\n\t\t\t\t\t\t{ __( 'Remove' ) }\n\t\t\t\t\t</Button>,\n\t\t\t\t\toutboundType && (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tkey=\"transform\"\n\t\t\t\t\t\t\tisLarge\n\t\t\t\t\t\t\tonClick={ () => props.onReplace(\n\t\t\t\t\t\t\t\tcreateBlock( outboundType.name, props.attributes )\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Transform into:' ) }{ ' ' }\n\t\t\t\t\t\t\t{ outboundType.title }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t),\n\t\t\t\t] }\n\t\t\t>\n\t\t\t\t<strong>{ blockType.title }: </strong>\n\t\t\t\t{ __( 'This block can only be used once.' ) }\n\t\t\t</Warning>,\n\t\t];\n\t} );\n}, 'withMultipleValidation' );\n\n/**\n * Given a base block name, returns the default block type to which to offer\n * transforms.\n *\n * @param {string} blockName Base block name.\n *\n * @return {?Object} The chosen default block type.\n */\nfunction getOutboundType( blockName ) {\n\t// Grab the first outbound transform\n\tconst transform = findTransform(\n\t\tgetBlockTransforms( 'to', blockName ),\n\t\t( { type, blocks } ) => type === 'block' && blocks.length === 1 // What about when .length > 1?\n\t);\n\n\tif ( ! transform ) {\n\t\treturn null;\n\t}\n\n\treturn getBlockType( transform.blocks[ 0 ] );\n}\n\naddFilter(\n\t'editor.BlockEdit',\n\t'core/edit-post/validate-multiple-use/with-multiple-validation',\n\twithMultipleValidation\n);\n","/**\n * WordPress dependencies\n */\nimport '@wordpress/core-data';\nimport '@wordpress/editor';\nimport '@wordpress/nux';\nimport '@wordpress/viewport';\nimport '@wordpress/notices';\nimport { registerCoreBlocks } from '@wordpress/block-library';\nimport { render, unmountComponentAtNode } from '@wordpress/element';\nimport { dispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport './hooks';\nimport './plugins';\nimport './store';\nimport Editor from './editor';\n\n/**\n * Reinitializes the editor after the user chooses to reboot the editor after\n * an unhandled error occurs, replacing previously mounted editor element using\n * an initial state from prior to the crash.\n *\n * @param {Object} postType Post type of the post to edit.\n * @param {Object} postId ID of the post to edit.\n * @param {Element} target DOM node in which editor is rendered.\n * @param {?Object} settings Editor settings object.\n * @param {Object} initialEdits Programmatic edits to apply initially, to be\n * considered as non-user-initiated (bypass for\n * unsaved changes prompt).\n */\nexport function reinitializeEditor( postType, postId, target, settings, initialEdits ) {\n\tunmountComponentAtNode( target );\n\tconst reboot = reinitializeEditor.bind( null, postType, postId, target, settings, initialEdits );\n\n\trender(\n\t\t<Editor\n\t\t\tsettings={ settings }\n\t\t\tonError={ reboot }\n\t\t\tpostId={ postId }\n\t\t\tpostType={ postType }\n\t\t\tinitialEdits={ initialEdits }\n\t\t\trecovery\n\t\t/>,\n\t\ttarget\n\t);\n}\n\n/**\n * Initializes and returns an instance of Editor.\n *\n * The return value of this function is not necessary if we change where we\n * call initializeEditor(). This is due to metaBox timing.\n *\n * @param {string} id Unique identifier for editor instance.\n * @param {Object} postType Post type of the post to edit.\n * @param {Object} postId ID of the post to edit.\n * @param {?Object} settings Editor settings object.\n * @param {Object} initialEdits Programmatic edits to apply initially, to be\n * considered as non-user-initiated (bypass for\n * unsaved changes prompt).\n */\nexport function initializeEditor( id, postType, postId, settings, initialEdits ) {\n\tconst target = document.getElementById( id );\n\tconst reboot = reinitializeEditor.bind( null, postType, postId, target, settings, initialEdits );\n\n\tregisterCoreBlocks();\n\n\tdispatch( 'core/nux' ).triggerGuide( [\n\t\t'core/editor.inserter',\n\t\t'core/editor.settings',\n\t\t'core/editor.preview',\n\t\t'core/editor.publish',\n\t] );\n\n\trender(\n\t\t<Editor\n\t\t\tsettings={ settings }\n\t\t\tonError={ reboot }\n\t\t\tpostId={ postId }\n\t\t\tpostType={ postType }\n\t\t\tinitialEdits={ initialEdits }\n\t\t/>,\n\t\ttarget\n\t);\n}\n\nexport { default as PluginBlockSettingsMenuItem } from './components/block-settings-menu/plugin-block-settings-menu-item';\nexport { default as PluginPostPublishPanel } from './components/sidebar/plugin-post-publish-panel';\nexport { default as PluginPostStatusInfo } from './components/sidebar/plugin-post-status-info';\nexport { default as PluginPrePublishPanel } from './components/sidebar/plugin-pre-publish-panel';\nexport { default as PluginSidebar } from './components/sidebar/plugin-sidebar';\nexport { default as PluginSidebarMoreMenuItem } from './components/header/plugin-sidebar-more-menu-item';\n","/**\n * WordPress dependencies\n */\nimport { rawShortcut, displayShortcut, shortcutAriaLabel } from '@wordpress/keycodes';\n\nexport default {\n\ttoggleEditorMode: {\n\t\traw: rawShortcut.secondary( 'm' ),\n\t\tdisplay: displayShortcut.secondary( 'm' ),\n\t},\n\ttoggleSidebar: {\n\t\traw: rawShortcut.primaryShift( ',' ),\n\t\tdisplay: displayShortcut.primaryShift( ',' ),\n\t\tariaLabel: shortcutAriaLabel.primaryShift( ',' ),\n\t},\n};\n","/**\n * WordPress dependencies\n */\nimport { ClipboardButton } from '@wordpress/components';\nimport { withSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { withState, compose } from '@wordpress/compose';\n\nfunction CopyContentMenuItem( { editedPostContent, hasCopied, setState } ) {\n\treturn (\n\t\t<ClipboardButton\n\t\t\ttext={ editedPostContent }\n\t\t\tclassName=\"components-menu-item__button\"\n\t\t\tonCopy={ () => setState( { hasCopied: true } ) }\n\t\t\tonFinishCopy={ () => setState( { hasCopied: false } ) }\n\t\t>\n\t\t\t{ hasCopied ?\n\t\t\t\t__( 'Copied!' ) :\n\t\t\t\t__( 'Copy All Content' ) }\n\t\t</ClipboardButton>\n\t);\n}\n\nexport default compose(\n\twithSelect( ( select ) => ( {\n\t\teditedPostContent: select( 'core/editor' ).getEditedPostAttribute( 'content' ),\n\t} ) ),\n\twithState( { hasCopied: false } )\n)( CopyContentMenuItem );\n","/**\n * WordPress dependencies\n */\nimport { MenuItem } from '@wordpress/components';\nimport { Fragment } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { registerPlugin } from '@wordpress/plugins';\n\n/**\n * Internal dependencies\n */\nimport CopyContentMenuItem from './copy-content-menu-item';\nimport KeyboardShortcutsHelpMenuItem from './keyboard-shortcuts-help-menu-item';\nimport ToolsMoreMenuGroup from '../components/header/tools-more-menu-group';\n\nregisterPlugin( 'edit-post', {\n\trender() {\n\t\treturn (\n\t\t\t<Fragment>\n\t\t\t\t<ToolsMoreMenuGroup>\n\t\t\t\t\t{ ( { onClose } ) => (\n\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\trole=\"menuitem\"\n\t\t\t\t\t\t\t\thref=\"edit.php?post_type=wp_block\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Manage All Reusable Blocks' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t<KeyboardShortcutsHelpMenuItem onSelect={ onClose } />\n\t\t\t\t\t\t\t<CopyContentMenuItem />\n\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t) }\n\t\t\t\t</ToolsMoreMenuGroup>\n\t\t\t</Fragment>\n\t\t);\n\t},\n} );\n","/**\n * WordPress Dependencies\n */\nimport { MenuItem } from '@wordpress/components';\nimport { withDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { displayShortcut } from '@wordpress/keycodes';\n\nexport function KeyboardShortcutsHelpMenuItem( { openModal, onSelect } ) {\n\treturn (\n\t\t<MenuItem\n\t\t\tonClick={ () => {\n\t\t\t\tonSelect();\n\t\t\t\topenModal( 'edit-post/keyboard-shortcut-help' );\n\t\t\t} }\n\t\t\tshortcut={ displayShortcut.access( 'h' ) }\n\t\t>\n\t\t\t{ __( 'Keyboard Shortcuts' ) }\n\t\t</MenuItem>\n\t);\n}\n\nexport default withDispatch( ( dispatch, ) => {\n\tconst {\n\t\topenModal,\n\t} = dispatch( 'core/edit-post' );\n\n\treturn {\n\t\topenModal,\n\t};\n} )( KeyboardShortcutsHelpMenuItem );\n","/**\n * Returns an action object used in signalling that the user opened an editor sidebar.\n *\n * @param {string} name Sidebar name to be opened.\n *\n * @return {Object} Action object.\n */\nexport function openGeneralSidebar( name ) {\n\treturn {\n\t\ttype: 'OPEN_GENERAL_SIDEBAR',\n\t\tname,\n\t};\n}\n\n/**\n * Returns an action object signalling that the user closed the sidebar.\n *\n * @return {Object} Action object.\n */\nexport function closeGeneralSidebar() {\n\treturn {\n\t\ttype: 'CLOSE_GENERAL_SIDEBAR',\n\t};\n}\n\n/**\n * Returns an action object used in signalling that the user opened a modal.\n *\n * @param {string} name A string that uniquely identifies the modal.\n *\n * @return {Object} Action object.\n */\nexport function openModal( name ) {\n\treturn {\n\t\ttype: 'OPEN_MODAL',\n\t\tname,\n\t};\n}\n\n/**\n * Returns an action object signalling that the user closed a modal.\n *\n * @return {Object} Action object.\n */\nexport function closeModal() {\n\treturn {\n\t\ttype: 'CLOSE_MODAL',\n\t};\n}\n\n/**\n * Returns an action object used in signalling that the user opened the publish\n * sidebar.\n *\n * @return {Object} Action object\n */\nexport function openPublishSidebar() {\n\treturn {\n\t\ttype: 'OPEN_PUBLISH_SIDEBAR',\n\t};\n}\n\n/**\n * Returns an action object used in signalling that the user closed the\n * publish sidebar.\n *\n * @return {Object} Action object.\n */\nexport function closePublishSidebar() {\n\treturn {\n\t\ttype: 'CLOSE_PUBLISH_SIDEBAR',\n\t};\n}\n\n/**\n * Returns an action object used in signalling that the user toggles the publish sidebar.\n *\n * @return {Object} Action object\n */\nexport function togglePublishSidebar() {\n\treturn {\n\t\ttype: 'TOGGLE_PUBLISH_SIDEBAR',\n\t};\n}\n\n/**\n * Returns an action object used to enable or disable a panel in the editor.\n *\n * @param {string} panelName A string that identifies the panel to enable or disable.\n *\n * @return {Object} Action object.\n */\nexport function toggleEditorPanelEnabled( panelName ) {\n\treturn {\n\t\ttype: 'TOGGLE_PANEL_ENABLED',\n\t\tpanelName,\n\t};\n}\n\n/**\n * Returns an action object used to open or close a panel in the editor.\n *\n * @param {string} panelName A string that identifies the panel to open or close.\n *\n * @return {Object} Action object.\n*/\nexport function toggleEditorPanelOpened( panelName ) {\n\treturn {\n\t\ttype: 'TOGGLE_PANEL_OPENED',\n\t\tpanelName,\n\t};\n}\n\n/**\n * Returns an action object used to remove a panel from the editor.\n *\n * @param {string} panelName A string that identifies the panel to remove.\n *\n * @return {Object} Action object.\n */\nexport function removeEditorPanel( panelName ) {\n\treturn {\n\t\ttype: 'REMOVE_PANEL',\n\t\tpanelName,\n\t};\n}\n\n/**\n * Returns an action object used to toggle a feature flag.\n *\n * @param {string} feature Feature name.\n *\n * @return {Object} Action object.\n */\nexport function toggleFeature( feature ) {\n\treturn {\n\t\ttype: 'TOGGLE_FEATURE',\n\t\tfeature,\n\t};\n}\n\nexport function switchEditorMode( mode ) {\n\treturn {\n\t\ttype: 'SWITCH_MODE',\n\t\tmode,\n\t};\n}\n\n/**\n * Returns an action object used to toggle a plugin name flag.\n *\n * @param {string} pluginName Plugin name.\n *\n * @return {Object} Action object.\n */\nexport function togglePinnedPluginItem( pluginName ) {\n\treturn {\n\t\ttype: 'TOGGLE_PINNED_PLUGIN_ITEM',\n\t\tpluginName,\n\t};\n}\n\n/**\n * Returns an action object used in signaling\n * what Meta boxes are available in which location.\n *\n * @param {Object} metaBoxesPerLocation Meta boxes per location.\n *\n * @return {Object} Action object.\n */\nexport function setAvailableMetaBoxesPerLocation( metaBoxesPerLocation ) {\n\treturn {\n\t\ttype: 'SET_META_BOXES_PER_LOCATIONS',\n\t\tmetaBoxesPerLocation,\n\t};\n}\n\n/**\n * Returns an action object used to request meta box update.\n *\n * @return {Object} Action object.\n */\nexport function requestMetaBoxUpdates() {\n\treturn {\n\t\ttype: 'REQUEST_META_BOX_UPDATES',\n\t};\n}\n\n/**\n * Returns an action object used signal a successful meta box update.\n *\n * @return {Object} Action object.\n */\nexport function metaBoxUpdatesSuccess() {\n\treturn {\n\t\ttype: 'META_BOX_UPDATES_SUCCESS',\n\t};\n}\n\n","export const PREFERENCES_DEFAULTS = {\n\teditorMode: 'visual',\n\tisGeneralSidebarDismissed: false,\n\tpanels: {\n\t\t'post-status': {\n\t\t\topened: true,\n\t\t},\n\t},\n\tfeatures: {\n\t\tfixedToolbar: false,\n\t},\n\tpinnedPluginItems: {},\n};\n","/**\n * External dependencies\n */\nimport { reduce } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { select, subscribe, dispatch } from '@wordpress/data';\nimport { speak } from '@wordpress/a11y';\nimport { __ } from '@wordpress/i18n';\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Internal dependencies\n */\nimport {\n\tmetaBoxUpdatesSuccess,\n\trequestMetaBoxUpdates,\n\topenGeneralSidebar,\n\tcloseGeneralSidebar,\n} from './actions';\nimport {\n\tgetActiveMetaBoxLocations,\n\tgetActiveGeneralSidebarName,\n} from './selectors';\nimport { getMetaBoxContainer } from '../utils/meta-boxes';\nimport { onChangeListener } from './utils';\n\nconst VIEW_AS_LINK_SELECTOR = '#wp-admin-bar-view a';\n\nconst effects = {\n\tSET_META_BOXES_PER_LOCATIONS( action, store ) {\n\t\t// Allow toggling metaboxes panels\n\t\t// We need to wait for all scripts to load\n\t\t// If the meta box loads the post script, it will already trigger this.\n\t\t// After merge in Core, make sure to drop the timeout and update the postboxes script\n\t\t// to avoid the double binding.\n\t\tsetTimeout( () => {\n\t\t\tconst postType = select( 'core/editor' ).getCurrentPostType();\n\t\t\tif ( window.postboxes.page !== postType ) {\n\t\t\t\twindow.postboxes.add_postbox_toggles( postType );\n\t\t\t}\n\t\t} );\n\n\t\tlet wasSavingPost = select( 'core/editor' ).isSavingPost();\n\t\tlet wasAutosavingPost = select( 'core/editor' ).isAutosavingPost();\n\t\tlet wasPreviewingPost = select( 'core/editor' ).isPreviewingPost();\n\t\t// Save metaboxes when performing a full save on the post.\n\t\tsubscribe( () => {\n\t\t\tconst isSavingPost = select( 'core/editor' ).isSavingPost();\n\t\t\tconst isAutosavingPost = select( 'core/editor' ).isAutosavingPost();\n\t\t\tconst isPreviewingPost = select( 'core/editor' ).isPreviewingPost();\n\t\t\tconst hasActiveMetaBoxes = select( 'core/edit-post' ).hasMetaBoxes();\n\n\t\t\t// Save metaboxes on save completion, except for autosaves that are not a post preview.\n\t\t\tconst shouldTriggerMetaboxesSave = (\n\t\t\t\thasActiveMetaBoxes && (\n\t\t\t\t\t( wasSavingPost && ! isSavingPost && ! wasAutosavingPost ) ||\n\t\t\t\t\t( wasAutosavingPost && wasPreviewingPost && ! isPreviewingPost )\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// Save current state for next inspection.\n\t\t\twasSavingPost = isSavingPost;\n\t\t\twasAutosavingPost = isAutosavingPost;\n\t\t\twasPreviewingPost = isPreviewingPost;\n\n\t\t\tif ( shouldTriggerMetaboxesSave ) {\n\t\t\t\tstore.dispatch( requestMetaBoxUpdates() );\n\t\t\t}\n\t\t} );\n\t},\n\tREQUEST_META_BOX_UPDATES( action, store ) {\n\t\tconst state = store.getState();\n\n\t\t// Additional data needed for backwards compatibility.\n\t\t// If we do not provide this data, the post will be overridden with the default values.\n\t\tconst post = select( 'core/editor' ).getCurrentPost( state );\n\t\tconst additionalData = [\n\t\t\tpost.comment_status ? [ 'comment_status', post.comment_status ] : false,\n\t\t\tpost.ping_status ? [ 'ping_status', post.ping_status ] : false,\n\t\t\tpost.sticky ? [ 'sticky', post.sticky ] : false,\n\t\t\t[ 'post_author', post.author ],\n\t\t].filter( Boolean );\n\n\t\t// We gather all the metaboxes locations data and the base form data\n\t\tconst baseFormData = new window.FormData( document.querySelector( '.metabox-base-form' ) );\n\t\tconst formDataToMerge = [\n\t\t\tbaseFormData,\n\t\t\t...getActiveMetaBoxLocations( state ).map( ( location ) => (\n\t\t\t\tnew window.FormData( getMetaBoxContainer( location ) )\n\t\t\t) ),\n\t\t];\n\n\t\t// Merge all form data objects into a single one.\n\t\tconst formData = reduce( formDataToMerge, ( memo, currentFormData ) => {\n\t\t\tfor ( const [ key, value ] of currentFormData ) {\n\t\t\t\tmemo.append( key, value );\n\t\t\t}\n\t\t\treturn memo;\n\t\t}, new window.FormData() );\n\t\tadditionalData.forEach( ( [ key, value ] ) => formData.append( key, value ) );\n\n\t\t// Save the metaboxes\n\t\tapiFetch( {\n\t\t\turl: window._wpMetaBoxUrl,\n\t\t\tmethod: 'POST',\n\t\t\tbody: formData,\n\t\t\tparse: false,\n\t\t} )\n\t\t\t.then( () => store.dispatch( metaBoxUpdatesSuccess() ) );\n\t},\n\tSWITCH_MODE( action ) {\n\t\t// Unselect blocks when we switch to the code editor.\n\t\tif ( action.mode !== 'visual' ) {\n\t\t\tdispatch( 'core/editor' ).clearSelectedBlock();\n\t\t}\n\n\t\tconst message = action.mode === 'visual' ? __( 'Visual editor selected' ) : __( 'Code editor selected' );\n\t\tspeak( message, 'assertive' );\n\t},\n\tINIT( _, store ) {\n\t\t// Select the block settings tab when the selected block changes\n\t\tsubscribe( onChangeListener(\n\t\t\t() => !! select( 'core/editor' ).getBlockSelectionStart(),\n\t\t\t( hasBlockSelection ) => {\n\t\t\t\tif ( ! select( 'core/edit-post' ).isEditorSidebarOpened() ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ( hasBlockSelection ) {\n\t\t\t\t\tstore.dispatch( openGeneralSidebar( 'edit-post/block' ) );\n\t\t\t\t} else {\n\t\t\t\t\tstore.dispatch( openGeneralSidebar( 'edit-post/document' ) );\n\t\t\t\t}\n\t\t\t} )\n\t\t);\n\n\t\tconst isMobileViewPort = () => select( 'core/viewport' ).isViewportMatch( '< medium' );\n\t\tconst adjustSidebar = ( () => {\n\t\t\t// contains the sidebar we close when going to viewport sizes lower than medium.\n\t\t\t// This allows to reopen it when going again to viewport sizes greater than medium.\n\t\t\tlet sidebarToReOpenOnExpand = null;\n\t\t\treturn ( isSmall ) => {\n\t\t\t\tif ( isSmall ) {\n\t\t\t\t\tsidebarToReOpenOnExpand = getActiveGeneralSidebarName( store.getState() );\n\t\t\t\t\tif ( sidebarToReOpenOnExpand ) {\n\t\t\t\t\t\tstore.dispatch( closeGeneralSidebar() );\n\t\t\t\t\t}\n\t\t\t\t} else if ( sidebarToReOpenOnExpand && ! getActiveGeneralSidebarName( store.getState() ) ) {\n\t\t\t\t\tstore.dispatch( openGeneralSidebar( sidebarToReOpenOnExpand ) );\n\t\t\t\t}\n\t\t\t};\n\t\t} )();\n\n\t\tadjustSidebar( isMobileViewPort() );\n\n\t\t// Collapse sidebar when viewport shrinks.\n\t\t// Reopen sidebar it if viewport expands and it was closed because of a previous shrink.\n\t\tsubscribe( onChangeListener( isMobileViewPort, adjustSidebar ) );\n\n\t\t// Update View as link when currentPost link changes\n\t\tconst updateViewAsLink = ( newPermalink ) => {\n\t\t\tif ( ! newPermalink ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst nodeToUpdate = document.querySelector(\n\t\t\t\tVIEW_AS_LINK_SELECTOR\n\t\t\t);\n\t\t\tif ( ! nodeToUpdate ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnodeToUpdate.setAttribute( 'href', newPermalink );\n\t\t};\n\n\t\tsubscribe( onChangeListener(\n\t\t\t() => select( 'core/editor' ).getCurrentPost().link,\n\t\t\tupdateViewAsLink\n\t\t) );\n\t},\n\n};\n\nexport default effects;\n","/**\n * WordPress Dependencies\n */\nimport { registerStore } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport applyMiddlewares from './middlewares';\nimport * as actions from './actions';\nimport * as selectors from './selectors';\n\nconst store = registerStore( 'core/edit-post', {\n\treducer,\n\tactions,\n\tselectors,\n\tpersist: [ 'preferences' ],\n} );\n\napplyMiddlewares( store );\nstore.dispatch( { type: 'INIT' } );\n\nexport default store;\n","/**\n * External dependencies\n */\nimport { flowRight } from 'lodash';\nimport refx from 'refx';\n\n/**\n * Internal dependencies\n */\nimport effects from './effects';\n\n/**\n * Applies the custom middlewares used specifically in the editor module.\n *\n * @param {Object} store Store Object.\n *\n * @return {Object} Update Store Object.\n */\nfunction applyMiddlewares( store ) {\n\tconst middlewares = [\n\t\trefx( effects ),\n\t];\n\n\tlet enhancedDispatch = () => {\n\t\tthrow new Error(\n\t\t\t'Dispatching while constructing your middleware is not allowed. ' +\n\t\t\t'Other middleware would not be applied to this dispatch.'\n\t\t);\n\t};\n\tlet chain = [];\n\n\tconst middlewareAPI = {\n\t\tgetState: store.getState,\n\t\tdispatch: ( ...args ) => enhancedDispatch( ...args ),\n\t};\n\tchain = middlewares.map( ( middleware ) => middleware( middlewareAPI ) );\n\tenhancedDispatch = flowRight( ...chain )( store.dispatch );\n\n\tstore.dispatch = enhancedDispatch;\n\treturn store;\n}\n\nexport default applyMiddlewares;\n","/**\n * External dependencies\n */\nimport { get, includes } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { PREFERENCES_DEFAULTS } from './defaults';\n\n/**\n * The default active general sidebar: The \"Document\" tab.\n *\n * @type {string}\n */\nexport const DEFAULT_ACTIVE_GENERAL_SIDEBAR = 'edit-post/document';\n\n/**\n * Reducer returning the user preferences.\n *\n * @param {Object} state Current state.\n * @param {string} state.mode Current editor mode, either\n * \"visual\" or \"text\".\n * @param {boolean} state.isGeneralSidebarDismissed Whether general sidebar is\n * dismissed. False by default\n * or when closing general\n * sidebar, true when opening\n * sidebar.\n * @param {boolean} state.isSidebarOpened Whether the sidebar is\n * opened or closed.\n * @param {Object} state.panels The state of the different\n * sidebar panels.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const preferences = combineReducers( {\n\tisGeneralSidebarDismissed( state = false, action ) {\n\t\tswitch ( action.type ) {\n\t\t\tcase 'OPEN_GENERAL_SIDEBAR':\n\t\t\tcase 'CLOSE_GENERAL_SIDEBAR':\n\t\t\t\treturn action.type === 'CLOSE_GENERAL_SIDEBAR';\n\t\t}\n\n\t\treturn state;\n\t},\n\tpanels( state = PREFERENCES_DEFAULTS.panels, action ) {\n\t\tswitch ( action.type ) {\n\t\t\tcase 'TOGGLE_PANEL_ENABLED': {\n\t\t\t\tconst { panelName } = action;\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\t[ panelName ]: {\n\t\t\t\t\t\t...state[ panelName ],\n\t\t\t\t\t\tenabled: ! get( state, [ panelName, 'enabled' ], true ),\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tcase 'TOGGLE_PANEL_OPENED': {\n\t\t\t\tconst { panelName } = action;\n\t\t\t\tconst isOpen = state[ panelName ] === true || get( state, [ panelName, 'opened' ], false );\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\t[ panelName ]: {\n\t\t\t\t\t\t...state[ panelName ],\n\t\t\t\t\t\topened: ! isOpen,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\treturn state;\n\t},\n\tfeatures( state = PREFERENCES_DEFAULTS.features, action ) {\n\t\tif ( action.type === 'TOGGLE_FEATURE' ) {\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.feature ]: ! state[ action.feature ],\n\t\t\t};\n\t\t}\n\n\t\treturn state;\n\t},\n\teditorMode( state = PREFERENCES_DEFAULTS.editorMode, action ) {\n\t\tif ( action.type === 'SWITCH_MODE' ) {\n\t\t\treturn action.mode;\n\t\t}\n\n\t\treturn state;\n\t},\n\tpinnedPluginItems( state = PREFERENCES_DEFAULTS.pinnedPluginItems, action ) {\n\t\tif ( action.type === 'TOGGLE_PINNED_PLUGIN_ITEM' ) {\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.pluginName ]: ! get( state, [ action.pluginName ], true ),\n\t\t\t};\n\t\t}\n\t\treturn state;\n\t},\n} );\n\n/**\n * Reducer storing the list of all programmatically removed panels.\n *\n * @param {Array} state Current state.\n * @param {Object} action Action object.\n *\n * @return {Array} Updated state.\n */\nexport function removedPanels( state = [], action ) {\n\tswitch ( action.type ) {\n\t\tcase 'REMOVE_PANEL':\n\t\t\tif ( ! includes( state, action.panelName ) ) {\n\t\t\t\treturn [\n\t\t\t\t\t...state,\n\t\t\t\t\taction.panelName,\n\t\t\t\t];\n\t\t\t}\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer returning the next active general sidebar state. The active general\n * sidebar is a unique name to identify either an editor or plugin sidebar.\n *\n * @param {?string} state Current state.\n * @param {Object} action Action object.\n *\n * @return {?string} Updated state.\n */\nexport function activeGeneralSidebar( state = DEFAULT_ACTIVE_GENERAL_SIDEBAR, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'OPEN_GENERAL_SIDEBAR':\n\t\t\treturn action.name;\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer for storing the name of the open modal, or null if no modal is open.\n *\n * @param {Object} state Previous state.\n * @param {Object} action Action object containing the `name` of the modal\n *\n * @return {Object} Updated state\n */\nexport function activeModal( state = null, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'OPEN_MODAL':\n\t\t\treturn action.name;\n\t\tcase 'CLOSE_MODAL':\n\t\t\treturn null;\n\t}\n\n\treturn state;\n}\n\nexport function publishSidebarActive( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'OPEN_PUBLISH_SIDEBAR':\n\t\t\treturn true;\n\t\tcase 'CLOSE_PUBLISH_SIDEBAR':\n\t\t\treturn false;\n\t\tcase 'TOGGLE_PUBLISH_SIDEBAR':\n\t\t\treturn ! state;\n\t}\n\treturn state;\n}\n\n/**\n * Reducer keeping track of the meta boxes isSaving state.\n * A \"true\" value means the meta boxes saving request is in-flight.\n *\n *\n * @param {boolean} state Previous state.\n * @param {Object} action Action Object.\n *\n * @return {Object} Updated state.\n */\nexport function isSavingMetaBoxes( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'REQUEST_META_BOX_UPDATES':\n\t\t\treturn true;\n\t\tcase 'META_BOX_UPDATES_SUCCESS':\n\t\t\treturn false;\n\t\tdefault:\n\t\t\treturn state;\n\t}\n}\n\n/**\n * Reducer keeping track of the meta boxes per location.\n *\n * @param {boolean} state Previous state.\n * @param {Object} action Action Object.\n *\n * @return {Object} Updated state.\n */\nexport function metaBoxLocations( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_META_BOXES_PER_LOCATIONS':\n\t\t\treturn action.metaBoxesPerLocation;\n\t}\n\n\treturn state;\n}\n\nconst metaBoxes = combineReducers( {\n\tisSaving: isSavingMetaBoxes,\n\tlocations: metaBoxLocations,\n} );\n\nexport default combineReducers( {\n\tactiveGeneralSidebar,\n\tactiveModal,\n\tmetaBoxes,\n\tpreferences,\n\tpublishSidebarActive,\n\tremovedPanels,\n} );\n","/**\n * External dependencies\n */\nimport createSelector from 'rememo';\nimport { get, includes, some, flatten, values } from 'lodash';\n\n/**\n * Returns the current editing mode.\n *\n * @param {Object} state Global application state.\n *\n * @return {string} Editing mode.\n */\nexport function getEditorMode( state ) {\n\treturn getPreference( state, 'editorMode', 'visual' );\n}\n\n/**\n * Returns true if the editor sidebar is opened.\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether the editor sidebar is opened.\n */\nexport function isEditorSidebarOpened( state ) {\n\tconst activeGeneralSidebar = getActiveGeneralSidebarName( state );\n\n\treturn includes( [ 'edit-post/document', 'edit-post/block' ], activeGeneralSidebar );\n}\n\n/**\n * Returns true if the plugin sidebar is opened.\n *\n * @param {Object} state Global application state\n * @return {boolean} Whether the plugin sidebar is opened.\n */\nexport function isPluginSidebarOpened( state ) {\n\tconst activeGeneralSidebar = getActiveGeneralSidebarName( state );\n\treturn !! activeGeneralSidebar && ! isEditorSidebarOpened( state );\n}\n\n/**\n * Returns the current active general sidebar name, or null if there is no\n * general sidebar active. The active general sidebar is a unique name to\n * identify either an editor or plugin sidebar.\n *\n * Examples:\n *\n * - `edit-post/document`\n * - `my-plugin/insert-image-sidebar`\n *\n * @param {Object} state Global application state.\n *\n * @return {?string} Active general sidebar name.\n */\nexport function getActiveGeneralSidebarName( state ) {\n\t// Dismissal takes precedent.\n\tconst isDismissed = getPreference( state, 'isGeneralSidebarDismissed', false );\n\tif ( isDismissed ) {\n\t\treturn null;\n\t}\n\n\treturn state.activeGeneralSidebar;\n}\n\n/**\n * Returns the preferences (these preferences are persisted locally).\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Preferences Object.\n */\nexport function getPreferences( state ) {\n\treturn state.preferences;\n}\n\n/**\n *\n * @param {Object} state Global application state.\n * @param {string} preferenceKey Preference Key.\n * @param {Mixed} defaultValue Default Value.\n *\n * @return {Mixed} Preference Value.\n */\nexport function getPreference( state, preferenceKey, defaultValue ) {\n\tconst preferences = getPreferences( state );\n\tconst value = preferences[ preferenceKey ];\n\treturn value === undefined ? defaultValue : value;\n}\n\n/**\n * Returns true if the publish sidebar is opened.\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether the publish sidebar is open.\n */\nexport function isPublishSidebarOpened( state ) {\n\treturn state.publishSidebarActive;\n}\n\n/**\n * Returns true if the given panel was programmatically removed, or false otherwise.\n * All panels are not removed by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is removed.\n */\nexport function isEditorPanelRemoved( state, panelName ) {\n\treturn includes( state.removedPanels, panelName );\n}\n\n/**\n * Returns true if the given panel is enabled, or false otherwise. Panels are\n * enabled by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is enabled.\n */\nexport function isEditorPanelEnabled( state, panelName ) {\n\tconst panels = getPreference( state, 'panels' );\n\n\treturn ! isEditorPanelRemoved( state, panelName ) &&\n\t\tget( panels, [ panelName, 'enabled' ], true );\n}\n\n/**\n * Returns true if the given panel is open, or false otherwise. Panels are\n * closed by default.\n *\n * @param {Object} state Global application state.\n * @param {string} panelName A string that identifies the panel.\n *\n * @return {boolean} Whether or not the panel is open.\n */\nexport function isEditorPanelOpened( state, panelName ) {\n\tconst panels = getPreference( state, 'panels' );\n\treturn panels[ panelName ] === true || get( panels, [ panelName, 'opened' ], false );\n}\n\n/**\n * Returns true if a modal is active, or false otherwise.\n *\n * @param {Object} state \t Global application state.\n * @param {string} modalName A string that uniquely identifies the modal.\n *\n * @return {boolean} Whether the modal is active.\n */\nexport function isModalActive( state, modalName ) {\n\treturn state.activeModal === modalName;\n}\n\n/**\n * Returns whether the given feature is enabled or not.\n *\n * @param {Object} state Global application state.\n * @param {string} feature Feature slug.\n *\n * @return {boolean} Is active.\n */\nexport function isFeatureActive( state, feature ) {\n\treturn !! state.preferences.features[ feature ];\n}\n\n/**\n * Returns true if the plugin item is pinned to the header.\n * When the value is not set it defaults to true.\n *\n * @param {Object} state Global application state.\n * @param {string} pluginName Plugin item name.\n *\n * @return {boolean} Whether the plugin item is pinned.\n */\nexport function isPluginItemPinned( state, pluginName ) {\n\tconst pinnedPluginItems = getPreference( state, 'pinnedPluginItems', {} );\n\n\treturn get( pinnedPluginItems, [ pluginName ], true );\n}\n\n/**\n * Returns an array of active meta box locations.\n *\n * @param {Object} state Post editor state.\n *\n * @return {string[]} Active meta box locations.\n */\nexport const getActiveMetaBoxLocations = createSelector(\n\t( state ) => {\n\t\treturn Object.keys( state.metaBoxes.locations )\n\t\t\t.filter( ( location ) => isMetaBoxLocationActive( state, location ) );\n\t},\n\t( state ) => [\n\t\tstate.metaBoxes.locations,\n\t]\n);\n\n/**\n * Returns true if a metabox location is active and visible\n *\n * @param {Object} state Post editor state.\n * @param {string} location Meta box location to test.\n *\n * @return {boolean} Whether the meta box location is active and visible.\n */\nexport function isMetaBoxLocationVisible( state, location ) {\n\treturn (\n\t\tisMetaBoxLocationActive( state, location ) &&\n\t\tsome( getMetaBoxesPerLocation( state, location ), ( { id } ) => {\n\t\t\treturn isEditorPanelEnabled( state, `meta-box-${ id }` );\n\t\t} )\n\t);\n}\n\n/**\n * Returns true if there is an active meta box in the given location, or false\n * otherwise.\n *\n * @param {Object} state Post editor state.\n * @param {string} location Meta box location to test.\n *\n * @return {boolean} Whether the meta box location is active.\n */\nexport function isMetaBoxLocationActive( state, location ) {\n\tconst metaBoxes = getMetaBoxesPerLocation( state, location );\n\treturn !! metaBoxes && metaBoxes.length !== 0;\n}\n\n/**\n * Returns the list of all the available meta boxes for a given location.\n *\n * @param {Object} state Global application state.\n * @param {string} location Meta box location to test.\n *\n * @return {?Array} List of meta boxes.\n */\nexport function getMetaBoxesPerLocation( state, location ) {\n\treturn state.metaBoxes.locations[ location ];\n}\n\n/**\n * Returns the list of all the available meta boxes.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} List of meta boxes.\n */\nexport const getAllMetaBoxes = createSelector(\n\t( state ) => {\n\t\treturn flatten( values( state.metaBoxes.locations ) );\n\t},\n\t( state ) => [\n\t\tstate.metaBoxes.locations,\n\t]\n);\n\n/**\n * Returns true if the post is using Meta Boxes\n *\n * @param {Object} state Global application state\n *\n * @return {boolean} Whether there are metaboxes or not.\n */\nexport function hasMetaBoxes( state ) {\n\treturn getActiveMetaBoxLocations( state ).length > 0;\n}\n\n/**\n * Returns true if the Meta Boxes are being saved.\n *\n * @param {Object} state Global application state.\n *\n * @return {boolean} Whether the metaboxes are being saved.\n */\nexport function isSavingMetaBoxes( state ) {\n\treturn state.metaBoxes.isSaving;\n}\n","/**\n * Given a selector returns a functions that returns the listener only\n * if the returned value from the selector changes.\n *\n * @param {function} selector Selector.\n * @param {function} listener Listener.\n * @return {function} Listener creator.\n */\nexport const onChangeListener = ( selector, listener ) => {\n\tlet previousValue = selector();\n\treturn () => {\n\t\tconst selectedValue = selector();\n\t\tif ( selectedValue !== previousValue ) {\n\t\t\tpreviousValue = selectedValue;\n\t\t\tlistener( selectedValue );\n\t\t}\n\t};\n};\n","/**\n * Function returning the current Meta Boxes DOM Node in the editor\n * whether the meta box area is opened or not.\n * If the MetaBox Area is visible returns it, and returns the original container instead.\n *\n * @param {string} location Meta Box location.\n * @return {string} HTML content.\n */\nexport const getMetaBoxContainer = ( location ) => {\n\tconst area = document.querySelector( `.edit-post-meta-boxes-area.is-${ location } .metabox-location-${ location }` );\n\tif ( area ) {\n\t\treturn area;\n\t}\n\n\treturn document.querySelector( '#metaboxes .metabox-location-' + location );\n};\n","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","'use strict';\n\nfunction flattenIntoMap( map, effects ) {\n\tvar i;\n\tif ( Array.isArray( effects ) ) {\n\t\tfor ( i = 0; i < effects.length; i++ ) {\n\t\t\tflattenIntoMap( map, effects[ i ] );\n\t\t}\n\t} else {\n\t\tfor ( i in effects ) {\n\t\t\tmap[ i ] = ( map[ i ] || [] ).concat( effects[ i ] );\n\t\t}\n\t}\n}\n\nfunction refx( effects ) {\n\tvar map = {},\n\t\tmiddleware;\n\n\tflattenIntoMap( map, effects );\n\n\tmiddleware = function( store ) {\n\t\treturn function( next ) {\n\t\t\treturn function( action ) {\n\t\t\t\tvar handlers = map[ action.type ],\n\t\t\t\t\tresult = next( action ),\n\t\t\t\t\ti, handlerAction;\n\n\t\t\t\tif ( handlers ) {\n\t\t\t\t\tfor ( i = 0; i < handlers.length; i++ ) {\n\t\t\t\t\t\thandlerAction = handlers[ i ]( action, store );\n\t\t\t\t\t\tif ( handlerAction ) {\n\t\t\t\t\t\t\tstore.dispatch( handlerAction );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t};\n\t\t};\n\t};\n\n\tmiddleware.effects = map;\n\n\treturn middleware;\n}\n\nmodule.exports = refx;\n","'use strict';\n\nvar LEAF_KEY, hasWeakMap;\n\n/**\n * Arbitrary value used as key for referencing cache object in WeakMap tree.\n *\n * @type {Object}\n */\nLEAF_KEY = {};\n\n/**\n * Whether environment supports WeakMap.\n *\n * @type {boolean}\n */\nhasWeakMap = typeof WeakMap !== 'undefined';\n\n/**\n * Returns the first argument as the sole entry in an array.\n *\n * @param {*} value Value to return.\n *\n * @return {Array} Value returned as entry in array.\n */\nfunction arrayOf( value ) {\n\treturn [ value ];\n}\n\n/**\n * Returns true if the value passed is object-like, or false otherwise. A value\n * is object-like if it can support property assignment, e.g. object or array.\n *\n * @param {*} value Value to test.\n *\n * @return {boolean} Whether value is object-like.\n */\nfunction isObjectLike( value ) {\n\treturn !! value && 'object' === typeof value;\n}\n\n/**\n * Creates and returns a new cache object.\n *\n * @return {Object} Cache object.\n */\nfunction createCache() {\n\tvar cache = {\n\t\tclear: function() {\n\t\t\tcache.head = null;\n\t\t},\n\t};\n\n\treturn cache;\n}\n\n/**\n * Returns true if entries within the two arrays are strictly equal by\n * reference from a starting index.\n *\n * @param {Array} a First array.\n * @param {Array} b Second array.\n * @param {number} fromIndex Index from which to start comparison.\n *\n * @return {boolean} Whether arrays are shallowly equal.\n */\nfunction isShallowEqual( a, b, fromIndex ) {\n\tvar i;\n\n\tif ( a.length !== b.length ) {\n\t\treturn false;\n\t}\n\n\tfor ( i = fromIndex; i < a.length; i++ ) {\n\t\tif ( a[ i ] !== b[ i ] ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\n/**\n * Returns a memoized selector function. The getDependants function argument is\n * called before the memoized selector and is expected to return an immutable\n * reference or array of references on which the selector depends for computing\n * its own return value. The memoize cache is preserved only as long as those\n * dependant references remain the same. If getDependants returns a different\n * reference(s), the cache is cleared and the selector value regenerated.\n *\n * @param {Function} selector Selector function.\n * @param {Function} getDependants Dependant getter returning an immutable\n * reference or array of reference used in\n * cache bust consideration.\n *\n * @return {Function} Memoized selector.\n */\nexport default function( selector, getDependants ) {\n\tvar rootCache, getCache;\n\n\t// Use object source as dependant if getter not provided\n\tif ( ! getDependants ) {\n\t\tgetDependants = arrayOf;\n\t}\n\n\t/**\n\t * Returns the root cache. If WeakMap is supported, this is assigned to the\n\t * root WeakMap cache set, otherwise it is a shared instance of the default\n\t * cache object.\n\t *\n\t * @return {(WeakMap|Object)} Root cache object.\n\t */\n\tfunction getRootCache() {\n\t\treturn rootCache;\n\t}\n\n\t/**\n\t * Returns the cache for a given dependants array. When possible, a WeakMap\n\t * will be used to create a unique cache for each set of dependants. This\n\t * is feasible due to the nature of WeakMap in allowing garbage collection\n\t * to occur on entries where the key object is no longer referenced. Since\n\t * WeakMap requires the key to be an object, this is only possible when the\n\t * dependant is object-like. The root cache is created as a hierarchy where\n\t * each top-level key is the first entry in a dependants set, the value a\n\t * WeakMap where each key is the next dependant, and so on. This continues\n\t * so long as the dependants are object-like. If no dependants are object-\n\t * like, then the cache is shared across all invocations.\n\t *\n\t * @see isObjectLike\n\t *\n\t * @param {Array} dependants Selector dependants.\n\t *\n\t * @return {Object} Cache object.\n\t */\n\tfunction getWeakMapCache( dependants ) {\n\t\tvar caches = rootCache,\n\t\t\tisUniqueByDependants = true,\n\t\t\ti, dependant, map, cache;\n\n\t\tfor ( i = 0; i < dependants.length; i++ ) {\n\t\t\tdependant = dependants[ i ];\n\n\t\t\t// Can only compose WeakMap from object-like key.\n\t\t\tif ( ! isObjectLike( dependant ) ) {\n\t\t\t\tisUniqueByDependants = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Does current segment of cache already have a WeakMap?\n\t\t\tif ( caches.has( dependant ) ) {\n\t\t\t\t// Traverse into nested WeakMap.\n\t\t\t\tcaches = caches.get( dependant );\n\t\t\t} else {\n\t\t\t\t// Create, set, and traverse into a new one.\n\t\t\t\tmap = new WeakMap();\n\t\t\t\tcaches.set( dependant, map );\n\t\t\t\tcaches = map;\n\t\t\t}\n\t\t}\n\n\t\t// We use an arbitrary (but consistent) object as key for the last item\n\t\t// in the WeakMap to serve as our running cache.\n\t\tif ( ! caches.has( LEAF_KEY ) ) {\n\t\t\tcache = createCache();\n\t\t\tcache.isUniqueByDependants = isUniqueByDependants;\n\t\t\tcaches.set( LEAF_KEY, cache );\n\t\t}\n\n\t\treturn caches.get( LEAF_KEY );\n\t}\n\n\t// Assign cache handler by availability of WeakMap\n\tgetCache = hasWeakMap ? getWeakMapCache : getRootCache;\n\n\t/**\n\t * Resets root memoization cache.\n\t */\n\tfunction clear() {\n\t\trootCache = hasWeakMap ? new WeakMap() : createCache();\n\t}\n\n\t// eslint-disable-next-line jsdoc/check-param-names\n\t/**\n\t * The augmented selector call, considering first whether dependants have\n\t * changed before passing it to underlying memoize function.\n\t *\n\t * @param {Object} source Source object for derivation.\n\t * @param {...*} extraArgs Additional arguments to pass to selector.\n\t *\n\t * @return {*} Selector result.\n\t */\n\tfunction callSelector( /* source, ...extraArgs */ ) {\n\t\tvar len = arguments.length,\n\t\t\tcache, node, i, args, dependants;\n\n\t\t// Create copy of arguments (avoid leaking deoptimization).\n\t\targs = new Array( len );\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tdependants = getDependants.apply( null, args );\n\t\tcache = getCache( dependants );\n\n\t\t// If not guaranteed uniqueness by dependants (primitive type or lack\n\t\t// of WeakMap support), shallow compare against last dependants and, if\n\t\t// references have changed, destroy cache to recalculate result.\n\t\tif ( ! cache.isUniqueByDependants ) {\n\t\t\tif ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) {\n\t\t\t\tcache.clear();\n\t\t\t}\n\n\t\t\tcache.lastDependants = dependants;\n\t\t}\n\n\t\tnode = cache.head;\n\t\twhile ( node ) {\n\t\t\t// Check whether node arguments match arguments\n\t\t\tif ( ! isShallowEqual( node.args, args, 1 ) ) {\n\t\t\t\tnode = node.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// At this point we can assume we've found a match\n\n\t\t\t// Surface matched node to head if not already\n\t\t\tif ( node !== cache.head ) {\n\t\t\t\t// Adjust siblings to point to each other.\n\t\t\t\tnode.prev.next = node.next;\n\t\t\t\tif ( node.next ) {\n\t\t\t\t\tnode.next.prev = node.prev;\n\t\t\t\t}\n\n\t\t\t\tnode.next = cache.head;\n\t\t\t\tnode.prev = null;\n\t\t\t\tcache.head.prev = node;\n\t\t\t\tcache.head = node;\n\t\t\t}\n\n\t\t\t// Return immediately\n\t\t\treturn node.val;\n\t\t}\n\n\t\t// No cached value found. Continue to insertion phase:\n\n\t\tnode = {\n\t\t\t// Generate the result from original function\n\t\t\tval: selector.apply( null, args ),\n\t\t};\n\n\t\t// Avoid including the source object in the cache.\n\t\targs[ 0 ] = null;\n\t\tnode.args = args;\n\n\t\t// Don't need to check whether node is already head, since it would\n\t\t// have been returned above already if it was\n\n\t\t// Shift existing head down list\n\t\tif ( cache.head ) {\n\t\t\tcache.head.prev = node;\n\t\t\tnode.next = cache.head;\n\t\t}\n\n\t\tcache.head = node;\n\n\t\treturn node.val;\n\t}\n\n\tcallSelector.getDependants = getDependants;\n\tcallSelector.clear = clear;\n\tclear();\n\n\treturn callSelector;\n}\n","(function() { module.exports = this[\"wp\"][\"a11y\"]; }());","(function() { module.exports = this[\"wp\"][\"apiFetch\"]; }());","(function() { module.exports = this[\"wp\"][\"blockLibrary\"]; }());","(function() { module.exports = this[\"wp\"][\"blocks\"]; }());","(function() { module.exports = this[\"wp\"][\"components\"]; }());","(function() { module.exports = this[\"wp\"][\"compose\"]; }());","(function() { module.exports = this[\"wp\"][\"coreData\"]; }());","(function() { module.exports = this[\"wp\"][\"data\"]; }());","(function() { module.exports = this[\"wp\"][\"editor\"]; }());","(function() { module.exports = this[\"wp\"][\"element\"]; }());","(function() { module.exports = this[\"wp\"][\"hooks\"]; }());","(function() { module.exports = this[\"wp\"][\"i18n\"]; }());","(function() { module.exports = this[\"wp\"][\"keycodes\"]; }());","(function() { module.exports = this[\"wp\"][\"notices\"]; }());","(function() { module.exports = this[\"wp\"][\"nux\"]; }());","(function() { module.exports = this[\"wp\"][\"plugins\"]; }());","(function() { module.exports = this[\"wp\"][\"url\"]; }());","(function() { module.exports = this[\"wp\"][\"viewport\"]; }());","(function() { module.exports = this[\"lodash\"]; }());"],"sourceRoot":""}