/*! 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=413)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10: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}},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.wp.keycodes}()},22:function(e,t,A){"use strict";var n=A(37);var o=A(38);function r(e,t){return Object(n.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(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)()}A.d(t,"a",(function(){return r}))},26:function(e,t){!function(){e.exports=this.wp.url}()},270:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},28:function(e,t){!function(){e.exports=this.wp.editor}()},29:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},32:function(e,t,A){"use strict";function n(e){return(n="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)}A.d(t,"a",(function(){return n}))},33:function(e,t,A){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}A.d(t,"a",(function(){return n}))},36:function(e,t,A){"use strict";var n,o;function r(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function i(e,t,A){var n;if(e.length!==t.length)return!1;for(n=A;n=0||(o[A]=e[A]);return o}A.d(t,"a",(function(){return n}))},413:function(e,t,A){"use strict";A.r(t);var n={};A.r(n),A.d(n,"openGeneralSidebar",(function(){return W})),A.d(n,"closeGeneralSidebar",(function(){return z})),A.d(n,"openModal",(function(){return K})),A.d(n,"closeModal",(function(){return _})),A.d(n,"openPublishSidebar",(function(){return $})),A.d(n,"closePublishSidebar",(function(){return ee})),A.d(n,"togglePublishSidebar",(function(){return te})),A.d(n,"toggleEditorPanelEnabled",(function(){return Ae})),A.d(n,"toggleEditorPanelOpened",(function(){return ne})),A.d(n,"removeEditorPanel",(function(){return oe})),A.d(n,"toggleFeature",(function(){return re})),A.d(n,"switchEditorMode",(function(){return ce})),A.d(n,"togglePinnedPluginItem",(function(){return ie})),A.d(n,"hideBlockTypes",(function(){return ae})),A.d(n,"updatePreferredStyleVariations",(function(){return le})),A.d(n,"__experimentalUpdateLocalAutosaveInterval",(function(){return Ee})),A.d(n,"showBlockTypes",(function(){return se})),A.d(n,"setAvailableMetaBoxesPerLocation",(function(){return ue})),A.d(n,"requestMetaBoxUpdates",(function(){return Qe})),A.d(n,"metaBoxUpdatesSuccess",(function(){return de}));var o={};A.r(o),A.d(o,"getEditorMode",(function(){return ge})),A.d(o,"isEditorSidebarOpened",(function(){return be})),A.d(o,"isPluginSidebarOpened",(function(){return pe})),A.d(o,"getActiveGeneralSidebarName",(function(){return Ce})),A.d(o,"getPreferences",(function(){return me})),A.d(o,"getPreference",(function(){return Ie})),A.d(o,"isPublishSidebarOpened",(function(){return Oe})),A.d(o,"isEditorPanelRemoved",(function(){return fe})),A.d(o,"isEditorPanelEnabled",(function(){return he})),A.d(o,"isEditorPanelOpened",(function(){return je})),A.d(o,"isModalActive",(function(){return ve})),A.d(o,"isFeatureActive",(function(){return ke})),A.d(o,"isPluginItemPinned",(function(){return ye})),A.d(o,"getActiveMetaBoxLocations",(function(){return Pe})),A.d(o,"isMetaBoxLocationVisible",(function(){return we})),A.d(o,"isMetaBoxLocationActive",(function(){return Se})),A.d(o,"getMetaBoxesPerLocation",(function(){return Te})),A.d(o,"getAllMetaBoxes",(function(){return De})),A.d(o,"hasMetaBoxes",(function(){return xe})),A.d(o,"isSavingMetaBoxes",(function(){return Ve}));var r=A(0),c=(A(73),A(6)),i=A(28),a=A(46),l=A(54),E=(A(176),A(270)),s=A(29),u=A(124);Object(s.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return u.MediaUpload}));var Q=A(11),d=A(19),B=A(2),g=A(9),b=A(3),p=A(4),C=A(1),m=A(8),I=Object(m.compose)(Object(p.withSelect)((function(e,t){if(Object(g.hasBlockSupport)(t.name,"multiple",!0))return{};var A=e("core/block-editor").getBlocks(),n=Object(B.find)(A,(function(e){var A=e.name;return t.name===A}));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),Object(p.withDispatch)((function(e,t){var A=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(A)}}}))),O=Object(m.createHigherOrderComponent)((function(e){return I((function(t){var A=t.originalBlockClientId,n=t.selectFirst,o=Object(d.a)(t,["originalBlockClientId","selectFirst"]);if(!A)return Object(r.createElement)(e,o);var i=Object(g.getBlockType)(o.name),a=function(e){var t=Object(g.findTransform)(Object(g.getBlockTransforms)("to",e),(function(e){var t=e.type,A=e.blocks;return"block"===t&&1===A.length}));if(!t)return null;return Object(g.getBlockType)(t.blocks[0])}(o.name);return[Object(r.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(r.createElement)(e,Object(Q.a)({key:"block-edit"},o))),Object(r.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(r.createElement)(b.Button,{key:"find-original",isSecondary:!0,onClick:n},Object(C.__)("Find original")),Object(r.createElement)(b.Button,{key:"remove",isSecondary:!0,onClick:function(){return o.onReplace([])}},Object(C.__)("Remove")),a&&Object(r.createElement)(b.Button,{key:"transform",isSecondary:!0,onClick:function(){return o.onReplace(Object(g.createBlock)(a.name,o.attributes))}},Object(C.__)("Transform into:")," ",a.title)]},Object(r.createElement)("strong",null,i.title,": "),Object(C.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(s.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",O);var f=A(53),h=A(26);var j=Object(m.compose)(Object(p.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(p.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(m.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,A=e.editedPostContent,n=e.hasCopied,o=e.setState;return A.length>0&&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"))})),k=A(20);var y=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:k.displayShortcut.access("h")},Object(C.__)("Keyboard shortcuts"))})),P=Object(b.createSlotFill)("ToolsMoreMenuGroup"),w=P.Fill,S=P.Slot;w.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=w;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(f.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)(y,{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(17),V=A(5);function R(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 M(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 M({},e,Object(V.a)({},A,M({},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 M({},e,Object(V.a)({},n,M({},e[n],{opened:!o})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?M({},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?M({},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?M({},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(88),J=A.n(U),X=A(22),Z=A(48),Y=A(40),G=A.n(Y);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(36);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 Oe(e){return e.publishSidebarActive}function fe(e,t){return Object(B.includes)(e.removedPanels,t)}function he(e,t){var A=Ie(e,"panels");return!fe(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 ke(e,t){return Object(B.get)(e.preferences.features,[t],!1)}function ye(e,t){var A=Ie(e,"pinnedPluginItems",{});return Object(B.get)(A,[t],!0)}var Pe=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 we(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 Pe(e).length>0}function Ve(e){return e.metaBoxes.isSaving}var Re,Me={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();Re&&Re(),Re=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)(Pe(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)})),G()({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()(Me)],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(13),Ue=A(12),Je=A(14),Xe=A(15),Ze=A(16),Ye=A(44),Ge=A.n(Ye),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(10),Ke=A.n(ze);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:"no-alt",shortcut:k.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)))}));var $e=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:"admin-generic",shortcut:a},!o&&Q)}));function et(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 tt(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)(gt,{blockTypes:l,value:s,onItemChange:c}))}));var Ct=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)(pt,{key:e.slug,category:e,blockTypes:Object(B.filter)(n,{category:e.slug})})}))))}));var mt=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)(Ct,null)):null})),It=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 Ot=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 ft(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 ht=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)(Ot,{label:t,isChecked:c,onChange:i},c!==A&&Object(r.createElement)(ft,{willEnable:c}))})),jt=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)}}})))(Ot),vt=Object(b.createSlotFill)("EnablePluginDocumentSettingPanelOption"),kt=vt.Fill,yt=vt.Slot,Pt=function(e){var t=e.label,A=e.panelName;return Object(r.createElement)(kt,null,Object(r.createElement)(jt,{label:t,panelName:A}))};Pt.Slot=yt;var wt=Pt,St=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"))(Ot),Tt=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)}}})))(Ot);var Dt=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)(It,n,t&&Object(r.createElement)(ht,{label:Object(C.__)("Custom fields")}),Object(B.map)(o,(function(e){var t=e.id,A=e.title;return Object(r.createElement)(jt,{key:t,label:A,panelName:"meta-box-".concat(t)})}))):null}));var xt=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)(It,{title:Object(C.__)("General")},Object(r.createElement)(St,{label:Object(C.__)("Pre-publish checks")}),Object(r.createElement)(Tt,{feature:"showInserterHelpPanel",label:Object(C.__)("Inserter help panel")})),Object(r.createElement)(It,{title:Object(C.__)("Document panels")},Object(r.createElement)(wt.Slot,null),A&&Object(r.createElement)(jt,{label:Object(C.__)("Permalink"),panelName:"post-link"}),Object(r.createElement)(i.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(r.createElement)(jt,{label:Object(B.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(r.createElement)(i.PostFeaturedImageCheck,null,Object(r.createElement)(jt,{label:Object(C.__)("Featured image"),panelName:"featured-image"})),Object(r.createElement)(i.PostExcerptCheck,null,Object(r.createElement)(jt,{label:Object(C.__)("Excerpt"),panelName:"post-excerpt"})),Object(r.createElement)(i.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(r.createElement)(jt,{label:Object(C.__)("Discussion"),panelName:"discussion-panel"})),Object(r.createElement)(i.PageAttributesCheck,null,Object(r.createElement)(jt,{label:Object(C.__)("Page attributes"),panelName:"page-attributes"}))),Object(r.createElement)(Dt,{title:Object(C.__)("Advanced panels")})):null}));var Vt=Object(b.navigateRegions)((function(e){var t=e.footer,A=e.header,n=e.sidebar,o=e.content,c=e.publish,i=e.className;return Object(r.createElement)("div",{className:Ke()(i,"edit-post-editor-regions")},!!A&&Object(r.createElement)("div",{className:"edit-post-editor-regions__header",role:"region","aria-label":Object(C.__)("Editor top bar"),tabIndex:"-1"},A),Object(r.createElement)("div",{className:"edit-post-editor-regions__body"},Object(r.createElement)("div",{className:"edit-post-editor-regions__content",role:"region","aria-label":Object(C.__)("Editor content"),tabIndex:"-1"},o),!!n&&Object(r.createElement)("div",{className:"edit-post-editor-regions__sidebar",role:"region","aria-label":Object(C.__)("Editor settings"),tabIndex:"-1"},n),!!c&&Object(r.createElement)("div",{className:"edit-post-editor-regions__publish",role:"region","aria-label":Object(C.__)("Editor publish"),tabIndex:"-1"},c)),!!t&&Object(r.createElement)("div",{className:"edit-post-editor-regions__footer",role:"region","aria-label":Object(C.__)("Editor footer"),tabIndex:"-1"},t))})),Rt=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),Mt=Object(p.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(Rt);var Ht=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),qt=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()}}))(Ht);var Nt=Object(p.withSelect)((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())}}))((function(e){var t=e.isActive,A=e.postType;return t&&A?Object(r.createElement)(b.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(r.createElement)(b.Button,{icon:"arrow-left-alt2",href:Object(h.addQueryArgs)("edit.php",{post_type:A.slug}),label:Object(B.get)(A,["labels","view_items"],Object(C.__)("Back"))})):null}));var Lt=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,null)))};function Ft(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 Ut=[{value:"visual",label:Object(C.__)("Visual editor")},{value:"text",label:Object(C.__)("Code editor")}];var Jt=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=Ut.map((function(e){return e.value!==o?function(e){for(var t=1;t icon."),{InserterIconImage:Object(r.createElement)(Bn,{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)(dn,{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 bn=function(){var e=Object(m.useViewportMatch)("small","<"),t=Object(p.useDispatch)("core/edit-post"),A=t.closePublishSidebar,n=t.togglePublishSidebar,o=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")}}),[]),a=o.mode,l=o.isRichEditingEnabled,E=o.editorSidebarOpened,s=o.pluginSidebarOpened,u=o.publishSidebarOpened,Q=o.hasActiveMetaboxes,d=o.isSaving,B=o.hasFixedToolbar,g=o.previousShortcut,I=o.nextShortcut,O=Object(c.__experimentalUsePageTemplatePickerVisible)(),h=E||s||u,j=Ke()("edit-post-layout","is-mode-"+a,{"is-sidebar-opened":h,"has-fixed-toolbar":B,"has-metaboxes":Q});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Mt,null),Object(r.createElement)(qt,null),Object(r.createElement)(i.UnsavedChangesWarning,null),Object(r.createElement)(i.AutosaveMonitor,null),Object(r.createElement)(i.LocalAutosaveMonitor,null),Object(r.createElement)(it,null),Object(r.createElement)(i.EditorKeyboardShortcutsRegister,null),Object(r.createElement)(b.FocusReturnProvider,null,Object(r.createElement)(Vt,{className:j,header:Object(r.createElement)(iA,null),sidebar:!u&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)($A,null),Object(r.createElement)(QA.Slot,null)),content:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.EditorNotices,null),("text"===a||!l)&&Object(r.createElement)(_e,null),l&&"visual"===a&&Object(r.createElement)(ct,null),Object(r.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(r.createElement)(YA,{location:"normal"}),Object(r.createElement)(YA,{location:"advanced"})),e&&h&&Object(r.createElement)(b.ScrollLock,null)),footer:l&&"visual"===a&&Object(r.createElement)("div",{className:"edit-post-layout__footer"},Object(r.createElement)(c.BlockBreadcrumb,null)),publish:u?Object(r.createElement)(i.PostPublishPanel,{onClose:A,forceIsDirty:Q,forceIsSaving:d,PrePublishExtension:En.Slot,PostPublishExtension:on.Slot}):Object(r.createElement)("div",{className:"edit-post-toggle-publish-panel"},Object(r.createElement)(b.Button,{isSecondary:!0,className:"edit-post-toggle-publish-panel__button",onClick:n,"aria-expanded":!1},Object(C.__)("Open publish panel"))),shortcuts:{previous:g,next:I}}),Object(r.createElement)(mt,null),Object(r.createElement)(xt,null),Object(r.createElement)(Bt,null),Object(r.createElement)(gn,null),Object(r.createElement)(b.Popover.Slot,null),Object(r.createElement)(f.PluginArea,null),O&&Object(r.createElement)(c.__experimentalPageTemplatePicker,null)))},pn=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 Cn(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 mn=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=Ge()(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)(bt.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)(pn,{postId:c}),Object(r.createElement)(bn,null),Object(r.createElement)(b.KeyboardShortcuts,{shortcuts:We})),Object(r.createElement)(i.PostLockedModal,null))))))}}]),t}(r.Component),In=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}}))])(mn),On=function(e,t){return!Array.isArray(t)||(A=e,n=t,0===Object(B.difference)(A,n).length);var A,n},fn=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)(rt,null,(function(e){var a=e.selectedBlocks,l=e.onClose;return On(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}))},hn=Object(m.compose)(Object(f.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)(Gt,null,(function(e){return Object(r.createElement)(b.MenuItem,Object(Q.a)({},n,{onClick:Object(m.compose)(A,e.onClose)}))}))}));var jn=Object(m.compose)(Object(f.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)(rA,null,a&&Object(r.createElement)(b.Button,{icon:n,label:E,onClick:u,isPressed:o,"aria-expanded":o})),Object(r.createElement)(QA,{name:l},Object(r.createElement)(dA,{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)))})),vn=Object(m.compose)(Object(f.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)(hn,{icon:n?zt.a:A,isSelected:n,role:"menuitemcheckbox",onClick:o},t)}));function kn(e,t,A,n,o){Object(r.unmountComponentAtNode)(A);var c=kn.bind(null,e,t,A,n,o);Object(r.render)(Object(r.createElement)(In,{settings:n,onError:c,postId:t,postType:e,initialEdits:o,recovery:!0}),A)}function yn(e,t,A,n,o){var c=document.getElementById(e),i=kn.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("edit-post-editor-regions__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),window.scrollTo(0,0))})),Object(r.render)(Object(r.createElement)(In,{settings:n,onError:i,postId:A,postType:t,initialEdits:o}),c)}A.d(t,"reinitializeEditor",(function(){return kn})),A.d(t,"initializeEditor",(function(){return yn})),A.d(t,"PluginBlockSettingsMenuItem",(function(){return fn})),A.d(t,"PluginDocumentSettingPanel",(function(){return _A})),A.d(t,"PluginMoreMenuItem",(function(){return hn})),A.d(t,"PluginPostPublishPanel",(function(){return on})),A.d(t,"PluginPostStatusInfo",(function(){return yA})),A.d(t,"PluginPrePublishPanel",(function(){return En})),A.d(t,"PluginSidebar",(function(){return jn})),A.d(t,"PluginSidebarMoreMenuItem",(function(){return vn}))},44:function(e,t,A){e.exports=function(e,t){var A,n,o,r=0;function c(){var t,c,i=n,a=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c