/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function A(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,A),o.l=!0,o.exports}return A.m=e,A.c=t,A.d=function(e,t,n){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},A.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.t=function(e,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(A.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)A.d(n,o,function(t){return e[t]}.bind(null,o));return n},A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="",A(A.s=423)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},11:function(e,t,A){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var A={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,A)&&(r[A]=e[A])}return r}},193:function(e,t,A){"use strict";var n=A(0),o=A(9),r=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2"}));t.a=r},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,A){"use strict";var n=A(38);var o=A(27),r=A(39);function c(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var A=[],n=!0,o=!1,r=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(A.push(c.value),!t||A.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return A}}(e,t)||Object(o.a)(e,t)||Object(r.a)()}A.d(t,"a",(function(){return c}))},22:function(e,t){!function(){e.exports=this.wp.keycodes}()},25:function(e,t,A){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var A=0,n=new Array(t);A0&&Object(r.createElement)(b.ClipboardButton,{text:A,role:"menuitem",className:"components-menu-item__button",onCopy:function(){o({hasCopied:!0}),t("info",Object(C.__)("All content copied."),{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return o({hasCopied:!1})}},n?Object(C.__)("Copied!"):Object(C.__)("Copy all content"))}));var v=Object(p.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(r.createElement)(b.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(C.__)("Block Manager"))})),y=A(22);var k=Object(p.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(r.createElement)(b.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:y.displayShortcut.access("h")},Object(C.__)("Keyboard shortcuts"))})),w=Object(b.createSlotFill)("ToolsMoreMenuGroup"),P=w.Fill,S=w.Slot;P.Slot=function(e){var t=e.fillProps;return Object(r.createElement)(S,{fillProps:t},(function(e){return!Object(B.isEmpty)(e)&&Object(r.createElement)(b.MenuGroup,{label:Object(C.__)("Tools")},e)}))};var T=P;function D(){var e=Object(p.useDispatch)("core/edit-post").toggleFeature;return Object(r.createElement)(b.MenuItem,{onClick:function(){return e("welcomeGuide")}},Object(C.__)("Welcome Guide"))}Object(O.registerPlugin)("edit-post",{render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(T,null,(function(e){var t=e.onClose;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(v,{onSelect:t}),Object(r.createElement)(b.MenuItem,{role:"menuitem",href:Object(h.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(C.__)("Manage all reusable blocks")),Object(r.createElement)(k,{onSelect:t}),Object(r.createElement)(D,null),Object(r.createElement)(j,null),Object(r.createElement)(b.MenuItem,{role:"menuitem",href:Object(C.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_new"},Object(C.__)("Help")))})))}});var x=A(18),V=A(5);function M(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:H,A=arguments.length>1?arguments[1]:void 0;return e(t,A)}})])({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 A=t.panelName;return R({},e,Object(V.a)({},A,R({},e[A],{enabled:!Object(B.get)(e,[A,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,o=!0===e[n]||Object(B.get)(e,[n,"opened"],!1);return R({},e,Object(V.a)({},n,R({},e[n],{opened:!o})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?R({},e,Object(V.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?R({},e,Object(V.a)({},t.pluginName,!Object(B.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return B.without.apply(void 0,[e].concat(Object(x.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(B.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?R({},e,Object(V.a)({},t.blockName,t.blockStyle)):Object(B.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 L=Object(p.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}}),F=Object(p.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,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:L,preferences:N,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(B.includes)(e,t.panelName))return[].concat(Object(x.a)(e),[t.panelName])}return e}}),U=A(89),J=A.n(U),X=A(20),Z=A(50),G=A(42),Y=A.n(G);function W(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function z(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function K(e){return{type:"OPEN_MODAL",name:e}}function _(){return{type:"CLOSE_MODAL"}}function $(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ee(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function te(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function Ae(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function ne(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function oe(e){return{type:"REMOVE_PANEL",panelName:e}}function re(e){return{type:"TOGGLE_FEATURE",feature:e}}function ce(e){return{type:"SWITCH_MODE",mode:e}}function ie(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ae(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(B.castArray)(e)}}function le(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ee(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function se(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(B.castArray)(e)}}function ue(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function Qe(){return{type:"REQUEST_META_BOX_UPDATES"}}function de(){return{type:"META_BOX_UPDATES_SUCCESS"}}var Be=A(40);function ge(e){return Ie(e,"editorMode","visual")}function be(e){var t=Ce(e);return Object(B.includes)(["edit-post/document","edit-post/block"],t)}function pe(e){return!!Ce(e)&&!be(e)}function Ce(e){return Ie(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function me(e){return e.preferences}function Ie(e,t,A){var n=me(e)[t];return void 0===n?A:n}function fe(e){return e.publishSidebarActive}function Oe(e,t){return Object(B.includes)(e.removedPanels,t)}function he(e,t){var A=Ie(e,"panels");return!Oe(e,t)&&Object(B.get)(A,[t,"enabled"],!0)}function je(e,t){var A=Ie(e,"panels");return!0===Object(B.get)(A,[t])||!0===Object(B.get)(A,[t,"opened"])}function ve(e,t){return e.activeModal===t}function ye(e,t){return Object(B.get)(e.preferences.features,[t],!1)}function ke(e,t){var A=Ie(e,"pinnedPluginItems",{});return Object(B.get)(A,[t],!0)}var we=Object(Be.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Se(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Pe(e,t){return Se(e,t)&&Object(B.some)(Te(e,t),(function(t){var A=t.id;return he(e,"meta-box-".concat(A))}))}function Se(e,t){var A=Te(e,t);return!!A&&0!==A.length}function Te(e,t){return e.metaBoxes.locations[t]}var De=Object(Be.a)((function(e){return Object(B.flatten)(Object(B.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function xe(e){return we(e).length>0}function Ve(e){return e.metaBoxes.isSaving}var Me,Re={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(p.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var A=Object(p.select)("core/editor").isSavingPost(),n=Object(p.select)("core/editor").isAutosavingPost(),o=Object(p.select)("core/edit-post").hasMetaBoxes();Me&&Me(),Me=Object(p.subscribe)((function(){var e=Object(p.select)("core/editor").isSavingPost(),r=Object(p.select)("core/editor").isAutosavingPost(),c=o&&A&&!e&&!n;A=e,n=r,c&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})}))},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var A=t.getState(),n=Object(p.select)("core/editor").getCurrentPost(A),o=[!!n.comment_status&&["comment_status",n.comment_status],!!n.ping_status&&["ping_status",n.ping_status],!!n.sticky&&["sticky",n.sticky],!!n.author&&["post_author",n.author]].filter(Boolean),r=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(x.a)(we(A).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))})))),c=Object(B.reduce)(r,(function(e,t){var A=!0,n=!1,o=void 0;try{for(var r,c=t[Symbol.iterator]();!(A=(r=c.next()).done);A=!0){var i=Object(X.a)(r.value,2),a=i[0],l=i[1];e.append(a,l)}}catch(e){n=!0,o=e}finally{try{A||null==c.return||c.return()}finally{if(n)throw o}}return e}),new window.FormData);o.forEach((function(e){var t=Object(X.a)(e,2),A=t[0],n=t[1];return c.append(A,n)})),Y()({url:window._wpMetaBoxUrl,method:"POST",body:c,parse:!1}).then((function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})}))},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(p.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(C.__)("Visual editor selected"):Object(C.__)("Code editor selected");Object(Z.speak)(t,"assertive")}};var He=function(e){var t,A=[J()(Re)],n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return n.apply(void 0,arguments)}};return t=A.map((function(e){return e(o)})),n=B.flowRight.apply(void 0,Object(x.a)(t))(e.dispatch),e.dispatch=n,e};var qe={SELECT:Object(p.createRegistryControl)((function(e){return function(t){var A,n=t.storeName,o=t.selectorName,r=t.args;return(A=e.select(n))[o].apply(A,Object(x.a)(r))}}))},Ne="core/edit-post",Le=Object(p.registerStore)(Ne,{reducer:F,actions:n,selectors:o,controls:qe,persist:["preferences"]});He(Le);var Fe=A(14),Ue=A(13),Je=A(15),Xe=A(16),Ze=A(17),Ge=A(46),Ye=A.n(Ge),We={"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:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},ze=A(11),Ke=A.n(ze),_e=A(120);var $e=Object(m.compose)(Object(p.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(p.withDispatch)((function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}})))((function(e){var t=e.onExit,A=e.isRichEditingEnabled;return Object(r.createElement)("div",{className:"edit-post-text-editor"},A&&Object(r.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(r.createElement)("h2",null,Object(C.__)("Editing Code")),Object(r.createElement)(b.Button,{onClick:t,icon:_e.a,shortcut:y.displayShortcut.secondary("m")},Object(C.__)("Exit Code Editor")),Object(r.createElement)(i.TextEditorGlobalKeyboardShortcuts,null)),Object(r.createElement)("div",{className:"edit-post-text-editor__body"},Object(r.createElement)(i.PostTitle,null),Object(r.createElement)(i.PostTextEditor,null)))})),et=A(9),tt=Object(r.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(et.Path,{d:"M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z"}));var At=Object(b.withSpokenMessages)((function(e){var t=e.onClick,A=void 0===t?B.noop:t,n=e.small,o=void 0!==n&&n,c=e.speak,i=Object(p.useSelect)((function(e){return{shortcut:e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-sidebar"),areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}}),[]),a=i.shortcut,l=i.areAdvancedSettingsOpened,E=Object(p.useDispatch)("core/edit-post"),s=E.openGeneralSidebar,u=E.closeGeneralSidebar,Q=l?Object(C.__)("Hide Block Settings"):Object(C.__)("Show Block Settings");return Object(r.createElement)(b.MenuItem,{onClick:function(){l?u():(s("edit-post/block"),c(l?Object(C.__)("Block settings closed"):Object(C.__)("Additional settings are now available in the Editor block settings sidebar")),A())},icon:tt,shortcut:a},!o&&Q)}));function nt(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function ot(e){for(var t=1;t0?"mixed":"false",Object(r.createElement)("div",{role:"group","aria-labelledby":u,className:"edit-post-manage-blocks-modal__category"},Object(r.createElement)(b.CheckboxControl,{checked:Q,onChange:i,className:"edit-post-manage-blocks-modal__category-title","aria-checked":E,label:Object(r.createElement)("span",{id:u},A.title)}),Object(r.createElement)(mt,{blockTypes:l,value:s,onItemChange:c}))}));var Ot=Object(m.compose)([Object(m.withState)({search:""}),Object(p.withSelect)((function(e){var t=e("core/blocks"),A=t.getBlockTypes,n=t.getCategories,o=t.hasBlockSupport,r=t.isMatchingSearchTerm,c=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),i=Object(B.isArray)(c)&&c.length;return{blockTypes:A(),categories:n(),hasBlockSupport:o,isMatchingSearchTerm:r,numberOfHiddenBlocks:i}}))])((function(e){var t=e.search,A=e.setState,n=e.blockTypes,o=e.categories,c=e.hasBlockSupport,i=e.isMatchingSearchTerm,a=e.numberOfHiddenBlocks;return n=n.filter((function(e){return c(e,"inserter",!0)&&(!t||i(e,t))&&(!e.parent||Object(B.includes)(e.parent,"core/post-content"))})),Object(r.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(r.createElement)(b.TextControl,{type:"search",label:Object(C.__)("Search for a block"),value:t,onChange:function(e){return A({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!a&&Object(r.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(C.sprintf)(Object(C._n)("%1$d block is disabled.","%1$d blocks are disabled.",a),a)),Object(r.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(C.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===n.length&&Object(r.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(C.__)("No blocks found.")),o.map((function(e){return Object(r.createElement)(ft,{key:e.slug,category:e,blockTypes:Object(B.filter)(n,{category:e.slug})})}))))}));var ht=Object(m.compose)([Object(p.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(p.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,A=e.closeModal;return t?Object(r.createElement)(b.Modal,{className:"edit-post-manage-blocks-modal",title:Object(C.__)("Block Manager"),closeLabel:Object(C.__)("Close"),onRequestClose:A},Object(r.createElement)(Ot,null)):null})),jt=function(e){var t=e.title,A=e.children;return Object(r.createElement)("section",{className:"edit-post-options-modal__section"},Object(r.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),A)};var vt=function(e){var t=e.label,A=e.isChecked,n=e.onChange,o=e.children;return Object(r.createElement)("div",{className:"edit-post-options-modal__option"},Object(r.createElement)(b.CheckboxControl,{label:t,checked:A,onChange:n}),o)};function yt(e){var t=e.willEnable,A=Object(r.useState)(!1),n=Object(X.a)(A,2),o=n[0],c=n[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)(b.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isSecondary:!0,isBusy:o,disabled:o,onClick:function(){c(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(C.__)("Enable & Reload"):Object(C.__)("Disable & Reload")))}var kt=Object(p.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,A=e.areCustomFieldsEnabled,n=Object(r.useState)(A),o=Object(X.a)(n,2),c=o[0],i=o[1];return Object(r.createElement)(vt,{label:t,isChecked:c,onChange:i},c!==A&&Object(r.createElement)(yt,{willEnable:c}))})),wt=Object(m.compose)(Object(p.withSelect)((function(e,t){var A=t.panelName,n=e("core/edit-post"),o=n.isEditorPanelEnabled;return{isRemoved:(0,n.isEditorPanelRemoved)(A),isChecked:o(A)}})),Object(m.ifCondition)((function(e){return!e.isRemoved})),Object(p.withDispatch)((function(e,t){var A=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(A)}}})))(vt),Pt=Object(b.createSlotFill)("EnablePluginDocumentSettingPanelOption"),St=Pt.Fill,Tt=Pt.Slot,Dt=function(e){var t=e.label,A=e.panelName;return Object(r.createElement)(St,null,Object(r.createElement)(wt,{label:t,panelName:A}))};Dt.Slot=Tt;var xt=Dt,Vt=Object(m.compose)(Object(p.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),A=t.enablePublishSidebar,n=t.disablePublishSidebar;return{onChange:function(e){return e?A():n()}}})),Object(l.ifViewportMatches)("medium"))(vt),Mt=Object(m.compose)(Object(p.withSelect)((function(e,t){var A=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(A)}})),Object(p.withDispatch)((function(e,t){var A=t.feature,n=e("core/edit-post").toggleFeature;return{onChange:function(){n(A)}}})))(vt);var Rt=Object(p.withSelect)((function(e){var t=e("core/editor").getEditorSettings,A=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:A()}}))((function(e){var t=e.areCustomFieldsRegistered,A=e.metaBoxes,n=Object(d.a)(e,["areCustomFieldsRegistered","metaBoxes"]),o=Object(B.filter)(A,(function(e){return"postcustom"!==e.id}));return t||0!==o.length?Object(r.createElement)(jt,n,t&&Object(r.createElement)(kt,{label:Object(C.__)("Custom fields")}),Object(B.map)(o,(function(e){var t=e.id,A=e.title;return Object(r.createElement)(wt,{key:t,label:A,panelName:"meta-box-".concat(t)})}))):null}));var Ht=Object(m.compose)(Object(p.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,A=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(B.get)(A,["viewable"],!1)}})),Object(p.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,A=e.isViewable,n=e.closeModal;return t?Object(r.createElement)(b.Modal,{className:"edit-post-options-modal",title:Object(C.__)("Options"),closeLabel:Object(C.__)("Close"),onRequestClose:n},Object(r.createElement)(jt,{title:Object(C.__)("General")},Object(r.createElement)(Vt,{label:Object(C.__)("Pre-publish checks")}),Object(r.createElement)(Mt,{feature:"showInserterHelpPanel",label:Object(C.__)("Inserter help panel")})),Object(r.createElement)(jt,{title:Object(C.__)("Document panels")},Object(r.createElement)(xt.Slot,null),A&&Object(r.createElement)(wt,{label:Object(C.__)("Permalink"),panelName:"post-link"}),Object(r.createElement)(i.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(r.createElement)(wt,{label:Object(B.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(r.createElement)(i.PostFeaturedImageCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Featured image"),panelName:"featured-image"})),Object(r.createElement)(i.PostExcerptCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Excerpt"),panelName:"post-excerpt"})),Object(r.createElement)(i.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(r.createElement)(wt,{label:Object(C.__)("Discussion"),panelName:"discussion-panel"})),Object(r.createElement)(i.PageAttributesCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Page attributes"),panelName:"page-attributes"}))),Object(r.createElement)(Rt,{title:Object(C.__)("Advanced panels")})):null})),qt=function(e){function t(){return Object(Fe.a)(this,t),Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))}return Object(Ze.a)(t,e),Object(Ue.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}(r.Component),Nt=Object(p.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(qt);var Lt=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,A=t.postId,n=t.postStatus,o=t.postType,r=t.isSavingPost,c=this.state.historyId;"trash"!==n||r?A===e.postId&&A===c||"auto-draft"===n||this.setBrowserURL(A):this.setTrashURL(A,o)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(h.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(h.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),t}(r.Component),Ft=Object(p.withSelect)((function(e){var t=e("core/editor"),A=t.getCurrentPost,n=t.isSavingPost,o=A();return{postId:o.id,postStatus:o.status,postType:o.type,isSavingPost:n()}}))(Lt),Ut=Object(r.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(et.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var Jt=function(){var e=Object(p.useSelect)((function(e){var t=e("core/editor").getCurrentPostType,A=e("core/edit-post").isFeatureActive,n=e("core").getPostType;return{isActive:A("fullscreenMode"),postType:n(t())}}),[]),t=e.isActive,A=e.postType;return t&&A?Object(r.createElement)(b.Button,{className:"edit-post-fullscreen-mode-close",icon:Ut,iconSize:36,href:Object(h.addQueryArgs)("edit.php",{post_type:A.slug}),label:Object(B.get)(A,["labels","view_items"],Object(C.__)("Back"))}):null};var Xt=function(){var e=Object(p.useSelect)((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()}}),[]),t=e.hasFixedToolbar,A=e.showInserter,n=e.isTextModeEnabled,o=Object(m.useViewportMatch)("medium"),a=t?Object(C.__)("Document and block tools"):Object(C.__)("Document tools");return Object(r.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":a},Object(r.createElement)(c.Inserter,{disabled:!A,position:"bottom right",showInserterHelpPanel:!0}),Object(r.createElement)(i.EditorHistoryUndo,null),Object(r.createElement)(i.EditorHistoryRedo,null),Object(r.createElement)(i.TableOfContents,{hasOutlineItemsDisabled:n}),Object(r.createElement)(c.BlockNavigationDropdown,{isDisabled:n}),Object(r.createElement)(c.ToolSelector,null),(t||!o)&&Object(r.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(r.createElement)(c.BlockToolbar,{hideDragHandle:!0})))},Zt=A(284);function Gt(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}var Yt=[{value:"visual",label:Object(C.__)("Visual editor")},{value:"text",label:Object(C.__)("Code editor")}];var Wt=function(){var e=Object(p.useSelect)((function(e){return{shortcut:e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),[]),t=e.shortcut,A=e.isRichEditingEnabled,n=e.isCodeEditingEnabled,o=e.mode,c=Object(p.useDispatch)("core/edit-post").switchEditorMode,i=Yt.map((function(e){return e.value!==o?function(e){for(var t=1;t icon."),{InserterIconImage:Object(r.createElement)(mn,{className:"edit-post-welcome-guide__inserter-icon"})}))),Object(r.createElement)(b.GuidePage,{className:"edit-post-welcome-guide__page"},Object(r.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(C.__)("Learn how to use the Block Editor")),Object(r.createElement)(Cn,{className:"edit-post-welcome-guide__image"}),Object(r.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(C.__)("New to the Block Editor? Want to learn more about using it? "),Object(r.createElement)(b.ExternalLink,{href:Object(C.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(C.__)("Here's a detailed guide."))))):null}var fn=function(){var e=Object(m.useViewportMatch)("small","<"),t=Object(p.useDispatch)("core/edit-post"),A=t.closePublishSidebar,n=t.openGeneralSidebar,o=t.togglePublishSidebar,a=Object(p.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),mode:e("core/edit-post").getEditorMode(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),previousShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/previous-region"),nextShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/next-region"),hasBlockSelected:e("core/block-editor").getBlockSelectionStart()}}),[]),l=a.mode,E=a.isRichEditingEnabled,s=a.editorSidebarOpened,u=a.pluginSidebarOpened,Q=a.publishSidebarOpened,d=a.hasActiveMetaboxes,B=a.isSaving,g=a.hasFixedToolbar,I=a.previousShortcut,f=a.nextShortcut,h=a.hasBlockSelected,j=Object(c.__experimentalUsePageTemplatePickerVisible)(),v=s||u||Q,y=Ke()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":v,"has-fixed-toolbar":g,"has-metaboxes":d});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Nt,null),Object(r.createElement)(Ft,null),Object(r.createElement)(i.UnsavedChangesWarning,null),Object(r.createElement)(i.AutosaveMonitor,null),Object(r.createElement)(i.LocalAutosaveMonitor,null),Object(r.createElement)(Et,null),Object(r.createElement)(i.EditorKeyboardShortcutsRegister,null),Object(r.createElement)(b.FocusReturnProvider,null,Object(r.createElement)(c.__experimentalEditorSkeleton,{className:y,header:Object(r.createElement)(uA,null),sidebar:Object(r.createElement)(r.Fragment,null,!v&&Object(r.createElement)("div",{className:"edit-post-layout__toogle-sidebar-panel"},Object(r.createElement)(b.Button,{isSecondary:!0,className:"edit-post-layout__toogle-sidebar-panel-button",onClick:function(){return n(h?"edit-post/block":"edit-post/document")},"aria-expanded":!1},h?Object(C.__)("Open block settings"):Object(C.__)("Open document settings"))),Object(r.createElement)(on,null),Object(r.createElement)(pA.Slot,null)),content:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.EditorNotices,null),("text"===l||!E)&&Object(r.createElement)($e,null),E&&"visual"===l&&Object(r.createElement)(lt,null),Object(r.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(r.createElement)(_A,{location:"normal"}),Object(r.createElement)(_A,{location:"advanced"})),e&&v&&Object(r.createElement)(b.ScrollLock,null)),footer:E&&"visual"===l&&Object(r.createElement)("div",{className:"edit-post-layout__footer"},Object(r.createElement)(c.BlockBreadcrumb,null)),publish:Q?Object(r.createElement)(i.PostPublishPanel,{onClose:A,forceIsDirty:d,forceIsSaving:B,PrePublishExtension:Bn.Slot,PostPublishExtension:En.Slot}):Object(r.createElement)("div",{className:"edit-post-layout__toogle-publish-panel"},Object(r.createElement)(b.Button,{isSecondary:!0,className:"edit-post-layout__toogle-publish-panel-button",onClick:o,"aria-expanded":!1},Object(C.__)("Open publish panel"))),shortcuts:{previous:I,next:f}}),Object(r.createElement)(ht,null),Object(r.createElement)(Ht,null),Object(r.createElement)(Ct,null),Object(r.createElement)(In,null),Object(r.createElement)(b.Popover.Slot,null),Object(r.createElement)(O.PluginArea,null),j&&Object(r.createElement)(c.__experimentalPageTemplatePicker,null)))},On=function(e){var t=e.postId;return function(e){var t=Object(p.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(Ne).isEditorSidebarOpened()}}),[e]),A=t.hasBlockSelection,n=t.isEditorSidebarOpened,o=Object(p.useDispatch)(Ne).openGeneralSidebar;Object(r.useEffect)((function(){n&&o(A?"edit-post/block":"edit-post/document")}),[A,n])}(t),function(e){var t=Object(p.useSelect)((function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),activeGeneralSidebarName:e(Ne).getActiveGeneralSidebarName()}}),[e]),A=t.isSmall,n=t.activeGeneralSidebarName,o=Object(p.useDispatch)(Ne),c=o.openGeneralSidebar,i=o.closeGeneralSidebar,a=Object(r.useRef)(null),l=Object(r.useRef)(null);Object(r.useEffect)((function(){a.current!==A&&(a.current=A,A?(l.current=n,n&&i()):l.current&&!n&&(c(l.current),l.current=null))}),[A,n])}(t),function(e){var t=Object(p.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,A=Object(r.useRef)();Object(r.useEffect)((function(){A.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(r.useEffect)((function(){t&&A.current&&A.current.setAttribute("href",t)}),[t])}(t),null};function hn(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}var jn=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))).getEditorSettings=Ye()(e.getEditorSettings,{maxSize:1}),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"getEditorSettings",value:function(e,t,A,n,o,r,c,i,a){if(e=function(e){for(var t=1;t0){var l=!0===e.allowedBlockTypes?Object(B.map)(r,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=B.without.apply(void 0,[l].concat(Object(x.a)(o)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,A=e.hasFixedToolbar,n=e.focusMode,o=e.post,c=e.postId,a=e.initialEdits,l=e.onError,E=e.hiddenBlockTypes,s=e.blockTypes,u=e.preferredStyleVariations,B=e.__experimentalLocalAutosaveInterval,g=e.showInserterHelpPanel,p=e.updatePreferredStyleVariations,C=Object(d.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!o)return null;var m=this.getEditorSettings(t,A,g,n,E,s,u,B,p);return Object(r.createElement)(r.StrictMode,null,Object(r.createElement)(It.Provider,{value:t},Object(r.createElement)(b.SlotFillProvider,null,Object(r.createElement)(b.DropZoneProvider,null,Object(r.createElement)(i.EditorProvider,Object(Q.a)({settings:m,post:o,initialEdits:a,useSubRegistry:!1},C),Object(r.createElement)(i.ErrorBoundary,{onError:l},Object(r.createElement)(On,{postId:c}),Object(r.createElement)(fn,null),Object(r.createElement)(b.KeyboardShortcuts,{shortcuts:We})),Object(r.createElement)(i.PostLockedModal,null))))))}}]),t}(r.Component),vn=Object(m.compose)([Object(p.withSelect)((function(e,t){var A=t.postId,n=t.postType,o=e("core/edit-post"),r=o.isFeatureActive,c=o.getPreference,i=e("core").getEntityRecord,a=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:r("showInserterHelpPanel"),hasFixedToolbar:r("fixedToolbar"),focusMode:r("focusMode"),post:i("postType",n,A),preferredStyleVariations:c("preferredStyleVariations"),hiddenBlockTypes:c("hiddenBlockTypes"),blockTypes:a(),__experimentalLocalAutosaveInterval:c("localAutosaveInterval")}})),Object(p.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(jn),yn=function(e,t){return!Array.isArray(t)||(A=e,n=t,0===Object(B.difference)(A,n).length);var A,n},kn=function(e){var t=e.allowedBlocks,A=e.icon,n=e.label,o=e.onClick,c=e.small,i=e.role;return Object(r.createElement)(at,null,(function(e){var a=e.selectedBlocks,l=e.onClose;return yn(a,t)?Object(r.createElement)(b.MenuItem,{onClick:Object(m.compose)(o,l),icon:A||"admin-plugins",label:c?n:void 0,role:i},!c&&n):null}))},wn=Object(m.compose)(Object(O.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,A=void 0===t?B.noop:t,n=Object(d.a)(e,["onClick"]);return Object(r.createElement)($t,null,(function(e){return Object(r.createElement)(b.MenuItem,Object(Q.a)({},n,{onClick:Object(m.compose)(A,e.onClose)}))}))}));var Pn=Object(m.compose)(Object(O.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(p.withSelect)((function(e,t){var A=t.sidebarName,n=e("core/edit-post"),o=n.getActiveGeneralSidebarName,r=n.isPluginItemPinned;return{isActive:o()===A,isPinned:r(A)}})),Object(p.withDispatch)((function(e,t){var A=t.isActive,n=t.sidebarName,o=e("core/edit-post"),r=o.closeGeneralSidebar,c=o.openGeneralSidebar,i=o.togglePinnedPluginItem;return{togglePin:function(){i(n)},toggleSidebar:function(){A?r():c(n)}}})))((function(e){var t=e.children,A=e.className,n=e.icon,o=e.isActive,c=e.isPinnable,i=void 0===c||c,a=e.isPinned,l=e.sidebarName,E=e.title,s=e.togglePin,u=e.toggleSidebar;return Object(r.createElement)(r.Fragment,null,i&&Object(r.createElement)(EA,null,a&&Object(r.createElement)(b.Button,{icon:n,label:E,onClick:u,isPressed:o,"aria-expanded":o})),Object(r.createElement)(pA,{name:l},Object(r.createElement)(CA,{closeLabel:Object(C.__)("Close plugin")},Object(r.createElement)("strong",null,E),i&&Object(r.createElement)(b.Button,{icon:a?"star-filled":"star-empty",label:a?Object(C.__)("Unpin from toolbar"):Object(C.__)("Pin to toolbar"),onClick:s,isPressed:a,"aria-expanded":a})),Object(r.createElement)(b.Panel,{className:A},t)))})),Sn=Object(m.compose)(Object(O.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(p.withSelect)((function(e,t){var A=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===A}})),Object(p.withDispatch)((function(e,t){var A=t.isSelected,n=t.sidebarName,o=e("core/edit-post"),r=o.closeGeneralSidebar,c=o.openGeneralSidebar;return{onClick:A?r:function(){return c(n)}}})))((function(e){var t=e.children,A=e.icon,n=e.isSelected,o=e.onClick;return Object(r.createElement)(wn,{icon:n?tA.a:A,isSelected:n,role:"menuitemcheckbox",onClick:o},t)}));function Tn(e,t,A,n,o){Object(r.unmountComponentAtNode)(A);var c=Tn.bind(null,e,t,A,n,o);Object(r.render)(Object(r.createElement)(vn,{settings:n,onError:c,postId:t,postType:e,initialEdits:o,recovery:!0}),A)}function Dn(e,t,A,n,o){var c=document.getElementById(e),i=Tn.bind(null,t,A,c,n,o);Object(E.registerCoreBlocks)(),"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 . 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."),-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(function(e){var t=document.getElementsByClassName("block-editor-editor-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),window.scrollTo(0,0))})),Object(r.render)(Object(r.createElement)(vn,{settings:n,onError:i,postId:A,postType:t,initialEdits:o}),c)}A.d(t,"reinitializeEditor",(function(){return Tn})),A.d(t,"initializeEditor",(function(){return Dn})),A.d(t,"PluginBlockSettingsMenuItem",(function(){return kn})),A.d(t,"PluginDocumentSettingPanel",(function(){return nn})),A.d(t,"PluginMoreMenuItem",(function(){return wn})),A.d(t,"PluginPostPublishPanel",(function(){return En})),A.d(t,"PluginPostStatusInfo",(function(){return DA})),A.d(t,"PluginPrePublishPanel",(function(){return Bn})),A.d(t,"PluginSidebar",(function(){return Pn})),A.d(t,"PluginSidebarMoreMenuItem",(function(){return Sn}))},43:function(e,t,A){"use strict";function n(e,t){if(null==e)return{};var A,n,o={},r=Object.keys(e);for(n=0;n=0||(o[A]=e[A]);return o}A.d(t,"a",(function(){return n}))},46:function(e,t,A){e.exports=function(e,t){var A,n,o=0;function r(){var r,c,i=A,a=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c