12 lines
86 KiB
JavaScript
12 lines
86 KiB
JavaScript
this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=364)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return o})},106:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},11:function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.d(t,"a",function(){return r})},117:function(e,t,n){"use strict";var o=n(0),r=n(3),c=Object(r.createSlotFill)("PluginPostStatusInfo"),i=c.Fill,a=c.Slot,l=function(e){var t=e.children,n=e.className;return Object(o.createElement)(i,null,Object(o.createElement)(r.PanelRow,{className:n},t))};l.Slot=a,t.a=l},118:function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(8),i=n(52),a=n(4),l=n(53),s=Object(r.createSlotFill)("PluginDocumentSettingPanel"),u=s.Fill,d=s.Slot,b=Object(c.compose)(Object(i.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,panelName:"".concat(e.name,"/").concat(t.name)}}),Object(a.withSelect)(function(e,t){var n=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(n),isEnabled:e("core/edit-post").isEditorPanelEnabled(n)}}),Object(a.withDispatch)(function(e,t){var n=t.panelName;return{onToggle:function(){return e("core/edit-post").toggleEditorPanelOpened(n)}}}))(function(e){var t=e.isEnabled,n=e.panelName,c=e.opened,i=e.onToggle,a=e.className,s=e.title,d=e.icon,b=e.children;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.d,{label:s,panelName:n}),Object(o.createElement)(u,null,t&&Object(o.createElement)(r.PanelBody,{className:a,title:s,icon:d,opened:c,onToggle:i},b)))});b.Slot=d,t.a=b},119:function(e,t,n){"use strict";var o=n(0),r=n(8),c=n(52),i=n(3),a=Object(i.createSlotFill)("PluginPostPublishPanel"),l=a.Fill,s=a.Slot,u=Object(r.compose)(Object(c.withPluginContext)(function(e,t){return{icon:t.icon||e.icon}}))(function(e){var t=e.children,n=e.className,r=e.title,c=e.initialOpen,a=void 0!==c&&c,s=e.icon;return Object(o.createElement)(l,null,Object(o.createElement)(i.PanelBody,{className:n,initialOpen:a||!r,title:r,icon:s},t))});u.Slot=s,t.a=u},12:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return o})},120:function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(8),i=n(52),a=Object(r.createSlotFill)("PluginPrePublishPanel"),l=a.Fill,s=a.Slot,u=Object(c.compose)(Object(i.withPluginContext)(function(e,t){return{icon:t.icon||e.icon}}))(function(e){var t=e.children,n=e.className,c=e.title,i=e.initialOpen,a=void 0!==i&&i,s=e.icon;return Object(o.createElement)(l,null,Object(o.createElement)(r.PanelBody,{className:n,initialOpen:a||!c,title:c,icon:s},t))});u.Slot=s,t.a=u},121:function(e,t,n){"use strict";var o=n(18),r=n(21),c=n(0),i=n(2),a=n(8),l=n(3),s=n(52),u=n(124);t.a=Object(a.compose)(Object(s.withPluginContext)(function(e,t){return{icon:t.icon||e.icon}}))(function(e){var t=e.onClick,n=void 0===t?i.noop:t,s=Object(r.a)(e,["onClick"]);return Object(c.createElement)(u.a,null,function(e){return Object(c.createElement)(l.MenuItem,Object(o.a)({},s,{onClick:Object(a.compose)(n,e.onClose)}))})})},123:function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(3),i=n(1),a=Object(c.createSlotFill)("ToolsMoreMenuGroup"),l=a.Fill,s=a.Slot;l.Slot=function(e){var t=e.fillProps;return Object(o.createElement)(s,{fillProps:t},function(e){return!Object(r.isEmpty)(e)&&Object(o.createElement)(c.MenuGroup,{label:Object(i.__)("Tools")},e)})},t.a=l},124:function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(3),i=n(1),a=Object(c.createSlotFill)("PluginsMoreMenuGroup"),l=a.Fill,s=a.Slot;l.Slot=function(e){var t=e.fillProps;return Object(o.createElement)(s,{fillProps:t},function(e){return!Object(r.isEmpty)(e)&&Object(o.createElement)(c.MenuGroup,{label:Object(i.__)("Plugins")},e)})},t.a=l},125:function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(3),i=Object(c.createSlotFill)("PinnedPlugins"),a=i.Fill,l=i.Slot;a.Slot=function(e){return Object(o.createElement)(l,e,function(e){return!Object(r.isEmpty)(e)&&Object(o.createElement)("div",{className:"edit-post-pinned-plugins"},e)})},t.a=a},126:function(e,t,n){"use strict";var o=n(7),r=n(0),c=n(2),i=n(3),a=n(4),l=Object(i.createSlotFill)("PluginBlockSettingsMenuGroup"),s=l.Fill,u=l.Slot;s.Slot=Object(a.withSelect)(function(e,t){var n=t.fillProps.clientIds;return{selectedBlocks:e("core/block-editor").getBlocksByClientId(n)}})(function(e){var t=e.fillProps,n=e.selectedBlocks;return n=Object(c.map)(n,function(e){return e.name}),Object(r.createElement)(u,{fillProps:Object(o.a)({},t,{selectedBlocks:n})},function(e){return!Object(c.isEmpty)(e)&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"editor-block-settings-menu__separator block-editor-block-settings-menu__separator"}),e)})}),t.a=s},127:function(e,t,n){"use strict";var o=n(0),r=n(16),c=n.n(r),i=n(8),a=n(1),l=n(3),s=n(4),u=n(65);t.a=Object(i.compose)(Object(s.withSelect)(function(e){return{title:e("core/editor").getEditedPostAttribute("title")}}),Object(s.withDispatch)(function(e){return{closeSidebar:e("core/edit-post").closeGeneralSidebar}}))(function(e){var t=e.children,n=e.className,r=e.closeLabel,i=e.closeSidebar,s=e.title;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(o.createElement)("span",{className:"edit-post-sidebar-header__title"},s||Object(a.__)("(no title)")),Object(o.createElement)(l.IconButton,{onClick:i,icon:"no-alt",label:r})),Object(o.createElement)("div",{className:c()("components-panel__header edit-post-sidebar-header",n)},t,Object(o.createElement)(l.IconButton,{onClick:i,icon:"no-alt",label:r,shortcut:u.a.toggleSidebar})))})},13:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var o=n(31),r=n(5);function c(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!=typeof t?Object(r.a)(e):t}},14:function(e,t,n){"use strict";function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return o})},15:function(e,t,n){"use strict";function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}n.d(t,"a",function(){return r})},157:function(e,t){!function(){e.exports=this.wp.notices}()},16:function(e,t,n){var o;
|
||
/*!
|
||
Copyright (c) 2017 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/
|
||
/*!
|
||
Copyright (c) 2017 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/
|
||
!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var c=typeof o;if("string"===c||"number"===c)e.push(o);else if(Array.isArray(o)&&o.length){var i=r.apply(null,o);i&&e.push(i)}else if("object"===c)for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},161:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},163:function(e,t,n){"use strict";var o=n(18),r=n(21),c=n(17),i=n(7),a=n(12),l=n(11),s=n(13),u=n(14),d=n(15),b=n(0),p=n(45),m=n.n(p),O=n(2),f=n(4),j=n(24),h=n(3),E=n(8),g={"t a l e s o f g u t e n b e r g":function(e){(document.activeElement.classList.contains("edit-post-visual-editor")||document.activeElement===document.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},v=n(16),_=n.n(v),y=n(1),S=n(52),k=n(43),P=n(26);var w=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,c=this.state.historyId;"trash"!==o?n===e.postId&&n===c||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,r)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(P.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(P.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState(function(){return{historyId:e}})}},{key:"render",value:function(){return null}}]),t}(b.Component),C=Object(f.withSelect)(function(e){var t=(0,e("core/editor").getCurrentPost)();return{postId:t.id,postStatus:t.status,postType:t.type}})(w),T=n(63);var x=Object(f.withSelect)(function(e){var t=e("core/editor").getCurrentPostType,n=e("core/edit-post").isFeatureActive,o=e("core").getPostType;return{isActive:n("fullscreenMode"),postType:o(t())}})(function(e){var t=e.isActive,n=e.postType;return t&&n?Object(b.createElement)(h.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(b.createElement)(h.IconButton,{icon:"arrow-left-alt2",href:Object(P.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(O.get)(n,["labels","view_items"],Object(y.__)("Back"))})):null}),N=n(6);var A=Object(E.compose)([Object(f.withSelect)(function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,isTextModeEnabled:"text"===e("core/edit-post").getEditorMode()}}),Object(k.withViewportMatch)({isLargeViewport:"medium"})])(function(e){var t=e.hasFixedToolbar,n=e.isLargeViewport,o=e.showInserter,r=e.isTextModeEnabled,c=t?Object(y.__)("Document and block tools"):Object(y.__)("Document tools");return Object(b.createElement)(N.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":c},Object(b.createElement)("div",null,Object(b.createElement)(N.Inserter,{disabled:!o,position:"bottom right",showInserterHelpPanel:!0}),Object(b.createElement)(T.DotTip,{tipId:"core/editor.inserter"},Object(y.__)("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!"))),Object(b.createElement)(j.EditorHistoryUndo,null),Object(b.createElement)(j.EditorHistoryRedo,null),Object(b.createElement)(j.TableOfContents,{hasOutlineItemsDisabled:r}),Object(b.createElement)(N.BlockNavigationDropdown,{isDisabled:r}),t&&n&&Object(b.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(b.createElement)(N.BlockToolbar,null)))}),M=n(65),B=[{value:"visual",label:Object(y.__)("Visual Editor")},{value:"text",label:Object(y.__)("Code Editor")}];var I=Object(E.compose)([Object(f.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),Object(E.ifCondition)(function(e){var t=e.isRichEditingEnabled,n=e.isCodeEditingEnabled;return t&&n}),Object(f.withDispatch)(function(e){return{onSwitch:function(t){e("core/edit-post").switchEditorMode(t)}}})])(function(e){var t=e.onSwitch,n=e.mode,o=B.map(function(e){return e.value!==n?Object(i.a)({},e,{shortcut:M.a.toggleEditorMode.display}):e});return Object(b.createElement)(h.MenuGroup,{label:Object(y.__)("Editor")},Object(b.createElement)(h.MenuItemsChoice,{choices:o,value:n,onSelect:t}))}),L=n(124),D=n(123);var F=Object(f.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal;return Object(b.createElement)(h.MenuItem,{onClick:function(){t("edit-post/options")}},Object(y.__)("Options"))});var R=Object(E.compose)([Object(f.withSelect)(function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}}),Object(f.withDispatch)(function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature)}}}),h.withSpokenMessages])(function(e){var t=e.onToggle,n=e.isActive,o=e.label,r=e.info,c=e.messageActivated,i=e.messageDeactivated,a=e.speak;return Object(b.createElement)(h.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(O.flow)(t,function(){a(n?i||Object(y.__)("Feature deactivated"):c||Object(y.__)("Feature activated"))}),role:"menuitemcheckbox",info:r},o)});var G=Object(k.ifViewportMatches)("medium")(function(){return Object(b.createElement)(h.MenuGroup,{label:Object(y._x)("View","noun")},Object(b.createElement)(R,{feature:"fixedToolbar",label:Object(y.__)("Top Toolbar"),info:Object(y.__)("Access all block and document tools in a single place"),messageActivated:Object(y.__)("Top toolbar activated"),messageDeactivated:Object(y.__)("Top toolbar deactivated")}),Object(b.createElement)(R,{feature:"focusMode",label:Object(y.__)("Spotlight Mode"),info:Object(y.__)("Focus on one block at a time"),messageActivated:Object(y.__)("Spotlight mode activated"),messageDeactivated:Object(y.__)("Spotlight mode deactivated")}),Object(b.createElement)(R,{feature:"fullscreenMode",label:Object(y.__)("Fullscreen Mode"),info:Object(y.__)("Work without distraction"),messageActivated:Object(y.__)("Fullscreen mode activated"),messageDeactivated:Object(y.__)("Fullscreen mode deactivated")}))}),V={className:"edit-post-more-menu__content",position:"bottom left"},U={labelPosition:"bottom"},H=function(){return Object(b.createElement)(h.DropdownMenu,{className:"edit-post-more-menu",icon:"ellipsis",label:Object(y.__)("More tools & options"),popoverProps:V,toggleProps:U},function(e){var t=e.onClose;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(G,null),Object(b.createElement)(I,null),Object(b.createElement)(L.a.Slot,{fillProps:{onClose:t}}),Object(b.createElement)(D.a.Slot,{fillProps:{onClose:t}}),Object(b.createElement)(h.MenuGroup,null,Object(b.createElement)(F,null)))})},W=n(125);var q=Object(E.compose)(Object(f.withSelect)(function(e){return{hasPublishAction:Object(O.get)(e("core/editor").getCurrentPost(),["_links","wp:action-publish"],!1),isBeingScheduled:e("core/editor").isEditedPostBeingScheduled(),isPending:e("core/editor").isCurrentPostPending(),isPublished:e("core/editor").isCurrentPostPublished(),isPublishSidebarEnabled:e("core/editor").isPublishSidebarEnabled(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isScheduled:e("core/editor").isCurrentPostScheduled()}}),Object(f.withDispatch)(function(e){return{togglePublishSidebar:e("core/edit-post").togglePublishSidebar}}),Object(k.withViewportMatch)({isLessThanMediumViewport:"< medium"}))(function(e){var t,n=e.forceIsDirty,o=e.forceIsSaving,r=e.hasPublishAction,c=e.isBeingScheduled,i=e.isLessThanMediumViewport,a=e.isPending,l=e.isPublished,s=e.isPublishSidebarEnabled,u=e.isPublishSidebarOpened,d=e.isScheduled,p=e.togglePublishSidebar;return t=l||d&&c||a&&!r&&!i?"button":i?"toggle":s?"toggle":"button",Object(b.createElement)(j.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:u,isToggle:"toggle"===t,onToggle:p})});var K=Object(E.compose)(Object(f.withSelect)(function(e){return{hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),isPublishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),isSaving:e("core/edit-post").isSavingMetaBoxes()}}),Object(f.withDispatch)(function(e,t,n){var o=(0,n.select)("core/block-editor").getBlockSelectionStart,r=e("core/edit-post"),c=r.openGeneralSidebar;return{openGeneralSidebar:function(){return c(o()?"edit-post/block":"edit-post/document")},closeGeneralSidebar:r.closeGeneralSidebar}}))(function(e){var t=e.closeGeneralSidebar,n=e.hasActiveMetaboxes,o=e.isEditorSidebarOpened,r=e.isPublishSidebarOpened,c=e.isSaving,i=e.openGeneralSidebar,a=o?t:i;return Object(b.createElement)("div",{role:"region","aria-label":Object(y.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(b.createElement)("div",{className:"edit-post-header__toolbar"},Object(b.createElement)(x,null),Object(b.createElement)(A,null)),Object(b.createElement)("div",{className:"edit-post-header__settings"},!r&&Object(b.createElement)(j.PostSavedState,{forceIsDirty:n,forceIsSaving:c}),Object(b.createElement)(j.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:c?null:void 0}),Object(b.createElement)(q,{forceIsDirty:n,forceIsSaving:c}),Object(b.createElement)("div",null,Object(b.createElement)(h.IconButton,{icon:"admin-generic",label:Object(y.__)("Settings"),onClick:a,isToggled:o,"aria-expanded":o,shortcut:M.a.toggleSidebar}),Object(b.createElement)(T.DotTip,{tipId:"core/editor.settings"},Object(y.__)("You’ll find more settings for your page and blocks in the sidebar. Click the cog icon to toggle the sidebar open and closed."))),Object(b.createElement)(W.a.Slot,null),Object(b.createElement)(H,null)))}),Q=n(19);var X=Object(E.compose)(Object(f.withSelect)(function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}}),Object(f.withDispatch)(function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}}))(function(e){var t=e.onExit,n=e.isRichEditingEnabled;return Object(b.createElement)("div",{className:"edit-post-text-editor"},n&&Object(b.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(b.createElement)("h2",null,Object(y.__)("Editing Code")),Object(b.createElement)(h.IconButton,{onClick:t,icon:"no-alt",shortcut:Q.displayShortcut.secondary("m")},Object(y.__)("Exit Code Editor")),Object(b.createElement)(j.TextEditorGlobalKeyboardShortcuts,null)),Object(b.createElement)("div",{className:"edit-post-text-editor__body"},Object(b.createElement)(j.PostTitle,null),Object(b.createElement)(j.PostTextEditor,null)))});var z=Object(E.compose)(Object(f.withSelect)(function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}}),Object(f.withDispatch)(function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}}),h.withSpokenMessages)(function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,c=void 0===r?O.noop:r,i=e.small,a=void 0!==i&&i,l=e.speak,s=t?Object(y.__)("Hide Block Settings"):Object(y.__)("Show Block Settings");return Object(b.createElement)(h.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(O.flow)(t?n:o,function(){l(t?Object(y.__)("Block settings closed"):Object(y.__)("Additional settings are now available in the Editor block settings sidebar"))},c),icon:"admin-generic",shortcut:M.a.toggleSidebar},!a&&s)}),Y=n(126);var $=function(){return Object(b.createElement)(N.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(b.createElement)(j.VisualEditorGlobalKeyboardShortcuts,null),Object(b.createElement)(N.MultiSelectScrollIntoView,null),Object(b.createElement)(N.Typewriter,null,Object(b.createElement)(N.WritingFlow,null,Object(b.createElement)(N.ObserveTyping,null,Object(b.createElement)(N.CopyHandler,null,Object(b.createElement)(j.PostTitle,null),Object(b.createElement)(N.BlockList,null))))),Object(b.createElement)(N.__experimentalBlockSettingsMenuFirstItem,null,function(e){var t=e.onClose;return Object(b.createElement)(z,{onClick:t})}),Object(b.createElement)(N.__experimentalBlockSettingsMenuPluginsExtension,null,function(e){var t=e.clientIds,n=e.onClose;return Object(b.createElement)(Y.a.Slot,{fillProps:{clientIds:t,onClose:n}})}))},Z=n(10),J=n(5),ee=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(J.a)(e)),e.toggleSidebar=e.toggleSidebar.bind(Object(J.a)(e)),e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode,n=e.switchMode;e.isModeSwitchEnabled&&n("visual"===t?"text":"visual")}},{key:"toggleSidebar",value:function(e){e.preventDefault();var t=this.props,n=t.isEditorSidebarOpen,o=t.closeSidebar,r=t.openSidebar;n?o():r()}},{key:"render",value:function(){var e;return Object(b.createElement)(h.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(Z.a)(e,M.a.toggleEditorMode.raw,this.toggleMode),Object(Z.a)(e,M.a.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(b.Component),te=Object(E.compose)([Object(f.withSelect)(function(e){var t=e("core/editor").getEditorSettings(),n=t.richEditingEnabled,o=t.codeEditingEnabled;return{isModeSwitchEnabled:n&&o,mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened()}}),Object(f.withDispatch)(function(e,t,n){var o=n.select;return{switchMode:function(t){e("core/edit-post").switchEditorMode(t)},openSidebar:function(){var t=(0,o("core/block-editor").getBlockSelectionStart)()?"edit-post/block":"edit-post/document";e("core/edit-post").openGeneralSidebar(t)},closeSidebar:e("core/edit-post").closeGeneralSidebar}})])(ee),ne=Q.displayShortcutList.primary,oe=Q.displayShortcutList.primaryShift,re=Q.displayShortcutList.primaryAlt,ce=Q.displayShortcutList.secondary,ie=Q.displayShortcutList.access,ae=Q.displayShortcutList.ctrl,le=Q.displayShortcutList.alt,se=Q.displayShortcutList.ctrlShift,ue=[{className:"edit-post-keyboard-shortcut-help__main-shortcuts",shortcuts:[{keyCombination:ie("h"),description:Object(y.__)("Display these keyboard shortcuts.")}]},{title:Object(y.__)("Global shortcuts"),shortcuts:[{keyCombination:ne("s"),description:Object(y.__)("Save your changes.")},{keyCombination:ne("z"),description:Object(y.__)("Undo your last changes.")},{keyCombination:oe("z"),description:Object(y.__)("Redo your last undo.")},{keyCombination:oe(","),description:Object(y.__)("Show or hide the settings sidebar."),ariaLabel:Q.shortcutAriaLabel.primaryShift(",")},{keyCombination:ie("o"),description:Object(y.__)("Open the block navigation menu.")},{keyCombination:ae("`"),description:Object(y.__)("Navigate to the next part of the editor."),ariaLabel:Q.shortcutAriaLabel.ctrl("`")},{keyCombination:se("`"),description:Object(y.__)("Navigate to the previous part of the editor."),ariaLabel:Q.shortcutAriaLabel.ctrlShift("`")},{keyCombination:ie("n"),description:Object(y.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:ie("p"),description:Object(y.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:le("F10"),description:Object(y.__)("Navigate to the nearest toolbar.")},{keyCombination:ce("m"),description:Object(y.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(y.__)("Selection shortcuts"),shortcuts:[{keyCombination:ne("a"),description:Object(y.__)("Select all text when typing. Press again to select all blocks.")},{keyCombination:"Esc",description:Object(y.__)("Clear selection."),ariaLabel:Object(y.__)("Escape")}]},{title:Object(y.__)("Block shortcuts"),shortcuts:[{keyCombination:oe("d"),description:Object(y.__)("Duplicate the selected block(s).")},{keyCombination:ie("z"),description:Object(y.__)("Remove the selected block(s).")},{keyCombination:re("t"),description:Object(y.__)("Insert a new block before the selected block(s).")},{keyCombination:re("y"),description:Object(y.__)("Insert a new block after the selected block(s).")},{keyCombination:"/",description:Object(y.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(y.__)("Forward-slash")}]},{title:Object(y.__)("Text formatting"),shortcuts:[{keyCombination:ne("b"),description:Object(y.__)("Make the selected text bold.")},{keyCombination:ne("i"),description:Object(y.__)("Make the selected text italic.")},{keyCombination:ne("k"),description:Object(y.__)("Convert the selected text into a link.")},{keyCombination:oe("k"),description:Object(y.__)("Remove a link.")},{keyCombination:ne("u"),description:Object(y.__)("Underline the selected text.")}]}],de="edit-post/keyboard-shortcut-help",be=function(e){var t=e.shortcuts;return Object(b.createElement)("ul",{className:"edit-post-keyboard-shortcut-help__shortcut-list",role:"list"},t.map(function(e,t){var n=e.keyCombination,o=e.description,r=e.ariaLabel;return Object(b.createElement)("li",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(b.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o),Object(b.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(b.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help__shortcut-key-combination","aria-label":r},function(e){return e.map(function(e,t){return"+"===e?Object(b.createElement)(b.Fragment,{key:t},e):Object(b.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)})}(Object(O.castArray)(n)))))}))},pe=function(e){var t=e.title,n=e.shortcuts,o=e.className;return Object(b.createElement)("section",{className:_()("edit-post-keyboard-shortcut-help__section",o)},!!t&&Object(b.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(b.createElement)(be,{shortcuts:n}))};var me=Object(E.compose)([Object(f.withSelect)(function(e){return{isModalActive:e("core/edit-post").isModalActive(de)}}),Object(f.withDispatch)(function(e,t){var n=t.isModalActive,o=e("core/edit-post"),r=o.openModal,c=o.closeModal;return{toggleModal:function(){return n?c():r(de)}}})])(function(e){var t=e.isModalActive,n=e.toggleModal;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(h.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(Z.a)({},Q.rawShortcut.access("h"),n)}),t&&Object(b.createElement)(h.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(y.__)("Keyboard Shortcuts"),closeLabel:Object(y.__)("Close"),onRequestClose:n},ue.map(function(e,t){return Object(b.createElement)(pe,Object(o.a)({key:t},e))})))});var Oe=function(e){var t=e.blockTypes,n=e.value,o=e.onItemChange;return Object(b.createElement)("ul",{className:"edit-post-manage-blocks-modal__checklist"},t.map(function(e){return Object(b.createElement)("li",{key:e.name,className:"edit-post-manage-blocks-modal__checklist-item"},Object(b.createElement)(h.CheckboxControl,{label:Object(b.createElement)(b.Fragment,null,e.title,Object(b.createElement)(N.BlockIcon,{icon:e.icon})),checked:n.includes(e.name),onChange:Object(O.partial)(o,e.name)}))}))},fe=Object(b.createContext)({});var je=Object(E.compose)([E.withInstanceId,Object(f.withSelect)(function(e){return{hiddenBlockTypes:(0,e("core/edit-post").getPreference)("hiddenBlockTypes")}}),Object(f.withDispatch)(function(e,t){var n=e("core/edit-post"),o=n.showBlockTypes,r=n.hideBlockTypes;return{toggleVisible:function(e,t){t?o(e):r(e)},toggleAllVisible:function(e){var n=Object(O.map)(t.blockTypes,"name");e?o(n):r(n)}}})])(function(e){var t=e.instanceId,n=e.category,o=e.blockTypes,r=e.hiddenBlockTypes,i=e.toggleVisible,a=e.toggleAllVisible,l=Object(b.useContext)(fe).allowedBlockTypes,s=Object(b.useMemo)(function(){return!0===l?o:o.filter(function(e){var t=e.name;return Object(O.includes)(l||[],t)})},[l,o]);if(!s.length)return null;var u,d=O.without.apply(void 0,[Object(O.map)(s,"name")].concat(Object(c.a)(r))),p="edit-post-manage-blocks-modal__category-title-"+t,m=d.length===s.length;return u=m?"true":d.length>0?"mixed":"false",Object(b.createElement)("div",{role:"group","aria-labelledby":p,className:"edit-post-manage-blocks-modal__category"},Object(b.createElement)(h.CheckboxControl,{checked:m,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(b.createElement)("span",{id:p},n.title)}),Object(b.createElement)(Oe,{blockTypes:s,value:d,onItemChange:i}))});var he=Object(E.compose)([Object(E.withState)({search:""}),Object(f.withSelect)(function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,c=t.isMatchingSearchTerm,i=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),a=Object(O.isArray)(i)&&i.length;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:c,numberOfHiddenBlocks:a}})])(function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,c=e.hasBlockSupport,i=e.isMatchingSearchTerm,a=e.numberOfHiddenBlocks;return o=o.filter(function(e){return c(e,"inserter",!0)&&(!t||i(e,t))&&!e.parent}),Object(b.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(b.createElement)(h.TextControl,{type:"search",label:Object(y.__)("Search for a block"),value:t,onChange:function(e){return n({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!a&&Object(b.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(y.sprintf)(Object(y._n)("%1$d block is disabled.","%1$d blocks are disabled.",a),a)),Object(b.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(y.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(b.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(y.__)("No blocks found.")),r.map(function(e){return Object(b.createElement)(je,{key:e.slug,category:e,blockTypes:Object(O.filter)(o,{category:e.slug})})})))});var Ee=Object(E.compose)([Object(f.withSelect)(function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}}),Object(f.withDispatch)(function(e){return{closeModal:e("core/edit-post").closeModal}})])(function(e){var t=e.isActive,n=e.closeModal;return t?Object(b.createElement)(h.Modal,{className:"edit-post-manage-blocks-modal",title:Object(y.__)("Block Manager"),closeLabel:Object(y.__)("Close"),onRequestClose:n},Object(b.createElement)(he,null)):null}),ge=function(e){var t=e.title,n=e.children;return Object(b.createElement)("section",{className:"edit-post-options-modal__section"},Object(b.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)},ve=n(53);var _e=Object(f.withSelect)(function(e){var t=e("core/editor").getEditorSettings,n=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}})(function(e){var t=e.areCustomFieldsRegistered,n=e.metaBoxes,o=Object(r.a)(e,["areCustomFieldsRegistered","metaBoxes"]),c=Object(O.filter)(n,function(e){return"postcustom"!==e.id});return t||0!==c.length?Object(b.createElement)(ge,o,t&&Object(b.createElement)(ve.a,{label:Object(y.__)("Custom Fields")}),Object(O.map)(c,function(e){var t=e.id,n=e.title;return Object(b.createElement)(ve.c,{key:t,label:n,panelName:"meta-box-".concat(t)})})):null});var ye=Object(E.compose)(Object(f.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(O.get)(n,["viewable"],!1)}}),Object(f.withDispatch)(function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}}))(function(e){var t=e.isModalActive,n=e.isViewable,o=e.closeModal;return t?Object(b.createElement)(h.Modal,{className:"edit-post-options-modal",title:Object(y.__)("Options"),closeLabel:Object(y.__)("Close"),onRequestClose:o},Object(b.createElement)(ge,{title:Object(y.__)("General")},Object(b.createElement)(ve.e,{label:Object(y.__)("Pre-publish Checks")}),Object(b.createElement)(ve.f,{label:Object(y.__)("Tips")}),Object(b.createElement)(ve.b,{feature:"showInserterHelpPanel",label:Object(y.__)("Inserter Help Panel")})),Object(b.createElement)(ge,{title:Object(y.__)("Document Panels")},Object(b.createElement)(ve.d.Slot,null),n&&Object(b.createElement)(ve.c,{label:Object(y.__)("Permalink"),panelName:"post-link"}),Object(b.createElement)(j.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(b.createElement)(ve.c,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(b.createElement)(j.PostFeaturedImageCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Featured Image"),panelName:"featured-image"})),Object(b.createElement)(j.PostExcerptCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Excerpt"),panelName:"post-excerpt"})),Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(b.createElement)(ve.c,{label:Object(y.__)("Discussion"),panelName:"discussion-panel"})),Object(b.createElement)(j.PageAttributesCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Page Attributes"),panelName:"page-attributes"}))),Object(b.createElement)(_e,{title:Object(y.__)("Advanced Panels")})):null}),Se=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(J.a)(e)),e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.form=document.querySelector(".metabox-location-"+this.props.location),this.form&&this.container.appendChild(this.form)}},{key:"componentWillUnmount",value:function(){this.form&&document.querySelector("#metaboxes").appendChild(this.form)}},{key:"bindContainerNode",value:function(e){this.container=e}},{key:"render",value:function(){var e=this.props,t=e.location,n=e.isSaving,o=_()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(b.createElement)("div",{className:o},n&&Object(b.createElement)(h.Spinner,null),Object(b.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(b.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(b.Component),ke=Object(f.withSelect)(function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}})(Se),Pe=function(e){function t(){return Object(a.a)(this,t),Object(s.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.updateDOM()}},{key:"componentDidUpdate",value:function(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}},{key:"updateDOM",value:function(){var e=this.props,t=e.id,n=e.isVisible,o=document.getElementById(t);o&&(n?o.classList.remove("is-hidden"):o.classList.add("is-hidden"))}},{key:"render",value:function(){return null}}]),t}(b.Component),we=Object(f.withSelect)(function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}})(Pe);var Ce=Object(f.withSelect)(function(e,t){var n=t.location,o=e("core/edit-post"),r=o.isMetaBoxLocationVisible;return{metaBoxes:(0,o.getMetaBoxesPerLocation)(n),isVisible:r(n)}})(function(e){var t=e.location,n=e.isVisible,o=e.metaBoxes;return Object(b.createElement)(b.Fragment,null,Object(O.map)(o,function(e){var t=e.id;return Object(b.createElement)(we,{key:t,id:t})}),n&&Object(b.createElement)(ke,{location:t}))}),Te=n(88),xe=n(23),Ne=n(127),Ae=Object(f.withDispatch)(function(e){var t=e("core/edit-post").openGeneralSidebar,n=e("core/block-editor").clearSelectedBlock;return{openDocumentSettings:function(){t("edit-post/document"),n()},openBlockSettings:function(){t("edit-post/block")}}})(function(e){var t=e.openDocumentSettings,n=e.openBlockSettings,o=e.sidebarName,r=Object(y.__)("Block"),c="edit-post/document"===o?[Object(y.__)("Document (selected)"),"is-active"]:[Object(y.__)("Document"),""],i=Object(xe.a)(c,2),a=i[0],l=i[1],s="edit-post/block"===o?[Object(y.__)("Block (selected)"),"is-active"]:[Object(y.__)("Block"),""],u=Object(xe.a)(s,2),d=u[0],p=u[1];return Object(b.createElement)(Ne.a,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(y.__)("Close settings")},Object(b.createElement)("ul",null,Object(b.createElement)("li",null,Object(b.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(l),"aria-label":a,"data-label":Object(y.__)("Document")},Object(y.__)("Document"))),Object(b.createElement)("li",null,Object(b.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":d,"data-label":r},r))))});var Me=function(){return Object(b.createElement)(j.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(b.createElement)(h.PanelRow,{className:"edit-post-post-visibility"},Object(b.createElement)("span",null,Object(y.__)("Visibility")),!t&&Object(b.createElement)("span",null,Object(b.createElement)(j.PostVisibilityLabel,null)),t&&Object(b.createElement)(h.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(h.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(b.createElement)(j.PostVisibilityLabel,null))},renderContent:function(){return Object(b.createElement)(j.PostVisibility,null)}}))}})};function Be(){return Object(b.createElement)(j.PostTrashCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostTrash,null)))}var Ie=function(){return Object(b.createElement)(j.PostScheduleCheck,null,Object(b.createElement)(h.PanelRow,{className:"edit-post-post-schedule"},Object(b.createElement)("span",null,Object(y.__)("Publish")),Object(b.createElement)(h.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(h.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(b.createElement)(j.PostScheduleLabel,null)))},renderContent:function(){return Object(b.createElement)(j.PostSchedule,null)}})))};var Le=function(){return Object(b.createElement)(j.PostStickyCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostSticky,null)))};var De=function(){return Object(b.createElement)(j.PostAuthorCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostAuthor,null)))};var Fe=function(){return Object(b.createElement)(j.PostFormatCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostFormat,null)))};var Re=function(){return Object(b.createElement)(j.PostPendingStatusCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostPendingStatus,null)))},Ge=n(117);var Ve=Object(E.compose)([Object(f.withSelect)(function(e){var t=e("core/edit-post"),n=t.isEditorPanelRemoved,o=t.isEditorPanelOpened;return{isRemoved:n("post-status"),isOpened:o("post-status")}}),Object(E.ifCondition)(function(e){return!e.isRemoved}),Object(f.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-status")}}})])(function(e){var t=e.isOpened,n=e.onTogglePanel;return Object(b.createElement)(h.PanelBody,{className:"edit-post-post-status",title:Object(y.__)("Status & Visibility"),opened:t,onToggle:n},Object(b.createElement)(Ge.a.Slot,null,function(e){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Me,null),Object(b.createElement)(Ie,null),Object(b.createElement)(Fe,null),Object(b.createElement)(Le,null),Object(b.createElement)(Re,null),Object(b.createElement)(De,null),e,Object(b.createElement)(Be,null))}))});var Ue=function(){return Object(b.createElement)(j.PostLastRevisionCheck,null,Object(b.createElement)(h.PanelBody,{className:"edit-post-last-revision__panel"},Object(b.createElement)(j.PostLastRevision,null)))};var He=Object(E.compose)(Object(f.withSelect)(function(e,t){var n=Object(O.get)(t.taxonomy,["slug"]),o=n?"taxonomy-panel-".concat(n):"";return{panelName:o,isEnabled:!!n&&e("core/edit-post").isEditorPanelEnabled(o),isOpened:!!n&&e("core/edit-post").isEditorPanelOpened(o)}}),Object(f.withDispatch)(function(e,t){return{onTogglePanel:function(){e("core/edit-post").toggleEditorPanelOpened(t.panelName)}}}))(function(e){var t=e.isEnabled,n=e.taxonomy,o=e.isOpened,r=e.onTogglePanel,c=e.children;if(!t)return null;var i=Object(O.get)(n,["labels","menu_name"]);return i?Object(b.createElement)(h.PanelBody,{title:i,opened:o,onToggle:r},c):null});var We=function(){return Object(b.createElement)(j.PostTaxonomiesCheck,null,Object(b.createElement)(j.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(b.createElement)(He,{taxonomy:t},e)}}))};var qe=Object(f.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,c=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:c("featured-image")}}),Ke=Object(f.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"featured-image")}}),Qe=Object(E.compose)(qe,Ke)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(b.createElement)(j.PostFeaturedImageCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(O.get)(o,["labels","featured_image"],Object(y.__)("Featured Image")),opened:n,onToggle:r},Object(b.createElement)(j.PostFeaturedImage,null))):null});var Xe=Object(E.compose)([Object(f.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}}),Object(f.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("post-excerpt")}}})])(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(b.createElement)(j.PostExcerptCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Excerpt"),opened:n,onToggle:o},Object(b.createElement)(j.PostExcerpt,null))):null});var ze=Object(E.compose)([Object(f.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,c=t.isCurrentPostPublished,i=t.getPermalinkParts,a=t.getEditedPostAttribute,l=e("core/edit-post"),s=l.isEditorPanelEnabled,u=l.isEditorPanelOpened,d=e("core").getPostType,b=r(),p=b.link,m=b.id,f=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:c(),isOpened:u("post-link"),permalinkParts:i(),isEnabled:s("post-link"),isViewable:Object(O.get)(f,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m,postTypeLabel:Object(O.get)(f,["labels","view_item"])}}),Object(E.ifCondition)(function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,c=e.permalinkParts;return t&&!n&&o&&r&&c}),Object(f.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened,n=e("core/editor").editPost;return{onTogglePanel:function(){return t("post-link")},editPermalink:function(e){n({slug:e})}}}),Object(E.withState)({forceEmptyField:!1})])(function(e){var t,n,o,r=e.isOpened,c=e.onTogglePanel,i=e.isEditable,a=e.postLink,l=e.permalinkParts,s=e.editPermalink,u=e.forceEmptyField,d=e.setState,p=e.postTitle,m=e.postSlug,O=e.postID,f=e.postTypeLabel,E=l.prefix,g=l.suffix,v=Object(P.safeDecodeURIComponent)(m)||Object(j.cleanForSlug)(p)||O;return i&&(t=E&&Object(b.createElement)("span",{className:"edit-post-post-link__link-prefix"},E),n=v&&Object(b.createElement)("span",{className:"edit-post-post-link__link-post-name"},v),o=g&&Object(b.createElement)("span",{className:"edit-post-post-link__link-suffix"},g)),Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Permalink"),opened:r,onToggle:c},i&&Object(b.createElement)("div",{className:"editor-post-link"},Object(b.createElement)(h.TextControl,{label:Object(y.__)("URL Slug"),value:u?"":v,onChange:function(e){s(e),e?u&&d({forceEmptyField:!1}):u||d({forceEmptyField:!0})},onBlur:function(e){s(Object(j.cleanForSlug)(e.target.value)),u&&d({forceEmptyField:!1})}}),Object(b.createElement)("p",null,Object(y.__)("The last part of the URL. "),Object(b.createElement)(h.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(y.__)("Read about permalinks")))),Object(b.createElement)("p",{className:"edit-post-post-link__preview-label"},f||Object(y.__)("View Post")),Object(b.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(b.createElement)(h.ExternalLink,{className:"edit-post-post-link__link",href:a,target:"_blank"},i?Object(b.createElement)(b.Fragment,null,t,n,o):a)))});var Ye=Object(E.compose)([Object(f.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}}),Object(f.withDispatch)(function(e){return{onTogglePanel:function(){return e("core/edit-post").toggleEditorPanelOpened("discussion-panel")}}})])(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel;return t?Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Discussion"),opened:n,onToggle:o},Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:"comments"},Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostComments,null))),Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostPingbacks,null))))):null});var $e=Object(f.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,c=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:c(t("type"))}}),Ze=Object(f.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"page-attributes")}}),Je=Object(E.compose)($e,Ze)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(b.createElement)(j.PageAttributesCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(O.get)(r,["labels","attributes"],Object(y.__)("Page Attributes")),opened:n,onToggle:o},Object(b.createElement)(j.PageTemplate,null),Object(b.createElement)(j.PageAttributesParent,null),Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PageAttributesOrder,null)))):null}),et=n(118),tt=Object(E.compose)(Object(f.withSelect)(function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}}),Object(E.ifCondition)(function(e){return e.isEditorSidebarOpened}))(function(e){var t=e.sidebarName;return Object(b.createElement)(Te.a,{name:t,label:Object(y.__)("Editor settings")},Object(b.createElement)(Ae,{sidebarName:t}),Object(b.createElement)(h.Panel,null,"edit-post/document"===t&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Ve,null),Object(b.createElement)(et.a.Slot,null),Object(b.createElement)(Ue,null),Object(b.createElement)(ze,null),Object(b.createElement)(We,null),Object(b.createElement)(Qe,null),Object(b.createElement)(Xe,null),Object(b.createElement)(Ye,null),Object(b.createElement)(Je,null),Object(b.createElement)(Ce,{location:"side"})),"edit-post/block"===t&&Object(b.createElement)(h.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(b.createElement)(N.BlockInspector,null))))}),nt=n(119),ot=n(120),rt=function(e){function t(){return Object(a.a)(this,t),Object(s.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}},{key:"componentWillUnmount",value:function(){this.isSticky&&document.body.classList.add("sticky-menu")}},{key:"componentDidUpdate",value:function(e){this.props.isActive!==e.isActive&&this.sync()}},{key:"sync",value:function(){this.props.isActive?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}},{key:"render",value:function(){return null}}]),t}(b.Component),ct=Object(f.withSelect)(function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}})(rt);var it=Object(E.compose)(Object(f.withSelect)(function(e){return{mode:e("core/edit-post").getEditorMode(),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}}),Object(f.withDispatch)(function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}}),h.navigateRegions,Object(k.withViewportMatch)({isMobileViewport:"< small"}))(function(e){var t=e.mode,n=e.editorSidebarOpened,r=e.pluginSidebarOpened,c=e.publishSidebarOpened,i=e.hasFixedToolbar,a=e.closePublishSidebar,l=e.togglePublishSidebar,s=e.hasActiveMetaboxes,u=e.isSaving,d=e.isMobileViewport,p=e.isRichEditingEnabled,m=n||r||c,O=_()("edit-post-layout",{"is-sidebar-opened":m,"has-fixed-toolbar":i,"has-metaboxes":s}),f={role:"region","aria-label":Object(y.__)("Editor publish"),tabIndex:-1};return Object(b.createElement)(h.FocusReturnProvider,{className:O},Object(b.createElement)(ct,null),Object(b.createElement)(C,null),Object(b.createElement)(j.UnsavedChangesWarning,null),Object(b.createElement)(j.AutosaveMonitor,null),Object(b.createElement)(j.LocalAutosaveMonitor,null),Object(b.createElement)(K,null),Object(b.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(y.__)("Editor content"),tabIndex:"-1"},Object(b.createElement)(j.EditorNotices,null),Object(b.createElement)(te,null),Object(b.createElement)(me,null),Object(b.createElement)(Ee,null),Object(b.createElement)(ye,null),("text"===t||!p)&&Object(b.createElement)(X,null),p&&"visual"===t&&Object(b.createElement)($,null),Object(b.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(b.createElement)(Ce,{location:"normal"})),Object(b.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(b.createElement)(Ce,{location:"advanced"}))),c?Object(b.createElement)(j.PostPublishPanel,Object(o.a)({},f,{onClose:a,forceIsDirty:s,forceIsSaving:u,PrePublishExtension:ot.a.Slot,PostPublishExtension:nt.a.Slot})):Object(b.createElement)(b.Fragment,null,Object(b.createElement)("div",Object(o.a)({className:"edit-post-toggle-publish-panel"},f),Object(b.createElement)(h.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:l,"aria-expanded":!1},Object(y.__)("Open publish panel"))),Object(b.createElement)(tt,null),Object(b.createElement)(Te.a.Slot,null),d&&m&&Object(b.createElement)(h.ScrollLock,null)),Object(b.createElement)(h.Popover.Slot,null),Object(b.createElement)(S.PluginArea,null))}),at=n(75),lt=function(e){var t=e.postId;!function(e){var t=Object(f.useSelect)(function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),sidebarToReOpenOnExpand:e(at.a).getActiveGeneralSidebarName()}},[e]),n=t.isSmall,o=t.sidebarToReOpenOnExpand,r=Object(f.useDispatch)(at.a),c=r.openGeneralSidebar,i=r.closeGeneralSidebar,a=Object(b.useRef)("");Object(b.useEffect)(function(){n&&o?(a.current=o,i()):!n&&a.current&&(c(a.current),a.current="")},[n,o])}(t),function(e){var t=Object(f.useSelect)(function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(at.a).isEditorSidebarOpened()}},[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(f.useDispatch)(at.a).openGeneralSidebar;Object(b.useEffect)(function(){o&&r(n?"edit-post/block":"edit-post/document")},[n,o])}(t),function(e){var t=Object(f.useSelect)(function(e){return{newPermalink:e("core/editor").getCurrentPost().link}},[e]).newPermalink,n=Object(b.useRef)();Object(b.useEffect)(function(){n.current=document.querySelector(at.c)||document.querySelector(at.b)},[e]),Object(b.useEffect)(function(){t&&n.current&&n.current.setAttribute("href",t)},[t])}(t);var n=Object(f.useDispatch)("core/nux").triggerGuide;return Object(b.useEffect)(function(){n(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"])},[n]),null},st=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).getEditorSettings=m()(e.getEditorSettings,{maxSize:1}),e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,a,l,s,u){if(e=Object(i.a)({},e,{__experimentalPreferredStyleVariations:{value:l,onChange:u},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:s}),Object(O.size)(r)>0){var d=!0===e.allowedBlockTypes?Object(O.map)(a,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[d].concat(Object(c.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,c=e.focusMode,i=e.post,a=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,p=e.preferredStyleVariations,m=e.__experimentalLocalAutosaveInterval,O=e.showInserterHelpPanel,f=e.updatePreferredStyleVariations,E=Object(r.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!i)return null;var v=this.getEditorSettings(t,n,O,c,u,d,p,m,f);return Object(b.createElement)(b.StrictMode,null,Object(b.createElement)(fe.Provider,{value:t},Object(b.createElement)(h.SlotFillProvider,null,Object(b.createElement)(h.DropZoneProvider,null,Object(b.createElement)(j.EditorProvider,Object(o.a)({settings:v,post:i,initialEdits:l,useSubRegistry:!1},E),Object(b.createElement)(j.ErrorBoundary,{onError:s},Object(b.createElement)(lt,{postId:a}),Object(b.createElement)(it,null),Object(b.createElement)(h.KeyboardShortcuts,{shortcuts:g})),Object(b.createElement)(j.PostLockedModal,null))))))}}]),t}(b.Component);t.a=Object(E.compose)([Object(f.withSelect)(function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),c=r.isFeatureActive,i=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:c("showInserterHelpPanel"),hasFixedToolbar:c("fixedToolbar"),focusMode:c("focusMode"),post:a("postType",o,n),preferredStyleVariations:i("preferredStyleVariations"),hiddenBlockTypes:i("hiddenBlockTypes"),blockTypes:l(),__experimentalLocalAutosaveInterval:i("localAutosaveInterval")}}),Object(f.withDispatch)(function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}})])(st)},17:function(e,t,n){"use strict";var o=n(30);function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return r})},18:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",function(){return o})},19:function(e,t){!function(){e.exports=this.wp.keycodes}()},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",function(){return o})},217:function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(3),i=n(8),a=n(126),l=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(r.difference)(n,o).length);var n,o};t.a=function(e){var t=e.allowedBlocks,n=e.icon,r=e.label,s=e.onClick,u=e.small,d=e.role;return Object(o.createElement)(a.a,null,function(e){var a=e.selectedBlocks,b=e.onClose;return l(a,t)?Object(o.createElement)(c.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(i.compose)(s,b),icon:n||"admin-plugins",label:u?r:void 0,role:d},!u&&r):null})}},218:function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(4),i=n(1),a=n(52),l=n(8),s=n(125),u=n(88),d=n(127);t.a=Object(l.compose)(Object(a.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}}),Object(c.withSelect)(function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,c=o.isPluginItemPinned;return{isActive:r()===n,isPinned:c(n)}}),Object(c.withDispatch)(function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?c():i(o)}}}))(function(e){var t=e.children,n=e.className,c=e.icon,a=e.isActive,l=e.isPinnable,b=void 0===l||l,p=e.isPinned,m=e.sidebarName,O=e.title,f=e.togglePin,j=e.toggleSidebar;return Object(o.createElement)(o.Fragment,null,b&&Object(o.createElement)(s.a,null,p&&Object(o.createElement)(r.IconButton,{icon:c,label:O,onClick:j,isToggled:a,"aria-expanded":a})),Object(o.createElement)(u.a,{name:m,label:Object(i.__)("Editor plugins")},Object(o.createElement)(d.a,{closeLabel:Object(i.__)("Close plugin")},Object(o.createElement)("strong",null,O),b&&Object(o.createElement)(r.IconButton,{icon:p?"star-filled":"star-empty",label:p?Object(i.__)("Unpin from toolbar"):Object(i.__)("Pin to toolbar"),onClick:f,isToggled:p,"aria-expanded":p})),Object(o.createElement)(r.Panel,{className:n},t)))})},219:function(e,t,n){"use strict";var o=n(0),r=n(8),c=n(4),i=n(52),a=n(121);t.a=Object(r.compose)(Object(i.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}}),Object(c.withSelect)(function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}}),Object(c.withDispatch)(function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar;return{onClick:n?c:function(){return i(o)}}}))(function(e){var t=e.children,n=e.icon,r=e.isSelected,c=e.onClick;return Object(o.createElement)(a.a,{icon:r?"yes":n,isSelected:r,role:"menuitemcheckbox",onClick:c},t)})},23:function(e,t,n){"use strict";var o=n(38);var r=n(39);function c(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(o=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,c=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw c}}return n}(e,t)||Object(r.a)()}n.d(t,"a",function(){return c})},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,n){"use strict";function o(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",function(){return o})},31:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}n.d(t,"a",function(){return r})},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},36:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=r?new WeakMap:i()}function u(){var n,o,r,c,i,s=arguments.length;for(c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),o=n.head;o;){if(a(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),l=r?function(e){var t,r,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(r=e[t],!(l=r)||"object"!=typeof l){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((a=i()).isUniqueByDependants=u,s.set(o,a)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},364:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"reinitializeEditor",function(){return m}),n.d(t,"initializeEditor",function(){return O});var o=n(0),r=(n(97),n(6),n(24),n(63),n(43),n(157),n(161)),c=(n(407),n(405),n(392),n(163)),i=n(217);n.d(t,"PluginBlockSettingsMenuItem",function(){return i.a});var a=n(118);n.d(t,"PluginDocumentSettingPanel",function(){return a.a});var l=n(121);n.d(t,"PluginMoreMenuItem",function(){return l.a});var s=n(119);n.d(t,"PluginPostPublishPanel",function(){return s.a});var u=n(117);n.d(t,"PluginPostStatusInfo",function(){return u.a});var d=n(120);n.d(t,"PluginPrePublishPanel",function(){return d.a});var b=n(218);n.d(t,"PluginSidebar",function(){return b.a});var p=n(219);function m(e,t,n,r,i){Object(o.unmountComponentAtNode)(n);var a=m.bind(null,e,t,n,r,i);Object(o.render)(Object(o.createElement)(c.a,{settings:r,onError:a,postId:t,postType:e,initialEdits:i,recovery:!0}),n)}function O(t,n,i,a,l){var s=document.getElementById(t),u=m.bind(null,n,i,s,a,l);Object(r.registerCoreBlocks)(),2===e.env.GUTENBERG_PHASE&&Object(r.__experimentalRegisterExperimentalCoreBlocks)(a),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),Object(o.render)(Object(o.createElement)(c.a,{settings:a,onError:u,postId:i,postType:n,initialEdits:l}),s)}n.d(t,"PluginSidebarMoreMenuItem",function(){return p.a})}.call(this,n(96))},38:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return o})},39:function(e,t,n){"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return o})},392:function(e,t,n){"use strict";var o={};n.r(o),n.d(o,"openGeneralSidebar",function(){return _}),n.d(o,"closeGeneralSidebar",function(){return y}),n.d(o,"openModal",function(){return S}),n.d(o,"closeModal",function(){return k}),n.d(o,"openPublishSidebar",function(){return P}),n.d(o,"closePublishSidebar",function(){return w}),n.d(o,"togglePublishSidebar",function(){return C}),n.d(o,"toggleEditorPanelEnabled",function(){return T}),n.d(o,"toggleEditorPanelOpened",function(){return x}),n.d(o,"removeEditorPanel",function(){return N}),n.d(o,"toggleFeature",function(){return A}),n.d(o,"switchEditorMode",function(){return M}),n.d(o,"togglePinnedPluginItem",function(){return B}),n.d(o,"hideBlockTypes",function(){return I}),n.d(o,"updatePreferredStyleVariations",function(){return L}),n.d(o,"__experimentalUpdateLocalAutosaveInterval",function(){return D}),n.d(o,"showBlockTypes",function(){return F}),n.d(o,"setAvailableMetaBoxesPerLocation",function(){return R}),n.d(o,"requestMetaBoxUpdates",function(){return G}),n.d(o,"metaBoxUpdatesSuccess",function(){return V});var r={};n.r(r),n.d(r,"getEditorMode",function(){return H}),n.d(r,"isEditorSidebarOpened",function(){return W}),n.d(r,"isPluginSidebarOpened",function(){return q}),n.d(r,"getActiveGeneralSidebarName",function(){return K}),n.d(r,"getPreferences",function(){return Q}),n.d(r,"getPreference",function(){return X}),n.d(r,"isPublishSidebarOpened",function(){return z}),n.d(r,"isEditorPanelRemoved",function(){return Y}),n.d(r,"isEditorPanelEnabled",function(){return $}),n.d(r,"isEditorPanelOpened",function(){return Z}),n.d(r,"isModalActive",function(){return J}),n.d(r,"isFeatureActive",function(){return ee}),n.d(r,"isPluginItemPinned",function(){return te}),n.d(r,"getActiveMetaBoxLocations",function(){return ne}),n.d(r,"isMetaBoxLocationVisible",function(){return oe}),n.d(r,"isMetaBoxLocationActive",function(){return re}),n.d(r,"getMetaBoxesPerLocation",function(){return ce}),n.d(r,"getAllMetaBoxes",function(){return ie}),n.d(r,"hasMetaBoxes",function(){return ae}),n.d(r,"isSavingMetaBoxes",function(){return le});var c,i=n(4),a=n(17),l=n(10),s=n(7),u=n(2),d="edit-post/document",b=Object(u.flow)([i.combineReducers,(c={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1,showInserterHelpPanel:!0},pinnedPluginItems:{},hiddenBlockTypes:[],preferredStyleVariations:{},localAutosaveInterval:15},function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,n=arguments.length>1?arguments[1]:void 0;return e(t,n)}})])({isGeneralSidebarDismissed:function(e,t){switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var n=t.panelName;return Object(s.a)({},e,Object(l.a)({},n,Object(s.a)({},e[n],{enabled:!Object(u.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(u.get)(e,[o,"opened"],!1);return Object(s.a)({},e,Object(l.a)({},o,Object(s.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(s.a)({},e,Object(l.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(e,t){return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?Object(s.a)({},e,Object(l.a)({},t.pluginName,!Object(u.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return u.without.apply(void 0,[e].concat(Object(a.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(u.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(s.a)({},e,Object(l.a)({},t.blockName,t.blockStyle)):Object(u.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var p=Object(i.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),m=Object(i.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:p,preferences:b,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(u.includes)(e,t.panelName))return[].concat(Object(a.a)(e),[t.panelName])}return e}}),O=n(76),f=n.n(O),j=n(23),h=n(46),E=n(1),g=n(32),v=n.n(g);function _(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function y(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function S(e){return{type:"OPEN_MODAL",name:e}}function k(){return{type:"CLOSE_MODAL"}}function P(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function w(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function C(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function T(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function x(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function N(e){return{type:"REMOVE_PANEL",panelName:e}}function A(e){return{type:"TOGGLE_FEATURE",feature:e}}function M(e){return{type:"SWITCH_MODE",mode:e}}function B(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function I(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(u.castArray)(e)}}function L(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function D(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function F(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(u.castArray)(e)}}function R(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function G(){return{type:"REQUEST_META_BOX_UPDATES"}}function V(){return{type:"META_BOX_UPDATES_SUCCESS"}}var U=n(36);function H(e){return X(e,"editorMode","visual")}function W(e){var t=K(e);return Object(u.includes)(["edit-post/document","edit-post/block"],t)}function q(e){return!!K(e)&&!W(e)}function K(e){return X(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function Q(e){return e.preferences}function X(e,t,n){var o=Q(e)[t];return void 0===o?n:o}function z(e){return e.publishSidebarActive}function Y(e,t){return Object(u.includes)(e.removedPanels,t)}function $(e,t){var n=X(e,"panels");return!Y(e,t)&&Object(u.get)(n,[t,"enabled"],!0)}function Z(e,t){var n=X(e,"panels");return!0===Object(u.get)(n,[t])||!0===Object(u.get)(n,[t,"opened"])}function J(e,t){return e.activeModal===t}function ee(e,t){return Object(u.get)(e.preferences.features,[t],!1)}function te(e,t){var n=X(e,"pinnedPluginItems",{});return Object(u.get)(n,[t],!0)}var ne=Object(U.a)(function(e){return Object.keys(e.metaBoxes.locations).filter(function(t){return re(e,t)})},function(e){return[e.metaBoxes.locations]});function oe(e,t){return re(e,t)&&Object(u.some)(ce(e,t),function(t){var n=t.id;return $(e,"meta-box-".concat(n))})}function re(e,t){var n=ce(e,t);return!!n&&0!==n.length}function ce(e,t){return e.metaBoxes.locations[t]}var ie=Object(U.a)(function(e){return Object(u.flatten)(Object(u.values)(e.metaBoxes.locations))},function(e){return[e.metaBoxes.locations]});function ae(e){return ne(e).length>0}function le(e){return e.metaBoxes.isSaving}var se,ue={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout(function(){var e=Object(i.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)});var n=Object(i.select)("core/editor").isSavingPost(),o=Object(i.select)("core/editor").isAutosavingPost(),r=Object(i.select)("core/edit-post").hasMetaBoxes();se&&se(),se=Object(i.subscribe)(function(){var e=Object(i.select)("core/editor").isSavingPost(),c=Object(i.select)("core/editor").isAutosavingPost(),a=r&&n&&!e&&!o;n=e,o=c,a&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})})},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var n=t.getState(),o=Object(i.select)("core/editor").getCurrentPost(n),r=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),c=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(a.a)(ne(n).map(function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))}))),l=Object(u.reduce)(c,function(e,t){var n=!0,o=!1,r=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done);n=!0){var a=Object(j.a)(c.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return e},new window.FormData);r.forEach(function(e){var t=Object(j.a)(e,2),n=t[0],o=t[1];return l.append(n,o)}),v()({url:window._wpMetaBoxUrl,method:"POST",body:l,parse:!1}).then(function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})})},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(i.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(h.speak)(t,"assertive")}};var de=function(e){var t,n=[f()(ue)],o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:e.getState,dispatch:function(){return o.apply(void 0,arguments)}};return t=n.map(function(e){return e(r)}),o=u.flowRight.apply(void 0,Object(a.a)(t))(e.dispatch),e.dispatch=o,e};var be={SELECT:Object(i.createRegistryControl)(function(e){return function(t){var n,o=t.storeName,r=t.selectorName,c=t.args;return(n=e.select(o))[r].apply(n,Object(a.a)(c))}})},pe=n(75),me=Object(i.registerStore)(pe.a,{reducer:m,actions:o,selectors:r,controls:be,persist:["preferences"]});de(me)},4:function(e,t){!function(){e.exports=this.wp.data}()},405:function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(1),i=n(52),a=n(26),l=n(4),s=n(8);var u=Object(s.compose)(Object(l.withSelect)(function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}}),Object(l.withDispatch)(function(e){return{createNotice:e("core/notices").createNotice}}),Object(s.withState)({hasCopied:!1}))(function(e){var t=e.createNotice,n=e.editedPostContent,i=e.hasCopied,a=e.setState;return n.length>0&&Object(o.createElement)(r.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){a({hasCopied:!0}),t("info","All content copied.",{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return a({hasCopied:!1})}},i?Object(c.__)("Copied!"):Object(c.__)("Copy All Content"))});var d=Object(l.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal;return Object(o.createElement)(r.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(c.__)("Block Manager"))}),b=n(19);var p=Object(l.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal;return Object(o.createElement)(r.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:b.displayShortcut.access("h")},Object(c.__)("Keyboard Shortcuts"))}),m=n(123);Object(i.registerPlugin)("edit-post",{render:function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.a,null,function(e){var t=e.onClose;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,{onSelect:t}),Object(o.createElement)(r.MenuItem,{role:"menuitem",href:Object(a.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage All Reusable Blocks")),Object(o.createElement)(p,{onSelect:t}),Object(o.createElement)(u,null))}))}})},407:function(e,t,n){"use strict";var o=n(27),r=n(106);Object(o.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",function(){return r.MediaUpload});var c=n(18),i=n(21),a=n(0),l=n(2),s=n(9),u=n(3),d=n(4),b=n(6),p=n(1),m=n(8),O=Object(m.compose)(Object(d.withSelect)(function(e,t){if(Object(s.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(l.find)(n,function(e){var n=e.name;return t.name===n});return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}}),Object(d.withDispatch)(function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}})),f=Object(m.createHigherOrderComponent)(function(e){return O(function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(i.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(a.createElement)(e,r);var l=Object(s.getBlockType)(r.name),d=function(e){var t=Object(s.findTransform)(Object(s.getBlockTransforms)("to",e),function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length});if(!t)return null;return Object(s.getBlockType)(t.blocks[0])}(r.name);return[Object(a.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(a.createElement)(e,Object(c.a)({key:"block-edit"},r))),Object(a.createElement)(b.Warning,{key:"multiple-use-warning",actions:[Object(a.createElement)(u.Button,{key:"find-original",isLarge:!0,onClick:o},Object(p.__)("Find original")),Object(a.createElement)(u.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(p.__)("Remove")),d&&Object(a.createElement)(u.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(s.createBlock)(d.name,r.attributes))}},Object(p.__)("Transform into:")," ",d.title)]},Object(a.createElement)("strong",null,l.title,": "),Object(p.__)("This block can only be used once."))]})},"withMultipleValidation");Object(o.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",f)},43:function(e,t){!function(){e.exports=this.wp.viewport}()},45:function(e,t,n){e.exports=function(e,t){var n,o,r,c=0;function i(){var t,i,a=o,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<l;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==o&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=o,a.prev=null,o.prev=a,o=a),a.val}a=a.next}for(t=new Array(l),i=0;i<l;i++)t[i]=arguments[i];return a={args:t,val:e.apply(null,t)},o?(o.prev=a,a.next=o):r=a,c===n?(r=r.prev).next=null:c++,o=a,a.val}return t&&t.maxSize&&(n=t.maxSize),i.clear=function(){o=null,r=null,c=0},i}},46:function(e,t){!function(){e.exports=this.wp.a11y}()},5:function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return o})},52:function(e,t){!function(){e.exports=this.wp.plugins}()},53:function(e,t,n){"use strict";var o=n(23),r=n(0),c=n(1),i=n(3),a=n(4);var l=function(e){var t=e.label,n=e.isChecked,o=e.onChange,c=e.children;return Object(r.createElement)("div",{className:"edit-post-options-modal__option"},Object(r.createElement)(i.CheckboxControl,{label:t,checked:n,onChange:o}),c)};function s(e){var t=e.willEnable,n=Object(r.useState)(!1),a=Object(o.a)(n,2),l=a[0],s=a[1];return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(c.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(r.createElement)(i.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isDefault:!0,isBusy:l,disabled:l,onClick:function(){s(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(c.__)("Enable & Reload"):Object(c.__)("Disable & Reload")))}var u=Object(a.withSelect)(function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}})(function(e){var t=e.label,n=e.areCustomFieldsEnabled,c=Object(r.useState)(n),i=Object(o.a)(c,2),a=i[0],u=i[1];return Object(r.createElement)(l,{label:t,isChecked:a,onChange:u},a!==n&&Object(r.createElement)(s,{willEnable:a}))}),d=n(8),b=Object(d.compose)(Object(a.withSelect)(function(e,t){var n=t.panelName,o=e("core/edit-post"),r=o.isEditorPanelEnabled;return{isRemoved:(0,o.isEditorPanelRemoved)(n),isChecked:r(n)}}),Object(d.ifCondition)(function(e){return!e.isRemoved}),Object(a.withDispatch)(function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}}))(l),p=Object(i.createSlotFill)("EnablePluginDocumentSettingPanelOption"),m=p.Fill,O=p.Slot,f=function(e){var t=e.label,n=e.panelName;return Object(r.createElement)(m,null,Object(r.createElement)(b,{label:t,panelName:n}))};f.Slot=O;var j=f,h=n(43),E=Object(d.compose)(Object(a.withSelect)(function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}}),Object(a.withDispatch)(function(e){var t=e("core/editor"),n=t.enablePublishSidebar,o=t.disablePublishSidebar;return{onChange:function(e){return e?n():o()}}}),Object(h.ifViewportMatches)("medium"))(l),g=n(12),v=n(11),_=n(13),y=n(14),S=n(15),k=function(e){function t(e){var n,o=e.isChecked;return Object(g.a)(this,t),(n=Object(_.a)(this,Object(y.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(S.a)(t,e),Object(v.a)(t,[{key:"componentWillUnmount",value:function(){this.state.isChecked!==this.props.isChecked&&this.props.onChange(this.state.isChecked)}},{key:"render",value:function(){var e=this;return Object(r.createElement)(l,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(r.Component),P=Object(d.compose)(Object(a.withSelect)(function(e){return{isChecked:e("core/nux").areTipsEnabled()}}),Object(a.withDispatch)(function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}}))(k),w=Object(d.compose)(Object(a.withSelect)(function(e,t){var n=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(n)}}),Object(a.withDispatch)(function(e,t){var n=t.feature,o=e("core/edit-post").toggleFeature;return{onChange:function(){o(n)}}}))(l);n.d(t,"a",function(){return u}),n.d(t,"c",function(){return b}),n.d(t,"d",function(){return j}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return P}),n.d(t,"b",function(){return w})},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},63:function(e,t){!function(){e.exports=this.wp.nux}()},65:function(e,t,n){"use strict";var o=n(19);t.a={toggleEditorMode:{raw:o.rawShortcut.secondary("m"),display:o.displayShortcut.secondary("m")},toggleSidebar:{raw:o.rawShortcut.primaryShift(","),display:o.displayShortcut.primaryShift(","),ariaLabel:o.shortcutAriaLabel.primaryShift(",")}}},7:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o=n(10);function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Object(o.a)(e,t,n[t])})}return e}},75:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return c});var o="core/edit-post",r="#wp-admin-bar-view a",c="#wp-admin-bar-preview a"},76:function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var o;if(Array.isArray(n))for(o=0;o<n.length;o++)e(t,n[o]);else for(o in n)t[o]=(t[o]||[]).concat(n[o])}(n,e),(t=function(e){return function(t){return function(o){var r,c,i=n[o.type],a=t(o);if(i)for(r=0;r<i.length;r++)(c=i[r](o,e))&&e.dispatch(c);return a}}}).effects=n,t}},8:function(e,t){!function(){e.exports=this.wp.compose}()},88:function(e,t,n){"use strict";var o=n(0),r=n(16),c=n.n(r),i=n(3),a=n(4),l=n(8),s=Object(i.createSlotFill)("Sidebar"),u=s.Fill,d=s.Slot;function b(e){var t=e.children,n=e.label,r=e.className;return Object(o.createElement)("div",{className:c()("edit-post-sidebar",r),role:"region","aria-label":n,tabIndex:"-1"},t)}b=Object(i.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(b);var p=Object(l.compose)(Object(a.withSelect)(function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}}),Object(l.ifCondition)(function(e){return e.isActive}))(function(e){return Object(o.createElement)(u,null,Object(o.createElement)(i.Animate,{type:"slide-in",options:{origin:"left"}},function(){return Object(o.createElement)(b,e)}))});p.Slot=d,t.a=p},9:function(e,t){!function(){e.exports=this.wp.blocks}()},96:function(e,t){var n,o,r=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{o="function"==typeof clearTimeout?clearTimeout:i}catch(e){o=i}}();var l,s=[],u=!1,d=-1;function b(){u&&l&&(u=!1,l.length?s=l.concat(s):d=-1,s.length&&p())}function p(){if(!u){var e=a(b);u=!0;for(var t=s.length;t;){for(l=s,s=[];++d<t;)l&&l[d].run();d=-1,t=s.length}l=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===i||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function O(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||u||a(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=O,r.addListener=O,r.once=O,r.off=O,r.removeListener=O,r.removeAllListeners=O,r.emit=O,r.prependListener=O,r.prependOnceListener=O,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},97:function(e,t){!function(){e.exports=this.wp.coreData}()}}); |