File Editor
Directories:
.. (Back)
vendor
Files:
a11y.js
a11y.min.js
annotations.js
annotations.min.js
api-fetch.js
api-fetch.min.js
autop.js
autop.min.js
blob.js
blob.min.js
block-editor.js
block-editor.min.js
block-library.js
block-library.min.js
block-serialization-default-parser.js
block-serialization-default-parser.min.js
blocks.js
blocks.min.js
components.js
components.min.js
compose.js
compose.min.js
core-data.js
core-data.min.js
data-controls.js
data-controls.min.js
data.js
data.min.js
date.js
date.min.js
deprecated.js
deprecated.min.js
dom-ready.js
dom-ready.min.js
dom.js
dom.min.js
edit-post.js
edit-post.min.js
editor.js
editor.min.js
element.js
element.min.js
escape-html.js
escape-html.min.js
format-library.js
format-library.min.js
hooks.js
hooks.min.js
html-entities.js
html-entities.min.js
i18n.js
i18n.min.js
is-shallow-equal.js
is-shallow-equal.min.js
keycodes.js
keycodes.min.js
list-reusable-blocks.js
list-reusable-blocks.min.js
media-utils.js
media-utils.min.js
notices.js
notices.min.js
nux.js
nux.min.js
plugins.js
plugins.min.js
priority-queue.js
priority-queue.min.js
redux-routine.js
redux-routine.min.js
rich-text.js
rich-text.min.js
server-side-render.js
server-side-render.min.js
shortcode.js
shortcode.min.js
token-list.js
token-list.min.js
url.js
url.min.js
viewport.js
viewport.min.js
wordcount.js
wordcount.min.js
Create New File
Create
Edit File: edit-post.min.js
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="dSQ2")}({"1OyB":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}))},"1ZqX":function(e,t){!function(){e.exports=this.wp.data}()},"25BE":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}))},"4eJC":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}},"6aBm":function(e,t){!function(){e.exports=this.wp.mediaUtils}()},DSFK:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return o}))},Ff2n: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}))},GRId:function(e,t){!function(){e.exports=this.wp.element}()},HSyU:function(e,t){!function(){e.exports=this.wp.blocks}()},JX7q: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}))},Ji7U: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}))},K9lf:function(e,t){!function(){e.exports=this.wp.compose}()},KEfo:function(e,t){!function(){e.exports=this.wp.viewport}()},KQm4:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("25BE");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")}()}},Mmq9:function(e,t){!function(){e.exports=this.wp.url}()},ODXe:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("DSFK");var r=n("PYwp");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)()}},PYwp: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}))},QyPg:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},RxS6:function(e,t){!function(){e.exports=this.wp.keycodes}()},TSYQ:function(e,t,n){var o; /*! Copyright (c) 2018 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)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===c)if(o.toString===Object.prototype.toString)for(var a in o)n.call(o,a)&&o[a]&&e.push(a);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},TvNi:function(e,t){!function(){e.exports=this.wp.plugins}()},U8pU: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}))},YLtl:function(e,t){!function(){e.exports=this.lodash}()},ZU7w:function(e,t){!function(){e.exports=this.wp.nux}()},axFQ:function(e,t){!function(){e.exports=this.wp.blockEditor}()},dSQ2:function(e,t,n){"use strict";n.r(t),n.d(t,"reinitializeEditor",(function(){return vo})),n.d(t,"initializeEditor",(function(){return _o})),n.d(t,"PluginBlockSettingsMenuItem",(function(){return jo})),n.d(t,"PluginDocumentSettingPanel",(function(){return Jn})),n.d(t,"PluginMoreMenuItem",(function(){return ho})),n.d(t,"PluginPostPublishPanel",(function(){return oo})),n.d(t,"PluginPostStatusInfo",(function(){return Bn})),n.d(t,"PluginPrePublishPanel",(function(){return lo})),n.d(t,"PluginSidebar",(function(){return go})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return Eo}));var o={};n.r(o),n.d(o,"openGeneralSidebar",(function(){return K})),n.d(o,"closeGeneralSidebar",(function(){return W})),n.d(o,"openModal",(function(){return X})),n.d(o,"closeModal",(function(){return Y})),n.d(o,"openPublishSidebar",(function(){return z})),n.d(o,"closePublishSidebar",(function(){return J})),n.d(o,"togglePublishSidebar",(function(){return Z})),n.d(o,"toggleEditorPanelEnabled",(function(){return $})),n.d(o,"toggleEditorPanelOpened",(function(){return ee})),n.d(o,"removeEditorPanel",(function(){return te})),n.d(o,"toggleFeature",(function(){return ne})),n.d(o,"switchEditorMode",(function(){return oe})),n.d(o,"togglePinnedPluginItem",(function(){return re})),n.d(o,"hideBlockTypes",(function(){return ce})),n.d(o,"updatePreferredStyleVariations",(function(){return ie})),n.d(o,"__experimentalUpdateLocalAutosaveInterval",(function(){return ae})),n.d(o,"showBlockTypes",(function(){return le})),n.d(o,"setAvailableMetaBoxesPerLocation",(function(){return se})),n.d(o,"requestMetaBoxUpdates",(function(){return ue})),n.d(o,"metaBoxUpdatesSuccess",(function(){return de}));var r={};n.r(r),n.d(r,"getEditorMode",(function(){return pe})),n.d(r,"isEditorSidebarOpened",(function(){return me})),n.d(r,"isPluginSidebarOpened",(function(){return Oe})),n.d(r,"getActiveGeneralSidebarName",(function(){return fe})),n.d(r,"getPreferences",(function(){return je})),n.d(r,"getPreference",(function(){return he})),n.d(r,"isPublishSidebarOpened",(function(){return ge})),n.d(r,"isEditorPanelRemoved",(function(){return Ee})),n.d(r,"isEditorPanelEnabled",(function(){return ve})),n.d(r,"isEditorPanelOpened",(function(){return _e})),n.d(r,"isModalActive",(function(){return Se})),n.d(r,"isFeatureActive",(function(){return ye})),n.d(r,"isPluginItemPinned",(function(){return ke})),n.d(r,"getActiveMetaBoxLocations",(function(){return Pe})),n.d(r,"isMetaBoxLocationVisible",(function(){return we})),n.d(r,"isMetaBoxLocationActive",(function(){return Ce})),n.d(r,"getMetaBoxesPerLocation",(function(){return Te})),n.d(r,"getAllMetaBoxes",(function(){return xe})),n.d(r,"hasMetaBoxes",(function(){return Ne})),n.d(r,"isSavingMetaBoxes",(function(){return Me}));var c=n("GRId"),i=(n("jZUy"),n("axFQ")),a=n("jSdM"),l=n("ZU7w"),s=n("KEfo"),u=(n("onLe"),n("QyPg")),d=n("g56x"),b=n("6aBm");Object(d.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return b.MediaUpload}));var p=n("wx14"),m=n("Ff2n"),O=n("YLtl"),f=n("HSyU"),j=n("tI+e"),h=n("1ZqX"),g=n("l3Sj"),E=n("K9lf"),v=Object(E.compose)(Object(h.withSelect)((function(e,t){if(Object(f.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(O.find)(n,(function(e){var n=e.name;return t.name===n}));return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}})),Object(h.withDispatch)((function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}}))),_=Object(E.createHigherOrderComponent)((function(e){return v((function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(m.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(c.createElement)(e,r);var a=Object(f.getBlockType)(r.name),l=function(e){var t=Object(f.findTransform)(Object(f.getBlockTransforms)("to",e),(function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length}));if(!t)return null;return Object(f.getBlockType)(t.blocks[0])}(r.name);return[Object(c.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(c.createElement)(e,Object(p.a)({key:"block-edit"},r))),Object(c.createElement)(i.Warning,{key:"multiple-use-warning",actions:[Object(c.createElement)(j.Button,{key:"find-original",isLarge:!0,onClick:o},Object(g.__)("Find original")),Object(c.createElement)(j.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(g.__)("Remove")),l&&Object(c.createElement)(j.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(f.createBlock)(l.name,r.attributes))}},Object(g.__)("Transform into:")," ",l.title)]},Object(c.createElement)("strong",null,a.title,": "),Object(g.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(d.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",_);var S=n("TvNi"),y=n("Mmq9");var k=Object(E.compose)(Object(h.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(h.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(E.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,n=e.editedPostContent,o=e.hasCopied,r=e.setState;return n.length>0&&Object(c.createElement)(j.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){r({hasCopied:!0}),t("info",Object(g.__)("All content copied."),{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return r({hasCopied:!1})}},o?Object(g.__)("Copied!"):Object(g.__)("Copy All Content"))}));var P=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(g.__)("Block Manager"))})),w=n("RxS6");var C=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:w.displayShortcut.access("h")},Object(g.__)("Keyboard Shortcuts"))})),T=Object(j.createSlotFill)("ToolsMoreMenuGroup"),x=T.Fill,N=T.Slot;x.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(N,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(g.__)("Tools")},e)}))};var M=x;Object(S.registerPlugin)("edit-post",{render:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(M,null,(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(P,{onSelect:t}),Object(c.createElement)(j.MenuItem,{role:"menuitem",href:Object(y.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(g.__)("Manage All Reusable Blocks")),Object(c.createElement)(C,{onSelect:t}),Object(c.createElement)(k,null))})))}});var B,A=n("KQm4"),I=n("rePB"),D=n("vpQ4"),L=Object(O.flow)([h.combineReducers,(B={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]:B,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(D.a)({},e,Object(I.a)({},n,Object(D.a)({},e[n],{enabled:!Object(O.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(O.get)(e,[o,"opened"],!1);return Object(D.a)({},e,Object(I.a)({},o,Object(D.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(D.a)({},e,Object(I.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(D.a)({},e,Object(I.a)({},t.pluginName,!Object(O.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return O.without.apply(void 0,[e].concat(Object(A.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(O.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(D.a)({},e,Object(I.a)({},t.blockName,t.blockStyle)):Object(O.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 F=Object(h.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.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}}),R=Object(h.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit-post/document",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:F,preferences:L,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.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(O.includes)(e,t.panelName))return[].concat(Object(A.a)(e),[t.panelName])}return e}}),G=n("gQxa"),U=n.n(G),V=n("ODXe"),H=n("gdqT"),Q=n("ywyh"),q=n.n(Q);function K(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function W(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function X(e){return{type:"OPEN_MODAL",name:e}}function Y(){return{type:"CLOSE_MODAL"}}function z(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function J(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Z(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function $(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function ee(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function te(e){return{type:"REMOVE_PANEL",panelName:e}}function ne(e){return{type:"TOGGLE_FEATURE",feature:e}}function oe(e){return{type:"SWITCH_MODE",mode:e}}function re(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ce(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function ie(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function ae(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function le(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(O.castArray)(e)}}function se(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function ue(){return{type:"REQUEST_META_BOX_UPDATES"}}function de(){return{type:"META_BOX_UPDATES_SUCCESS"}}var be=n("pPDe");function pe(e){return he(e,"editorMode","visual")}function me(e){var t=fe(e);return Object(O.includes)(["edit-post/document","edit-post/block"],t)}function Oe(e){return!!fe(e)&&!me(e)}function fe(e){return he(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function je(e){return e.preferences}function he(e,t,n){var o=je(e)[t];return void 0===o?n:o}function ge(e){return e.publishSidebarActive}function Ee(e,t){return Object(O.includes)(e.removedPanels,t)}function ve(e,t){var n=he(e,"panels");return!Ee(e,t)&&Object(O.get)(n,[t,"enabled"],!0)}function _e(e,t){var n=he(e,"panels");return!0===Object(O.get)(n,[t])||!0===Object(O.get)(n,[t,"opened"])}function Se(e,t){return e.activeModal===t}function ye(e,t){return Object(O.get)(e.preferences.features,[t],!1)}function ke(e,t){var n=he(e,"pinnedPluginItems",{});return Object(O.get)(n,[t],!0)}var Pe=Object(be.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Ce(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function we(e,t){return Ce(e,t)&&Object(O.some)(Te(e,t),(function(t){var n=t.id;return ve(e,"meta-box-".concat(n))}))}function Ce(e,t){var n=Te(e,t);return!!n&&0!==n.length}function Te(e,t){return e.metaBoxes.locations[t]}var xe=Object(be.a)((function(e){return Object(O.flatten)(Object(O.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Ne(e){return Pe(e).length>0}function Me(e){return e.metaBoxes.isSaving}var Be,Ae={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(h.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var n=Object(h.select)("core/editor").isSavingPost(),o=Object(h.select)("core/editor").isAutosavingPost(),r=Object(h.select)("core/edit-post").hasMetaBoxes();Be&&Be(),Be=Object(h.subscribe)((function(){var e=Object(h.select)("core/editor").isSavingPost(),c=Object(h.select)("core/editor").isAutosavingPost(),i=r&&n&&!e&&!o;n=e,o=c,i&&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(h.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)(Pe(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))})))),i=Object(O.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(V.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(V.a)(e,2),n=t[0],o=t[1];return i.append(n,o)})),q()({url:window._wpMetaBoxUrl,method:"POST",body:i,parse:!1}).then((function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})}))},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(h.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(g.__)("Visual editor selected"):Object(g.__)("Code editor selected");Object(H.speak)(t,"assertive")}};var Ie=function(e){var t,n=[U()(Ae)],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=O.flowRight.apply(void 0,Object(A.a)(t))(e.dispatch),e.dispatch=o,e};var De={SELECT:Object(h.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))}}))},Le="core/edit-post",Fe=Object(h.registerStore)(Le,{reducer:R,actions:o,selectors:r,controls:De,persist:["preferences"]});Ie(Fe);var Re=n("1OyB"),Ge=n("vuIU"),Ue=n("md7G"),Ve=n("foSv"),He=n("Ji7U"),Qe=n("4eJC"),qe=n.n(Qe),Ke={"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:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},We=n("TSYQ"),Xe=n.n(We);var Ye=function(e){function t(){var e;return Object(Re.a)(this,t),(e=Object(Ue.a)(this,Object(Ve.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,c=t.isSavingPost,i=this.state.historyId;"trash"!==o||c?n===e.postId&&n===i||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,r)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(y.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(y.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),t}(c.Component),ze=Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,o=t.isSavingPost,r=n();return{postId:r.id,postStatus:r.status,postType:r.type,isSavingPost:o()}}))(Ye);var Je=Object(h.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(c.createElement)(j.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(c.createElement)(j.IconButton,{icon:"arrow-left-alt2",href:Object(y.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(O.get)(n,["labels","view_items"],Object(g.__)("Back"))})):null}));var Ze=Object(E.compose)([Object(h.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(s.withViewportMatch)({isLargeViewport:"medium"})])((function(e){var t=e.hasFixedToolbar,n=e.isLargeViewport,o=e.showInserter,r=e.isTextModeEnabled,s=t?Object(g.__)("Document and block tools"):Object(g.__)("Document tools");return Object(c.createElement)(i.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":s},Object(c.createElement)("div",null,Object(c.createElement)(i.Inserter,{disabled:!o,position:"bottom right",showInserterHelpPanel:!0}),Object(c.createElement)(l.DotTip,{tipId:"core/editor.inserter"},Object(g.__)("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(c.createElement)(a.EditorHistoryUndo,null),Object(c.createElement)(a.EditorHistoryRedo,null),Object(c.createElement)(a.TableOfContents,{hasOutlineItemsDisabled:r}),Object(c.createElement)(i.BlockNavigationDropdown,{isDisabled:r}),t&&n&&Object(c.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(c.createElement)(i.BlockToolbar,null)))})),$e={toggleEditorMode:{raw:w.rawShortcut.secondary("m"),display:w.displayShortcut.secondary("m")},toggleSidebar:{raw:w.rawShortcut.primaryShift(","),display:w.displayShortcut.primaryShift(","),ariaLabel:w.shortcutAriaLabel.primaryShift(",")}},et=[{value:"visual",label:Object(g.__)("Visual Editor")},{value:"text",label:Object(g.__)("Code Editor")}];var tt=Object(E.compose)([Object(h.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(h.withDispatch)((function(e){return{onSwitch:function(t){e("core/edit-post").switchEditorMode(t)}}}))])((function(e){var t=e.onSwitch,n=e.mode,o=et.map((function(e){return e.value!==n?Object(D.a)({},e,{shortcut:$e.toggleEditorMode.display}):e}));return Object(c.createElement)(j.MenuGroup,{label:Object(g.__)("Editor")},Object(c.createElement)(j.MenuItemsChoice,{choices:o,value:n,onSelect:t}))})),nt=Object(j.createSlotFill)("PluginsMoreMenuGroup"),ot=nt.Fill,rt=nt.Slot;ot.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(rt,{fillProps:t},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(j.MenuGroup,{label:Object(g.__)("Plugins")},e)}))};var ct=ot;var it=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(j.MenuItem,{onClick:function(){t("edit-post/options")}},Object(g.__)("Options"))}));var at=Object(E.compose)([Object(h.withSelect)((function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}})),Object(h.withDispatch)((function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature)}}})),j.withSpokenMessages])((function(e){var t=e.onToggle,n=e.isActive,o=e.label,r=e.info,i=e.messageActivated,a=e.messageDeactivated,l=e.speak;return Object(c.createElement)(j.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(O.flow)(t,(function(){l(n?a||Object(g.__)("Feature deactivated"):i||Object(g.__)("Feature activated"))})),role:"menuitemcheckbox",info:r},o)}));var lt=Object(s.ifViewportMatches)("medium")((function(){return Object(c.createElement)(j.MenuGroup,{label:Object(g._x)("View","noun")},Object(c.createElement)(at,{feature:"fixedToolbar",label:Object(g.__)("Top Toolbar"),info:Object(g.__)("Access all block and document tools in a single place"),messageActivated:Object(g.__)("Top toolbar activated"),messageDeactivated:Object(g.__)("Top toolbar deactivated")}),Object(c.createElement)(at,{feature:"focusMode",label:Object(g.__)("Spotlight Mode"),info:Object(g.__)("Focus on one block at a time"),messageActivated:Object(g.__)("Spotlight mode activated"),messageDeactivated:Object(g.__)("Spotlight mode deactivated")}),Object(c.createElement)(at,{feature:"fullscreenMode",label:Object(g.__)("Fullscreen Mode"),info:Object(g.__)("Work without distraction"),messageActivated:Object(g.__)("Fullscreen mode activated"),messageDeactivated:Object(g.__)("Fullscreen mode deactivated")}))})),st={className:"edit-post-more-menu__content",position:"bottom left"},ut={labelPosition:"bottom"},dt=function(){return Object(c.createElement)(j.DropdownMenu,{className:"edit-post-more-menu",icon:"ellipsis",label:Object(g.__)("More tools & options"),popoverProps:st,toggleProps:ut},(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(lt,null),Object(c.createElement)(tt,null),Object(c.createElement)(ct.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(M.Slot,{fillProps:{onClose:t}}),Object(c.createElement)(j.MenuGroup,null,Object(c.createElement)(it,null)))}))},bt=Object(j.createSlotFill)("PinnedPlugins"),pt=bt.Fill,mt=bt.Slot;pt.Slot=function(e){return Object(c.createElement)(mt,e,(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)("div",{className:"edit-post-pinned-plugins"},e)}))};var Ot=pt;var ft=Object(E.compose)(Object(h.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(h.withDispatch)((function(e){return{togglePublishSidebar:e("core/edit-post").togglePublishSidebar}})),Object(s.withViewportMatch)({isLessThanMediumViewport:"< medium"}))((function(e){var t,n=e.forceIsDirty,o=e.forceIsSaving,r=e.hasPublishAction,i=e.isBeingScheduled,l=e.isLessThanMediumViewport,s=e.isPending,u=e.isPublished,d=e.isPublishSidebarEnabled,b=e.isPublishSidebarOpened,p=e.isScheduled,m=e.togglePublishSidebar;return t=u||p&&i||s&&!r&&!l?"button":l||d?"toggle":"button",Object(c.createElement)(a.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:b,isToggle:"toggle"===t,onToggle:m})}));var jt=Object(E.compose)(Object(h.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(h.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,i=e.isSaving,s=e.openGeneralSidebar,u=o?t:s;return Object(c.createElement)("div",{role:"region","aria-label":Object(g.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(c.createElement)("div",{className:"edit-post-header__toolbar"},Object(c.createElement)(Je,null),Object(c.createElement)(Ze,null)),Object(c.createElement)("div",{className:"edit-post-header__settings"},!r&&Object(c.createElement)(a.PostSavedState,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)(a.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:i?null:void 0}),Object(c.createElement)(ft,{forceIsDirty:n,forceIsSaving:i}),Object(c.createElement)("div",null,Object(c.createElement)(j.IconButton,{icon:"admin-generic",label:Object(g.__)("Settings"),onClick:u,isToggled:o,"aria-expanded":o,shortcut:$e.toggleSidebar}),Object(c.createElement)(l.DotTip,{tipId:"core/editor.settings"},Object(g.__)("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(c.createElement)(Ot.Slot,null),Object(c.createElement)(dt,null)))}));var ht=Object(E.compose)(Object(h.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(h.withDispatch)((function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}})))((function(e){var t=e.onExit,n=e.isRichEditingEnabled;return Object(c.createElement)("div",{className:"edit-post-text-editor"},n&&Object(c.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(c.createElement)("h2",null,Object(g.__)("Editing Code")),Object(c.createElement)(j.IconButton,{onClick:t,icon:"no-alt",shortcut:w.displayShortcut.secondary("m")},Object(g.__)("Exit Code Editor")),Object(c.createElement)(a.TextEditorGlobalKeyboardShortcuts,null)),Object(c.createElement)("div",{className:"edit-post-text-editor__body"},Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(a.PostTextEditor,null)))}));var gt=Object(E.compose)(Object(h.withSelect)((function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}})),Object(h.withDispatch)((function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}})),j.withSpokenMessages)((function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,i=void 0===r?O.noop:r,a=e.small,l=void 0!==a&&a,s=e.speak,u=t?Object(g.__)("Hide Block Settings"):Object(g.__)("Show Block Settings");return Object(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(O.flow)(t?n:o,(function(){s(t?Object(g.__)("Block settings closed"):Object(g.__)("Additional settings are now available in the Editor block settings sidebar"))}),i),icon:"admin-generic",shortcut:$e.toggleSidebar},!l&&u)})),Et=Object(j.createSlotFill)("PluginBlockSettingsMenuGroup"),vt=Et.Fill,_t=Et.Slot;vt.Slot=Object(h.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(O.map)(n,(function(e){return e.name})),Object(c.createElement)(_t,{fillProps:Object(D.a)({},t,{selectedBlocks:n})},(function(e){return!Object(O.isEmpty)(e)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"editor-block-settings-menu__separator block-editor-block-settings-menu__separator"}),e)}))}));var St=vt;var yt=function(){return Object(c.createElement)(i.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(c.createElement)(a.VisualEditorGlobalKeyboardShortcuts,null),Object(c.createElement)(i.MultiSelectScrollIntoView,null),Object(c.createElement)(i.Typewriter,null,Object(c.createElement)(i.WritingFlow,null,Object(c.createElement)(i.ObserveTyping,null,Object(c.createElement)(i.CopyHandler,null,Object(c.createElement)(a.PostTitle,null),Object(c.createElement)(i.BlockList,null))))),Object(c.createElement)(i.__experimentalBlockSettingsMenuFirstItem,null,(function(e){var t=e.onClose;return Object(c.createElement)(gt,{onClick:t})})),Object(c.createElement)(i.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var t=e.clientIds,n=e.onClose;return Object(c.createElement)(St.Slot,{fillProps:{clientIds:t,onClose:n}})})))},kt=n("JX7q"),Pt=function(e){function t(){var e;return Object(Re.a)(this,t),(e=Object(Ue.a)(this,Object(Ve.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(kt.a)(e)),e.toggleSidebar=e.toggleSidebar.bind(Object(kt.a)(e)),e}return Object(He.a)(t,e),Object(Ge.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(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(I.a)(e,$e.toggleEditorMode.raw,this.toggleMode),Object(I.a)(e,$e.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(c.Component),wt=Object(E.compose)([Object(h.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(h.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}}))])(Pt),Ct=w.displayShortcutList.primary,Tt=w.displayShortcutList.primaryShift,xt=w.displayShortcutList.primaryAlt,Nt=w.displayShortcutList.secondary,Mt=w.displayShortcutList.access,Bt=w.displayShortcutList.ctrl,At=w.displayShortcutList.alt,It=w.displayShortcutList.ctrlShift,Dt=[{className:"edit-post-keyboard-shortcut-help__main-shortcuts",shortcuts:[{keyCombination:Mt("h"),description:Object(g.__)("Display these keyboard shortcuts.")}]},{title:Object(g.__)("Global shortcuts"),shortcuts:[{keyCombination:Ct("s"),description:Object(g.__)("Save your changes.")},{keyCombination:Ct("z"),description:Object(g.__)("Undo your last changes.")},{keyCombination:Tt("z"),description:Object(g.__)("Redo your last undo.")},{keyCombination:Tt(","),description:Object(g.__)("Show or hide the settings sidebar."),ariaLabel:w.shortcutAriaLabel.primaryShift(",")},{keyCombination:Mt("o"),description:Object(g.__)("Open the block navigation menu.")},{keyCombination:Bt("`"),description:Object(g.__)("Navigate to the next part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrl("`")},{keyCombination:It("`"),description:Object(g.__)("Navigate to the previous part of the editor."),ariaLabel:w.shortcutAriaLabel.ctrlShift("`")},{keyCombination:Mt("n"),description:Object(g.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:Mt("p"),description:Object(g.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:At("F10"),description:Object(g.__)("Navigate to the nearest toolbar.")},{keyCombination:Nt("m"),description:Object(g.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(g.__)("Selection shortcuts"),shortcuts:[{keyCombination:Ct("a"),description:Object(g.__)("Select all text when typing. Press again to select all blocks.")},{keyCombination:"Esc",description:Object(g.__)("Clear selection."),ariaLabel:Object(g.__)("Escape")}]},{title:Object(g.__)("Block shortcuts"),shortcuts:[{keyCombination:Tt("d"),description:Object(g.__)("Duplicate the selected block(s).")},{keyCombination:Mt("z"),description:Object(g.__)("Remove the selected block(s).")},{keyCombination:xt("t"),description:Object(g.__)("Insert a new block before the selected block(s).")},{keyCombination:xt("y"),description:Object(g.__)("Insert a new block after the selected block(s).")},{keyCombination:"/",description:Object(g.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(g.__)("Forward-slash")}]},{title:Object(g.__)("Text formatting"),shortcuts:[{keyCombination:Ct("b"),description:Object(g.__)("Make the selected text bold.")},{keyCombination:Ct("i"),description:Object(g.__)("Make the selected text italic.")},{keyCombination:Ct("k"),description:Object(g.__)("Convert the selected text into a link.")},{keyCombination:Tt("k"),description:Object(g.__)("Remove a link.")},{keyCombination:Ct("u"),description:Object(g.__)("Underline the selected text.")}]}],Lt="edit-post/keyboard-shortcut-help",Ft=function(e){var t=e.shortcuts;return Object(c.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(c.createElement)("li",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o),Object(c.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(c.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(c.createElement)(c.Fragment,{key:t},e):Object(c.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)}))}(Object(O.castArray)(n)))))})))},Rt=function(e){var t=e.title,n=e.shortcuts,o=e.className;return Object(c.createElement)("section",{className:Xe()("edit-post-keyboard-shortcut-help__section",o)},!!t&&Object(c.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(c.createElement)(Ft,{shortcuts:n}))};var Gt=Object(E.compose)([Object(h.withSelect)((function(e){return{isModalActive:e("core/edit-post").isModalActive(Lt)}})),Object(h.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(Lt)}}}))])((function(e){var t=e.isModalActive,n=e.toggleModal;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},w.rawShortcut.access("h"),n)}),t&&Object(c.createElement)(j.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(g.__)("Keyboard Shortcuts"),closeLabel:Object(g.__)("Close"),onRequestClose:n},Dt.map((function(e,t){return Object(c.createElement)(Rt,Object(p.a)({key:t},e))}))))}));var Ut=function(e){var t=e.blockTypes,n=e.value,o=e.onItemChange;return Object(c.createElement)("ul",{className:"edit-post-manage-blocks-modal__checklist"},t.map((function(e){return Object(c.createElement)("li",{key:e.name,className:"edit-post-manage-blocks-modal__checklist-item"},Object(c.createElement)(j.CheckboxControl,{label:Object(c.createElement)(c.Fragment,null,e.title,Object(c.createElement)(i.BlockIcon,{icon:e.icon})),checked:n.includes(e.name),onChange:Object(O.partial)(o,e.name)}))})))},Vt=Object(c.createContext)({});var Ht=Object(E.compose)([E.withInstanceId,Object(h.withSelect)((function(e){return{hiddenBlockTypes:(0,e("core/edit-post").getPreference)("hiddenBlockTypes")}})),Object(h.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(c.useContext)(Vt).allowedBlockTypes,s=Object(c.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(A.a)(r))),b="edit-post-manage-blocks-modal__category-title-"+t,p=d.length===s.length;return u=p?"true":d.length>0?"mixed":"false",Object(c.createElement)("div",{role:"group","aria-labelledby":b,className:"edit-post-manage-blocks-modal__category"},Object(c.createElement)(j.CheckboxControl,{checked:p,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(c.createElement)("span",{id:b},n.title)}),Object(c.createElement)(Ut,{blockTypes:s,value:d,onItemChange:i}))}));var Qt=Object(E.compose)([Object(E.withState)({search:""}),Object(h.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,i=e.hasBlockSupport,a=e.isMatchingSearchTerm,l=e.numberOfHiddenBlocks;return o=o.filter((function(e){return i(e,"inserter",!0)&&(!t||a(e,t))&&!e.parent})),Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(c.createElement)(j.TextControl,{type:"search",label:Object(g.__)("Search for a block"),value:t,onChange:function(e){return n({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!l&&Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(g.sprintf)(Object(g._n)("%1$d block is disabled.","%1$d blocks are disabled.",l),l)),Object(c.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(g.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(c.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(g.__)("No blocks found.")),r.map((function(e){return Object(c.createElement)(Ht,{key:e.slug,category:e,blockTypes:Object(O.filter)(o,{category:e.slug})})}))))}));var qt=Object(E.compose)([Object(h.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(h.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,n=e.closeModal;return t?Object(c.createElement)(j.Modal,{className:"edit-post-manage-blocks-modal",title:Object(g.__)("Block Manager"),closeLabel:Object(g.__)("Close"),onRequestClose:n},Object(c.createElement)(Qt,null)):null})),Kt=function(e){var t=e.title,n=e.children;return Object(c.createElement)("section",{className:"edit-post-options-modal__section"},Object(c.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)};var Wt=function(e){var t=e.label,n=e.isChecked,o=e.onChange,r=e.children;return Object(c.createElement)("div",{className:"edit-post-options-modal__option"},Object(c.createElement)(j.CheckboxControl,{label:t,checked:n,onChange:o}),r)};function Xt(e){var t=e.willEnable,n=Object(c.useState)(!1),o=Object(V.a)(n,2),r=o[0],i=o[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(g.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(c.createElement)(j.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isDefault:!0,isBusy:r,disabled:r,onClick:function(){i(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(g.__)("Enable & Reload"):Object(g.__)("Disable & Reload")))}var Yt=Object(h.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,n=e.areCustomFieldsEnabled,o=Object(c.useState)(n),r=Object(V.a)(o,2),i=r[0],a=r[1];return Object(c.createElement)(Wt,{label:t,isChecked:i,onChange:a},i!==n&&Object(c.createElement)(Xt,{willEnable:i}))})),zt=Object(E.compose)(Object(h.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(E.ifCondition)((function(e){return!e.isRemoved})),Object(h.withDispatch)((function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}})))(Wt),Jt=Object(j.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Zt=Jt.Fill,$t=Jt.Slot,en=function(e){var t=e.label,n=e.panelName;return Object(c.createElement)(Zt,null,Object(c.createElement)(zt,{label:t,panelName:n}))};en.Slot=$t;var tn=en,nn=Object(E.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),n=t.enablePublishSidebar,o=t.disablePublishSidebar;return{onChange:function(e){return e?n():o()}}})),Object(s.ifViewportMatches)("medium"))(Wt),on=function(e){function t(e){var n,o=e.isChecked;return Object(Re.a)(this,t),(n=Object(Ue.a)(this,Object(Ve.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(He.a)(t,e),Object(Ge.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(c.createElement)(Wt,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(c.Component),rn=Object(E.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/nux").areTipsEnabled()}})),Object(h.withDispatch)((function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}})))(on),cn=Object(E.compose)(Object(h.withSelect)((function(e,t){var n=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(n)}})),Object(h.withDispatch)((function(e,t){var n=t.feature,o=e("core/edit-post").toggleFeature;return{onChange:function(){o(n)}}})))(Wt);var an=Object(h.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(m.a)(e,["areCustomFieldsRegistered","metaBoxes"]),r=Object(O.filter)(n,(function(e){return"postcustom"!==e.id}));return t||0!==r.length?Object(c.createElement)(Kt,o,t&&Object(c.createElement)(Yt,{label:Object(g.__)("Custom Fields")}),Object(O.map)(r,(function(e){var t=e.id,n=e.title;return Object(c.createElement)(zt,{key:t,label:n,panelName:"meta-box-".concat(t)})}))):null}));var ln=Object(E.compose)(Object(h.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(h.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(c.createElement)(j.Modal,{className:"edit-post-options-modal",title:Object(g.__)("Options"),closeLabel:Object(g.__)("Close"),onRequestClose:o},Object(c.createElement)(Kt,{title:Object(g.__)("General")},Object(c.createElement)(nn,{label:Object(g.__)("Pre-publish Checks")}),Object(c.createElement)(rn,{label:Object(g.__)("Tips")}),Object(c.createElement)(cn,{feature:"showInserterHelpPanel",label:Object(g.__)("Inserter Help Panel")})),Object(c.createElement)(Kt,{title:Object(g.__)("Document Panels")},Object(c.createElement)(tn.Slot,null),n&&Object(c.createElement)(zt,{label:Object(g.__)("Permalink"),panelName:"post-link"}),Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(zt,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)(zt,{label:Object(g.__)("Featured Image"),panelName:"featured-image"})),Object(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)(zt,{label:Object(g.__)("Excerpt"),panelName:"post-excerpt"})),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(zt,{label:Object(g.__)("Discussion"),panelName:"discussion-panel"})),Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)(zt,{label:Object(g.__)("Page Attributes"),panelName:"page-attributes"}))),Object(c.createElement)(an,{title:Object(g.__)("Advanced Panels")})):null})),sn=function(e){function t(){var e;return Object(Re.a)(this,t),(e=Object(Ue.a)(this,Object(Ve.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(kt.a)(e)),e}return Object(He.a)(t,e),Object(Ge.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=Xe()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(c.createElement)("div",{className:o},n&&Object(c.createElement)(j.Spinner,null),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(c.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(c.Component),un=Object(h.withSelect)((function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}}))(sn),dn=function(e){function t(){return Object(Re.a)(this,t),Object(Ue.a)(this,Object(Ve.a)(t).apply(this,arguments))}return Object(He.a)(t,e),Object(Ge.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}(c.Component),bn=Object(h.withSelect)((function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}}))(dn);var pn=Object(h.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(c.createElement)(c.Fragment,null,Object(O.map)(o,(function(e){var t=e.id;return Object(c.createElement)(bn,{key:t,id:t})})),n&&Object(c.createElement)(un,{location:t}))})),mn=Object(j.createSlotFill)("Sidebar"),On=mn.Fill,fn=mn.Slot;function jn(e){var t=e.children,n=e.label,o=e.className;return Object(c.createElement)("div",{className:Xe()("edit-post-sidebar",o),role:"region","aria-label":n,tabIndex:"-1"},t)}jn=Object(j.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(jn);var hn=Object(E.compose)(Object(h.withSelect)((function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}})),Object(E.ifCondition)((function(e){return e.isActive})))((function(e){return Object(c.createElement)(On,null,Object(c.createElement)(j.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(c.createElement)(jn,e)})))}));hn.Slot=fn;var gn=hn,En=Object(E.compose)(Object(h.withSelect)((function(e){return{title:e("core/editor").getEditedPostAttribute("title")}})),Object(h.withDispatch)((function(e){return{closeSidebar:e("core/edit-post").closeGeneralSidebar}})))((function(e){var t=e.children,n=e.className,o=e.closeLabel,r=e.closeSidebar,i=e.title;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(c.createElement)("span",{className:"edit-post-sidebar-header__title"},i||Object(g.__)("(no title)")),Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o})),Object(c.createElement)("div",{className:Xe()("components-panel__header edit-post-sidebar-header",n)},t,Object(c.createElement)(j.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:$e.toggleSidebar})))})),vn=Object(h.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(g.__)("Block"),i="edit-post/document"===o?[Object(g.__)("Document (selected)"),"is-active"]:[Object(g.__)("Document"),""],a=Object(V.a)(i,2),l=a[0],s=a[1],u="edit-post/block"===o?[Object(g.__)("Block (selected)"),"is-active"]:[Object(g.__)("Block"),""],d=Object(V.a)(u,2),b=d[0],p=d[1];return Object(c.createElement)(En,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(g.__)("Close settings")},Object(c.createElement)("ul",null,Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(s),"aria-label":l,"data-label":Object(g.__)("Document")},Object(g.__)("Document"))),Object(c.createElement)("li",null,Object(c.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":r},r))))}));var _n=function(){return Object(c.createElement)(a.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(c.createElement)(j.PanelRow,{className:"edit-post-post-visibility"},Object(c.createElement)("span",null,Object(g.__)("Visibility")),!t&&Object(c.createElement)("span",null,Object(c.createElement)(a.PostVisibilityLabel,null)),t&&Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)(j.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(c.createElement)(a.PostVisibilityLabel,null))},renderContent:function(){return Object(c.createElement)(a.PostVisibility,null)}}))}})};function Sn(){return Object(c.createElement)(a.PostTrashCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostTrash,null)))}var yn=function(){return Object(c.createElement)(a.PostScheduleCheck,null,Object(c.createElement)(j.PanelRow,{className:"edit-post-post-schedule"},Object(c.createElement)("span",null,Object(g.__)("Publish")),Object(c.createElement)(j.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(j.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(c.createElement)(a.PostScheduleLabel,null)))},renderContent:function(){return Object(c.createElement)(a.PostSchedule,null)}})))};var kn=function(){return Object(c.createElement)(a.PostStickyCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostSticky,null)))};var Pn=function(){return Object(c.createElement)(a.PostAuthorCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostAuthor,null)))};var wn=function(){return Object(c.createElement)(a.PostFormatCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostFormat,null)))};var Cn=function(){return Object(c.createElement)(a.PostPendingStatusCheck,null,Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPendingStatus,null)))},Tn=Object(j.createSlotFill)("PluginPostStatusInfo"),xn=Tn.Fill,Nn=Tn.Slot,Mn=function(e){var t=e.children,n=e.className;return Object(c.createElement)(xn,null,Object(c.createElement)(j.PanelRow,{className:n},t))};Mn.Slot=Nn;var Bn=Mn;var An=Object(E.compose)([Object(h.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(h.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(c.createElement)(j.PanelBody,{className:"edit-post-post-status",title:Object(g.__)("Status & Visibility"),opened:t,onToggle:n},Object(c.createElement)(Bn.Slot,null,(function(e){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_n,null),Object(c.createElement)(yn,null),Object(c.createElement)(wn,null),Object(c.createElement)(kn,null),Object(c.createElement)(Cn,null),Object(c.createElement)(Pn,null),e,Object(c.createElement)(Sn,null))})))}));var In=function(){return Object(c.createElement)(a.PostLastRevisionCheck,null,Object(c.createElement)(j.PanelBody,{className:"edit-post-last-revision__panel"},Object(c.createElement)(a.PostLastRevision,null)))};var Dn=Object(E.compose)(Object(h.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(h.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,i=e.children;if(!t)return null;var a=Object(O.get)(n,["labels","menu_name"]);return a?Object(c.createElement)(j.PanelBody,{title:a,opened:o,onToggle:r},i):null}));var Ln=function(){return Object(c.createElement)(a.PostTaxonomiesCheck,null,Object(c.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(Dn,{taxonomy:t},e)}}))};var Fn=Object(h.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")}})),Rn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"featured-image")}})),Gn=Object(E.compose)(Fn,Rn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(c.createElement)(a.PostFeaturedImageCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(o,["labels","featured_image"],Object(g.__)("Featured Image")),opened:n,onToggle:r},Object(c.createElement)(a.PostFeaturedImage,null))):null}));var Un=Object(E.compose)([Object(h.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}})),Object(h.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(c.createElement)(a.PostExcerptCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(g.__)("Excerpt"),opened:n,onToggle:o},Object(c.createElement)(a.PostExcerpt,null))):null}));var Vn=Object(E.compose)([Object(h.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(h.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,i=e.onTogglePanel,l=e.isEditable,s=e.postLink,u=e.permalinkParts,d=e.editPermalink,b=e.forceEmptyField,p=e.setState,m=e.postTitle,O=e.postSlug,f=e.postID,h=e.postTypeLabel,E=u.prefix,v=u.suffix,_=Object(y.safeDecodeURIComponent)(O)||Object(a.cleanForSlug)(m)||f;return l&&(t=E&&Object(c.createElement)("span",{className:"edit-post-post-link__link-prefix"},E),n=_&&Object(c.createElement)("span",{className:"edit-post-post-link__link-post-name"},_),o=v&&Object(c.createElement)("span",{className:"edit-post-post-link__link-suffix"},v)),Object(c.createElement)(j.PanelBody,{title:Object(g.__)("Permalink"),opened:r,onToggle:i},l&&Object(c.createElement)("div",{className:"editor-post-link"},Object(c.createElement)(j.TextControl,{label:Object(g.__)("URL Slug"),value:b?"":_,onChange:function(e){d(e),e?b&&p({forceEmptyField:!1}):b||p({forceEmptyField:!0})},onBlur:function(e){d(Object(a.cleanForSlug)(e.target.value)),b&&p({forceEmptyField:!1})}}),Object(c.createElement)("p",null,Object(g.__)("The last part of the URL.")," ",Object(c.createElement)(j.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(g.__)("Read about permalinks")))),Object(c.createElement)("p",{className:"edit-post-post-link__preview-label"},h||Object(g.__)("View Post")),Object(c.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(c.createElement)(j.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(c.createElement)(c.Fragment,null,t,n,o):s)))}));var Hn=Object(E.compose)([Object(h.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}})),Object(h.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(c.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(j.PanelBody,{title:Object(g.__)("Discussion"),opened:n,onToggle:o},Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"comments"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostComments,null))),Object(c.createElement)(a.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PostPingbacks,null))))):null}));var Qn=Object(h.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"))}})),qn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"page-attributes")}})),Kn=Object(E.compose)(Qn,qn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(c.createElement)(a.PageAttributesCheck,null,Object(c.createElement)(j.PanelBody,{title:Object(O.get)(r,["labels","attributes"],Object(g.__)("Page Attributes")),opened:n,onToggle:o},Object(c.createElement)(a.PageTemplate,null),Object(c.createElement)(a.PageAttributesParent,null),Object(c.createElement)(j.PanelRow,null,Object(c.createElement)(a.PageAttributesOrder,null)))):null})),Wn=Object(j.createSlotFill)("PluginDocumentSettingPanel"),Xn=Wn.Fill,Yn=Wn.Slot,zn=Object(E.compose)(Object(S.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,panelName:"".concat(e.name,"/").concat(t.name)}})),Object(h.withSelect)((function(e,t){var n=t.panelName;return{opened:e("core/edit-post").isEditorPanelOpened(n),isEnabled:e("core/edit-post").isEditorPanelEnabled(n)}})),Object(h.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,o=e.opened,r=e.onToggle,i=e.className,a=e.title,l=e.icon,s=e.children;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(tn,{label:a,panelName:n}),Object(c.createElement)(Xn,null,t&&Object(c.createElement)(j.PanelBody,{className:i,title:a,icon:l,opened:o,onToggle:r},s)))}));zn.Slot=Yn;var Jn=zn,Zn=Object(E.compose)(Object(h.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(c.createElement)(gn,{name:t,label:Object(g.__)("Editor settings")},Object(c.createElement)(vn,{sidebarName:t}),Object(c.createElement)(j.Panel,null,"edit-post/document"===t&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(An,null),Object(c.createElement)(Jn.Slot,null),Object(c.createElement)(In,null),Object(c.createElement)(Vn,null),Object(c.createElement)(Ln,null),Object(c.createElement)(Gn,null),Object(c.createElement)(Un,null),Object(c.createElement)(Hn,null),Object(c.createElement)(Kn,null),Object(c.createElement)(pn,{location:"side"})),"edit-post/block"===t&&Object(c.createElement)(j.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(c.createElement)(i.BlockInspector,null))))})),$n=Object(j.createSlotFill)("PluginPostPublishPanel"),eo=$n.Fill,to=$n.Slot,no=Object(E.compose)(Object(S.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(eo,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))}));no.Slot=to;var oo=no,ro=Object(j.createSlotFill)("PluginPrePublishPanel"),co=ro.Fill,io=ro.Slot,ao=Object(E.compose)(Object(S.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,i=void 0!==r&&r,a=e.icon;return Object(c.createElement)(co,null,Object(c.createElement)(j.PanelBody,{className:n,initialOpen:i||!o,title:o,icon:a},t))}));ao.Slot=io;var lo=ao,so=function(e){function t(){return Object(Re.a)(this,t),Object(Ue.a)(this,Object(Ve.a)(t).apply(this,arguments))}return Object(He.a)(t,e),Object(Ge.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}(c.Component),uo=Object(h.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(so);var bo=Object(E.compose)(Object(h.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(h.withDispatch)((function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}})),j.navigateRegions,Object(s.withViewportMatch)({isMobileViewport:"< small"}))((function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,r=e.publishSidebarOpened,i=e.hasFixedToolbar,l=e.closePublishSidebar,s=e.togglePublishSidebar,u=e.hasActiveMetaboxes,d=e.isSaving,b=e.isMobileViewport,m=e.isRichEditingEnabled,O=n||o||r,f=Xe()("edit-post-layout",{"is-sidebar-opened":O,"has-fixed-toolbar":i,"has-metaboxes":u}),h={role:"region","aria-label":Object(g.__)("Editor publish"),tabIndex:-1};return Object(c.createElement)(j.FocusReturnProvider,{className:f},Object(c.createElement)(uo,null),Object(c.createElement)(ze,null),Object(c.createElement)(a.UnsavedChangesWarning,null),Object(c.createElement)(a.AutosaveMonitor,null),Object(c.createElement)(a.LocalAutosaveMonitor,null),Object(c.createElement)(jt,null),Object(c.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(g.__)("Editor content"),tabIndex:"-1"},Object(c.createElement)(a.EditorNotices,null),Object(c.createElement)(wt,null),Object(c.createElement)(Gt,null),Object(c.createElement)(qt,null),Object(c.createElement)(ln,null),("text"===t||!m)&&Object(c.createElement)(ht,null),m&&"visual"===t&&Object(c.createElement)(yt,null),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(pn,{location:"normal"})),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(pn,{location:"advanced"}))),r?Object(c.createElement)(a.PostPublishPanel,Object(p.a)({},h,{onClose:l,forceIsDirty:u,forceIsSaving:d,PrePublishExtension:lo.Slot,PostPublishExtension:oo.Slot})):Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",Object(p.a)({className:"edit-post-toggle-publish-panel"},h),Object(c.createElement)(j.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:s,"aria-expanded":!1},Object(g.__)("Open publish panel"))),Object(c.createElement)(Zn,null),Object(c.createElement)(gn.Slot,null),b&&O&&Object(c.createElement)(j.ScrollLock,null)),Object(c.createElement)(j.Popover.Slot,null),Object(c.createElement)(S.PluginArea,null))})),po=function(e){var t=e.postId;!function(e){var t=Object(h.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(Le).isEditorSidebarOpened()}}),[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(h.useDispatch)(Le).openGeneralSidebar;Object(c.useEffect)((function(){o&&r(n?"edit-post/block":"edit-post/document")}),[n,o])}(t),function(e){var t=Object(h.useSelect)((function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),activeGeneralSidebarName:e(Le).getActiveGeneralSidebarName()}}),[e]),n=t.isSmall,o=t.activeGeneralSidebarName,r=Object(h.useDispatch)(Le),i=r.openGeneralSidebar,a=r.closeGeneralSidebar,l=Object(c.useRef)(null),s=Object(c.useRef)(null);Object(c.useEffect)((function(){l.current!==n&&(l.current=n,n?(s.current=o,o&&a()):s.current&&!o&&(i(s.current),s.current=null))}),[n,o])}(t),function(e){var t=Object(h.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,n=Object(c.useRef)();Object(c.useEffect)((function(){n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(c.useEffect)((function(){t&&n.current&&n.current.setAttribute("href",t)}),[t])}(t);var n=Object(h.useDispatch)("core/nux").triggerGuide;return Object(c.useEffect)((function(){n(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"])}),[n]),null},mo=function(e){function t(){var e;return Object(Re.a)(this,t),(e=Object(Ue.a)(this,Object(Ve.a)(t).apply(this,arguments))).getEditorSettings=qe()(e.getEditorSettings,{maxSize:1}),e}return Object(He.a)(t,e),Object(Ge.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,c,i,a,l){if(e=Object(D.a)({},e,{__experimentalPreferredStyleVariations:{value:i,onChange:l},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:a}),Object(O.size)(r)>0){var s=!0===e.allowedBlockTypes?Object(O.map)(c,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[s].concat(Object(A.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,i=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,b=e.preferredStyleVariations,O=e.__experimentalLocalAutosaveInterval,f=e.showInserterHelpPanel,h=e.updatePreferredStyleVariations,g=Object(m.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!r)return null;var E=this.getEditorSettings(t,n,f,o,u,d,b,O,h);return Object(c.createElement)(c.StrictMode,null,Object(c.createElement)(Vt.Provider,{value:t},Object(c.createElement)(j.SlotFillProvider,null,Object(c.createElement)(j.DropZoneProvider,null,Object(c.createElement)(a.EditorProvider,Object(p.a)({settings:E,post:r,initialEdits:l,useSubRegistry:!1},g),Object(c.createElement)(a.ErrorBoundary,{onError:s},Object(c.createElement)(po,{postId:i}),Object(c.createElement)(bo,null),Object(c.createElement)(j.KeyboardShortcuts,{shortcuts:Ke})),Object(c.createElement)(a.PostLockedModal,null))))))}}]),t}(c.Component),Oo=Object(E.compose)([Object(h.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(h.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(mo),fo=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(O.difference)(n,o).length);var n,o},jo=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,r=e.onClick,i=e.small,a=e.role;return Object(c.createElement)(St,null,(function(e){var l=e.selectedBlocks,s=e.onClose;return fo(l,t)?Object(c.createElement)(j.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(E.compose)(r,s),icon:n||"admin-plugins",label:i?o:void 0,role:a},!i&&o):null}))},ho=Object(E.compose)(Object(S.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,n=void 0===t?O.noop:t,o=Object(m.a)(e,["onClick"]);return Object(c.createElement)(ct,null,(function(e){return Object(c.createElement)(j.MenuItem,Object(p.a)({},o,{onClick:Object(E.compose)(n,e.onClose)}))}))}));var go=Object(E.compose)(Object(S.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(h.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(h.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,o=e.icon,r=e.isActive,i=e.isPinnable,a=void 0===i||i,l=e.isPinned,s=e.sidebarName,u=e.title,d=e.togglePin,b=e.toggleSidebar;return Object(c.createElement)(c.Fragment,null,a&&Object(c.createElement)(Ot,null,l&&Object(c.createElement)(j.IconButton,{icon:o,label:u,onClick:b,isToggled:r,"aria-expanded":r})),Object(c.createElement)(gn,{name:s,label:Object(g.__)("Editor plugins")},Object(c.createElement)(En,{closeLabel:Object(g.__)("Close plugin")},Object(c.createElement)("strong",null,u),a&&Object(c.createElement)(j.IconButton,{icon:l?"star-filled":"star-empty",label:l?Object(g.__)("Unpin from toolbar"):Object(g.__)("Pin to toolbar"),onClick:d,isToggled:l,"aria-expanded":l})),Object(c.createElement)(j.Panel,{className:n},t)))})),Eo=Object(E.compose)(Object(S.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(h.withSelect)((function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}})),Object(h.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,o=e.isSelected,r=e.onClick;return Object(c.createElement)(ho,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:r},t)}));function vo(e,t,n,o,r){Object(c.unmountComponentAtNode)(n);var i=vo.bind(null,e,t,n,o,r);Object(c.render)(Object(c.createElement)(Oo,{settings:o,onError:i,postId:t,postType:e,initialEdits:r,recovery:!0}),n)}function _o(e,t,n,o,r){var i=document.getElementById(e),a=vo.bind(null,t,n,i,o,r);Object(u.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 <!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(c.render)(Object(c.createElement)(Oo,{settings:o,onError:a,postId:n,postType:t,initialEdits:r}),i)}},foSv: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}))},g56x:function(e,t){!function(){e.exports=this.wp.hooks}()},gQxa: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}},gdqT:function(e,t){!function(){e.exports=this.wp.a11y}()},jSdM:function(e,t){!function(){e.exports=this.wp.editor}()},jZUy:function(e,t){!function(){e.exports=this.wp.coreData}()},l3Sj:function(e,t){!function(){e.exports=this.wp.i18n}()},md7G:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("U8pU"),r=n("JX7q");function c(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!=typeof t?Object(r.a)(e):t}},onLe:function(e,t){!function(){e.exports=this.wp.notices}()},pPDe: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}},rePB: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}))},"tI+e":function(e,t){!function(){e.exports=this.wp.components}()},vpQ4:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("rePB");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}},vuIU: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}))},wx14: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}))},ywyh:function(e,t){!function(){e.exports=this.wp.apiFetch}()}});
Save Changes
Rename File
Rename