mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
80ce372761
Updated packages: @wordpress/annotations: 1.7.2 -> 1.9.0 @wordpress/api-fetch: 3.6.4 -> 3.8.0 @wordpress/block-directory: 1.0.5 -> 1.2.0 @wordpress/block-editor: 3.2.5 -> 3.4.0 @wordpress/block-library: 2.9.6 -> 2.11.0 @wordpress/blocks: 6.7.2 -> 6.9.0 @wordpress/components: 8.3.2 -> 8.5.0 @wordpress/compose: 3.7.2 -> 3.9.0 @wordpress/core-data: 2.7.5 -> 2.9.0 @wordpress/data: 4.9.2 -> 4.11.0 @wordpress/data-controls: 1.3.4 -> 1.5.0 @wordpress/date: 3.5.0 -> 3.7.0 @wordpress/dom: 2.5.2 -> 2.6.0 @wordpress/e2e-test-utils: 3.0.0 -> 4.0.0 @wordpress/edit-post: 3.8.6 -> 3.10.0 @wordpress/editor: 9.7.6 -> 9.9.0 @wordpress/element: 2.8.2 -> 2.10.0 @wordpress/escape-html: 1.5.1 -> 1.6.0 @wordpress/format-library: 1.9.5 -> 1.11.0 @wordpress/i18n: 3.6.1 -> 3.7.0 @wordpress/keycodes: 2.6.2 -> 2.7.0 @wordpress/list-reusable-blocks: 1.8.4 -> 1.10.0 @wordpress/media-utils: 1.2.4 -> 1.4.0 @wordpress/notices: 1.8.2 -> 1.10.0 @wordpress/nux: 3.7.2 -> 3.9.0 @wordpress/plugins: 2.7.2 -> 2.9.0 @wordpress/rich-text: 3.7.2 -> 3.9.0 @wordpress/scripts: 6.0.0 -> 6.1.1 @wordpress/server-side-render: 1.3.4 -> 1.5.0 @wordpress/shortcode: 2.4.1 -> 2.5.0 @wordpress/token-list: 1.6.1 -> 1.8.0 @wordpress/url: 2.8.2 -> 2.9.0 @wordpress/viewport: 2.8.2 -> 2.10.0 Props gziolo, youknowriad. Fixes #49142. Built from https://develop.svn.wordpress.org/trunk@47051 git-svn-id: http://core.svn.wordpress.org/trunk@46851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
7 lines
99 KiB
JavaScript
7 lines
99 KiB
JavaScript
/*! This file is auto-generated */
|
||
this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=364)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.blocks}()},11:function(e,t,n){var o;
|
||
/*!
|
||
Copyright (c) 2017 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var c=r.apply(null,o);c&&e.push(c)}else if("object"===i)for(var a in o)n.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},12: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}))},13: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}))},14: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}))},142:function(e,t){!function(){e.exports=this.wp.nux}()},143:function(e,t){!function(){e.exports=this.wp.notices}()},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(31),r=n(6);function i(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!=typeof t?Object(r.a)(e):t}},16: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}))},17: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}))},18:function(e,t,n){"use strict";var o=n(32);function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return r}))},19:function(e,t){!function(){e.exports=this.wp.keycodes}()},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(40);function r(e,t){if(null==e)return{};var n,r,i=Object(o.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},22:function(e,t,n){"use strict";var o=n(33);var r=n(34);function i(e,t){return Object(o.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(o=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}}(e,t)||Object(r.a)()}n.d(t,"a",(function(){return i}))},230:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},25:function(e,t){!function(){e.exports=this.wp.url}()},26:function(e,t){!function(){e.exports=this.wp.editor}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return o}))},32: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}))},33:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return o}))},34: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}))},364:function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"openGeneralSidebar",(function(){return q})),n.d(o,"closeGeneralSidebar",(function(){return K})),n.d(o,"openModal",(function(){return Q})),n.d(o,"closeModal",(function(){return Y})),n.d(o,"openPublishSidebar",(function(){return X})),n.d(o,"closePublishSidebar",(function(){return $})),n.d(o,"togglePublishSidebar",(function(){return J})),n.d(o,"toggleEditorPanelEnabled",(function(){return ee})),n.d(o,"toggleEditorPanelOpened",(function(){return te})),n.d(o,"removeEditorPanel",(function(){return ne})),n.d(o,"toggleFeature",(function(){return oe})),n.d(o,"switchEditorMode",(function(){return re})),n.d(o,"togglePinnedPluginItem",(function(){return ie})),n.d(o,"hideBlockTypes",(function(){return ce})),n.d(o,"updatePreferredStyleVariations",(function(){return ae})),n.d(o,"__experimentalUpdateLocalAutosaveInterval",(function(){return le})),n.d(o,"showBlockTypes",(function(){return se})),n.d(o,"setAvailableMetaBoxesPerLocation",(function(){return ue})),n.d(o,"requestMetaBoxUpdates",(function(){return de})),n.d(o,"metaBoxUpdatesSuccess",(function(){return be}));var r={};n.r(r),n.d(r,"getEditorMode",(function(){return me})),n.d(r,"isEditorSidebarOpened",(function(){return Oe})),n.d(r,"isPluginSidebarOpened",(function(){return fe})),n.d(r,"getActiveGeneralSidebarName",(function(){return he})),n.d(r,"getPreferences",(function(){return Ee})),n.d(r,"getPreference",(function(){return je})),n.d(r,"isPublishSidebarOpened",(function(){return ge})),n.d(r,"isEditorPanelRemoved",(function(){return ve})),n.d(r,"isEditorPanelEnabled",(function(){return _e})),n.d(r,"isEditorPanelOpened",(function(){return ye})),n.d(r,"isModalActive",(function(){return Se})),n.d(r,"isFeatureActive",(function(){return Ce})),n.d(r,"isPluginItemPinned",(function(){return ke})),n.d(r,"getActiveMetaBoxLocations",(function(){return we})),n.d(r,"isMetaBoxLocationVisible",(function(){return Pe})),n.d(r,"isMetaBoxLocationActive",(function(){return xe})),n.d(r,"getMetaBoxesPerLocation",(function(){return Me})),n.d(r,"getAllMetaBoxes",(function(){return Te})),n.d(r,"hasMetaBoxes",(function(){return Ne})),n.d(r,"isSavingMetaBoxes",(function(){return Ae}));var i=n(0),c=(n(62),n(5)),a=n(26),l=(n(142),n(50)),s=(n(143),n(230)),u=n(27),d=n(98);Object(u.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return d.MediaUpload}));var b=n(14),p=n(21),m=n(2),O=n(10),f=n(3),h=n(4),E=n(1),j=n(8),g=Object(j.compose)(Object(h.withSelect)((function(e,t){if(Object(O.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(m.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)}}}))),v=Object(j.createHigherOrderComponent)((function(e){return g((function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(p.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(i.createElement)(e,r);var a=Object(O.getBlockType)(r.name),l=function(e){var t=Object(O.findTransform)(Object(O.getBlockTransforms)("to",e),(function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length}));if(!t)return null;return Object(O.getBlockType)(t.blocks[0])}(r.name);return[Object(i.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(i.createElement)(e,Object(b.a)({key:"block-edit"},r))),Object(i.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(i.createElement)(f.Button,{key:"find-original",isLarge:!0,onClick:o},Object(E.__)("Find original")),Object(i.createElement)(f.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(E.__)("Remove")),l&&Object(i.createElement)(f.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(O.createBlock)(l.name,r.attributes))}},Object(E.__)("Transform into:")," ",l.title)]},Object(i.createElement)("strong",null,a.title,": "),Object(E.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(u.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",v);var _=n(49),y=n(25);var S=Object(j.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(j.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,n=e.editedPostContent,o=e.hasCopied,r=e.setState;return n.length>0&&Object(i.createElement)(f.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){r({hasCopied:!0}),t("info",Object(E.__)("All content copied."),{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return r({hasCopied:!1})}},o?Object(E.__)("Copied!"):Object(E.__)("Copy All Content"))}));var C=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(i.createElement)(f.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(E.__)("Block Manager"))})),k=n(19);var w=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(i.createElement)(f.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:k.displayShortcut.access("h")},Object(E.__)("Keyboard Shortcuts"))})),P=Object(f.createSlotFill)("ToolsMoreMenuGroup"),x=P.Fill,M=P.Slot;x.Slot=function(e){var t=e.fillProps;return Object(i.createElement)(M,{fillProps:t},(function(e){return!Object(m.isEmpty)(e)&&Object(i.createElement)(f.MenuGroup,{label:Object(E.__)("Tools")},e)}))};var T=x;function N(){var e=Object(h.useDispatch)("core/nux").enableTips;return Object(i.createElement)(f.MenuItem,{onClick:e},Object(E.__)("Welcome Guide"))}Object(_.registerPlugin)("edit-post",{render:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(T,null,(function(e){var t=e.onClose;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(C,{onSelect:t}),Object(i.createElement)(f.MenuItem,{role:"menuitem",href:Object(y.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(E.__)("Manage All Reusable Blocks")),Object(i.createElement)(w,{onSelect:t}),Object(i.createElement)(N,null),Object(i.createElement)(S,null))})))}});var A,B=n(18),L=n(9),I=n(7),D="edit-post/document",H=Object(m.flow)([h.combineReducers,(A={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]:A,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(I.a)({},e,Object(L.a)({},n,Object(I.a)({},e[n],{enabled:!Object(m.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(m.get)(e,[o,"opened"],!1);return Object(I.a)({},e,Object(L.a)({},o,Object(I.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(I.a)({},e,Object(L.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(e,t){return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?Object(I.a)({},e,Object(L.a)({},t.pluginName,!Object(m.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return m.without.apply(void 0,[e].concat(Object(B.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(m.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(I.a)({},e,Object(L.a)({},t.blockName,t.blockStyle)):Object(m.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 V=Object(h.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(h.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:V,preferences:H,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(m.includes)(e,t.panelName))return[].concat(Object(B.a)(e),[t.panelName])}return e}}),R=n(70),G=n.n(R),U=n(22),Z=n(44),W=n(37),z=n.n(W);function q(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function K(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function Q(e){return{type:"OPEN_MODAL",name:e}}function Y(){return{type:"CLOSE_MODAL"}}function X(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function $(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function J(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ee(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function te(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function ne(e){return{type:"REMOVE_PANEL",panelName:e}}function oe(e){return{type:"TOGGLE_FEATURE",feature:e}}function re(e){return{type:"SWITCH_MODE",mode:e}}function ie(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ce(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(m.castArray)(e)}}function ae(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function le(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function se(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(m.castArray)(e)}}function ue(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function de(){return{type:"REQUEST_META_BOX_UPDATES"}}function be(){return{type:"META_BOX_UPDATES_SUCCESS"}}var pe=n(38);function me(e){return je(e,"editorMode","visual")}function Oe(e){var t=he(e);return Object(m.includes)(["edit-post/document","edit-post/block"],t)}function fe(e){return!!he(e)&&!Oe(e)}function he(e){return je(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function Ee(e){return e.preferences}function je(e,t,n){var o=Ee(e)[t];return void 0===o?n:o}function ge(e){return e.publishSidebarActive}function ve(e,t){return Object(m.includes)(e.removedPanels,t)}function _e(e,t){var n=je(e,"panels");return!ve(e,t)&&Object(m.get)(n,[t,"enabled"],!0)}function ye(e,t){var n=je(e,"panels");return!0===Object(m.get)(n,[t])||!0===Object(m.get)(n,[t,"opened"])}function Se(e,t){return e.activeModal===t}function Ce(e,t){return Object(m.get)(e.preferences.features,[t],!1)}function ke(e,t){var n=je(e,"pinnedPluginItems",{});return Object(m.get)(n,[t],!0)}var we=Object(pe.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return xe(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Pe(e,t){return xe(e,t)&&Object(m.some)(Me(e,t),(function(t){var n=t.id;return _e(e,"meta-box-".concat(n))}))}function xe(e,t){var n=Me(e,t);return!!n&&0!==n.length}function Me(e,t){return e.metaBoxes.locations[t]}var Te=Object(pe.a)((function(e){return Object(m.flatten)(Object(m.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Ne(e){return we(e).length>0}function Ae(e){return e.metaBoxes.isSaving}var Be,Le={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(),i=Object(h.select)("core/editor").isAutosavingPost(),c=r&&n&&!e&&!o;n=e,o=i,c&&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),i=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(B.a)(we(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))})))),c=Object(m.reduce)(i,(function(e,t){var n=!0,o=!1,r=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=Object(U.a)(i.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw r}}return e}),new window.FormData);r.forEach((function(e){var t=Object(U.a)(e,2),n=t[0],o=t[1];return c.append(n,o)})),z()({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(h.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(Z.speak)(t,"assertive")}};var Ie=function(e){var t,n=[G()(Le)],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=m.flowRight.apply(void 0,Object(B.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,i=t.args;return(n=e.select(o))[r].apply(n,Object(B.a)(i))}}))},He="core/edit-post",Ve=Object(h.registerStore)(He,{reducer:F,actions:o,selectors:r,controls:De,persist:["preferences"]});Ie(Ve);var Fe=n(13),Re=n(12),Ge=n(15),Ue=n(16),Ze=n(17),We=n(42),ze=n.n(We),qe={"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:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},Ke=n(11),Qe=n.n(Ke);var Ye=Object(j.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(i.createElement)("div",{className:"edit-post-text-editor"},n&&Object(i.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(i.createElement)("h2",null,Object(E.__)("Editing Code")),Object(i.createElement)(f.IconButton,{onClick:t,icon:"no-alt",shortcut:k.displayShortcut.secondary("m")},Object(E.__)("Exit Code Editor")),Object(i.createElement)(a.TextEditorGlobalKeyboardShortcuts,null)),Object(i.createElement)("div",{className:"edit-post-text-editor__body"},Object(i.createElement)(a.PostTitle,null),Object(i.createElement)(a.PostTextEditor,null)))})),Xe={toggleEditorMode:{raw:k.rawShortcut.secondary("m"),display:k.displayShortcut.secondary("m")},toggleSidebar:{raw:k.rawShortcut.primaryShift(","),display:k.displayShortcut.primaryShift(","),ariaLabel:k.shortcutAriaLabel.primaryShift(",")}};var $e=Object(j.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}})),f.withSpokenMessages)((function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,c=void 0===r?m.noop:r,a=e.small,l=void 0!==a&&a,s=e.speak,u=t?Object(E.__)("Hide Block Settings"):Object(E.__)("Show Block Settings");return Object(i.createElement)(f.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(m.flow)(t?n:o,(function(){s(t?Object(E.__)("Block settings closed"):Object(E.__)("Additional settings are now available in the Editor block settings sidebar"))}),c),icon:"admin-generic",shortcut:Xe.toggleSidebar},!l&&u)})),Je=Object(f.createSlotFill)("PluginBlockSettingsMenuGroup"),et=Je.Fill,tt=Je.Slot;et.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(m.map)(n,(function(e){return e.name})),Object(i.createElement)(tt,{fillProps:Object(I.a)({},t,{selectedBlocks:n})},(function(e){return!Object(m.isEmpty)(e)&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"editor-block-settings-menu__separator block-editor-block-settings-menu__separator"}),e)}))}));var nt=et;var ot=function(){return Object(i.createElement)(c.BlockSelectionClearer,{className:"edit-post-visual-editor editor-styles-wrapper"},Object(i.createElement)(a.VisualEditorGlobalKeyboardShortcuts,null),Object(i.createElement)(c.MultiSelectScrollIntoView,null),Object(i.createElement)(c.Typewriter,null,Object(i.createElement)(c.WritingFlow,null,Object(i.createElement)(c.ObserveTyping,null,Object(i.createElement)(c.CopyHandler,null,Object(i.createElement)(a.PostTitle,null),Object(i.createElement)(c.BlockList,null))))),Object(i.createElement)(c.__experimentalBlockSettingsMenuFirstItem,null,(function(e){var t=e.onClose;return Object(i.createElement)($e,{onClick:t})})),Object(i.createElement)(c.__experimentalBlockSettingsMenuPluginsExtension,null,(function(e){var t=e.clientIds,n=e.onClose;return Object(i.createElement)(nt.Slot,{fillProps:{clientIds:t,onClose:n}})})))},rt=n(6),it=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(Ue.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(rt.a)(e)),e.toggleSidebar=e.toggleSidebar.bind(Object(rt.a)(e)),e}return Object(Ze.a)(t,e),Object(Re.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(i.createElement)(f.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(L.a)(e,Xe.toggleEditorMode.raw,this.toggleMode),Object(L.a)(e,Xe.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(i.Component),ct=Object(j.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}}))])(it),at=k.displayShortcutList.primary,lt=k.displayShortcutList.primaryShift,st=k.displayShortcutList.primaryAlt,ut=k.displayShortcutList.secondary,dt=k.displayShortcutList.access,bt=k.displayShortcutList.ctrl,pt=k.displayShortcutList.alt,mt=k.displayShortcutList.ctrlShift,Ot=[{className:"edit-post-keyboard-shortcut-help__main-shortcuts",shortcuts:[{keyCombination:dt("h"),description:Object(E.__)("Display these keyboard shortcuts.")}]},{title:Object(E.__)("Global shortcuts"),shortcuts:[{keyCombination:at("s"),description:Object(E.__)("Save your changes.")},{keyCombination:at("z"),description:Object(E.__)("Undo your last changes.")},{keyCombination:lt("z"),description:Object(E.__)("Redo your last undo.")},{keyCombination:lt(","),description:Object(E.__)("Show or hide the settings sidebar."),ariaLabel:k.shortcutAriaLabel.primaryShift(",")},{keyCombination:dt("o"),description:Object(E.__)("Open the block navigation menu.")},{keyCombination:bt("`"),description:Object(E.__)("Navigate to the next part of the editor."),ariaLabel:k.shortcutAriaLabel.ctrl("`")},{keyCombination:mt("`"),description:Object(E.__)("Navigate to the previous part of the editor."),ariaLabel:k.shortcutAriaLabel.ctrlShift("`")},{keyCombination:dt("n"),description:Object(E.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:dt("p"),description:Object(E.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:pt("F10"),description:Object(E.__)("Navigate to the nearest toolbar.")},{keyCombination:ut("m"),description:Object(E.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(E.__)("Selection shortcuts"),shortcuts:[{keyCombination:at("a"),description:Object(E.__)("Select all text when typing. Press again to select all blocks.")},{keyCombination:"Esc",description:Object(E.__)("Clear selection."),ariaLabel:Object(E.__)("Escape")}]},{title:Object(E.__)("Block shortcuts"),shortcuts:[{keyCombination:lt("d"),description:Object(E.__)("Duplicate the selected block(s).")},{keyCombination:dt("z"),description:Object(E.__)("Remove the selected block(s).")},{keyCombination:st("t"),description:Object(E.__)("Insert a new block before the selected block(s).")},{keyCombination:st("y"),description:Object(E.__)("Insert a new block after the selected block(s).")},{keyCombination:"/",description:Object(E.__)("Change the block type after adding a new paragraph."),ariaLabel:Object(E.__)("Forward-slash")}]},{title:Object(E.__)("Text formatting"),shortcuts:[{keyCombination:at("b"),description:Object(E.__)("Make the selected text bold.")},{keyCombination:at("i"),description:Object(E.__)("Make the selected text italic.")},{keyCombination:at("k"),description:Object(E.__)("Convert the selected text into a link.")},{keyCombination:lt("k"),description:Object(E.__)("Remove a link.")},{keyCombination:at("u"),description:Object(E.__)("Underline the selected text.")}]}],ft="edit-post/keyboard-shortcut-help",ht=function(e){var t=e.shortcuts;return(Object(i.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(i.createElement)("li",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(i.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o),Object(i.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut-term"},Object(i.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(i.createElement)(i.Fragment,{key:t},e):Object(i.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help__shortcut-key"},e)}))}(Object(m.castArray)(n)))))}))))},Et=function(e){var t=e.title,n=e.shortcuts,o=e.className;return Object(i.createElement)("section",{className:Qe()("edit-post-keyboard-shortcut-help__section",o)},!!t&&Object(i.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(i.createElement)(ht,{shortcuts:n}))};var jt=Object(j.compose)([Object(h.withSelect)((function(e){return{isModalActive:e("core/edit-post").isModalActive(ft)}})),Object(h.withDispatch)((function(e,t){var n=t.isModalActive,o=e("core/edit-post"),r=o.openModal,i=o.closeModal;return{toggleModal:function(){return n?i():r(ft)}}}))])((function(e){var t=e.isModalActive,n=e.toggleModal;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(f.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(L.a)({},k.rawShortcut.access("h"),n)}),t&&Object(i.createElement)(f.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(E.__)("Keyboard Shortcuts"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Ot.map((function(e,t){return Object(i.createElement)(Et,Object(b.a)({key:t},e))}))))}));var gt=function(e){var t=e.blockTypes,n=e.value,o=e.onItemChange;return Object(i.createElement)("ul",{className:"edit-post-manage-blocks-modal__checklist"},t.map((function(e){return Object(i.createElement)("li",{key:e.name,className:"edit-post-manage-blocks-modal__checklist-item"},Object(i.createElement)(f.CheckboxControl,{label:Object(i.createElement)(i.Fragment,null,e.title,Object(i.createElement)(c.BlockIcon,{icon:e.icon})),checked:n.includes(e.name),onChange:Object(m.partial)(o,e.name)}))})))},vt=Object(i.createContext)({});var _t=Object(j.compose)([j.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(m.map)(t.blockTypes,"name");e?o(n):r(n)}}}))])((function(e){var t=e.instanceId,n=e.category,o=e.blockTypes,r=e.hiddenBlockTypes,c=e.toggleVisible,a=e.toggleAllVisible,l=Object(i.useContext)(vt).allowedBlockTypes,s=Object(i.useMemo)((function(){return!0===l?o:o.filter((function(e){var t=e.name;return Object(m.includes)(l||[],t)}))}),[l,o]);if(!s.length)return null;var u,d=m.without.apply(void 0,[Object(m.map)(s,"name")].concat(Object(B.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(i.createElement)("div",{role:"group","aria-labelledby":b,className:"edit-post-manage-blocks-modal__category"},Object(i.createElement)(f.CheckboxControl,{checked:p,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(i.createElement)("span",{id:b},n.title)}),Object(i.createElement)(gt,{blockTypes:s,value:d,onItemChange:c}))}));var yt=Object(j.compose)([Object(j.withState)({search:""}),Object(h.withSelect)((function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,i=t.isMatchingSearchTerm,c=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),a=Object(m.isArray)(c)&&c.length;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:i,numberOfHiddenBlocks:a}}))])((function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,c=e.hasBlockSupport,a=e.isMatchingSearchTerm,l=e.numberOfHiddenBlocks;return o=o.filter((function(e){return c(e,"inserter",!0)&&(!t||a(e,t))&&!e.parent})),Object(i.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(i.createElement)(f.TextControl,{type:"search",label:Object(E.__)("Search for a block"),value:t,onChange:function(e){return n({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!l&&Object(i.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(E.sprintf)(Object(E._n)("%1$d block is disabled.","%1$d blocks are disabled.",l),l)),Object(i.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(E.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(i.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(E.__)("No blocks found.")),r.map((function(e){return Object(i.createElement)(_t,{key:e.slug,category:e,blockTypes:Object(m.filter)(o,{category:e.slug})})}))))}));var St=Object(j.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(i.createElement)(f.Modal,{className:"edit-post-manage-blocks-modal",title:Object(E.__)("Block Manager"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Object(i.createElement)(yt,null)):null})),Ct=function(e){var t=e.title,n=e.children;return Object(i.createElement)("section",{className:"edit-post-options-modal__section"},Object(i.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)};var kt=function(e){var t=e.label,n=e.isChecked,o=e.onChange,r=e.children;return Object(i.createElement)("div",{className:"edit-post-options-modal__option"},Object(i.createElement)(f.CheckboxControl,{label:t,checked:n,onChange:o}),r)};function wt(e){var t=e.willEnable,n=Object(i.useState)(!1),o=Object(U.a)(n,2),r=o[0],c=o[1];return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(E.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(i.createElement)(f.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isDefault:!0,isBusy:r,disabled:r,onClick:function(){c(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(E.__)("Enable & Reload"):Object(E.__)("Disable & Reload")))}var Pt=Object(h.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,n=e.areCustomFieldsEnabled,o=Object(i.useState)(n),r=Object(U.a)(o,2),c=r[0],a=r[1];return Object(i.createElement)(kt,{label:t,isChecked:c,onChange:a},c!==n&&Object(i.createElement)(wt,{willEnable:c}))})),xt=Object(j.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(j.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)}}})))(kt),Mt=Object(f.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Tt=Mt.Fill,Nt=Mt.Slot,At=function(e){var t=e.label,n=e.panelName;return Object(i.createElement)(Tt,null,Object(i.createElement)(xt,{label:t,panelName:n}))};At.Slot=Nt;var Bt=At,Lt=Object(j.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(l.ifViewportMatches)("medium"))(kt),It=Object(j.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)}}})))(kt);var Dt=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(p.a)(e,["areCustomFieldsRegistered","metaBoxes"]),r=Object(m.filter)(n,(function(e){return"postcustom"!==e.id}));return t||0!==r.length?Object(i.createElement)(Ct,o,t&&Object(i.createElement)(Pt,{label:Object(E.__)("Custom Fields")}),Object(m.map)(r,(function(e){var t=e.id,n=e.title;return Object(i.createElement)(xt,{key:t,label:n,panelName:"meta-box-".concat(t)})}))):null}));var Ht=Object(j.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(m.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(i.createElement)(f.Modal,{className:"edit-post-options-modal",title:Object(E.__)("Options"),closeLabel:Object(E.__)("Close"),onRequestClose:o},Object(i.createElement)(Ct,{title:Object(E.__)("General")},Object(i.createElement)(Lt,{label:Object(E.__)("Pre-publish Checks")}),Object(i.createElement)(It,{feature:"showInserterHelpPanel",label:Object(E.__)("Inserter Help Panel")})),Object(i.createElement)(Ct,{title:Object(E.__)("Document Panels")},Object(i.createElement)(Bt.Slot,null),n&&Object(i.createElement)(xt,{label:Object(E.__)("Permalink"),panelName:"post-link"}),Object(i.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(i.createElement)(xt,{label:Object(m.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(i.createElement)(a.PostFeaturedImageCheck,null,Object(i.createElement)(xt,{label:Object(E.__)("Featured Image"),panelName:"featured-image"})),Object(i.createElement)(a.PostExcerptCheck,null,Object(i.createElement)(xt,{label:Object(E.__)("Excerpt"),panelName:"post-excerpt"})),Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(i.createElement)(xt,{label:Object(E.__)("Discussion"),panelName:"discussion-panel"})),Object(i.createElement)(a.PageAttributesCheck,null,Object(i.createElement)(xt,{label:Object(E.__)("Page Attributes"),panelName:"page-attributes"}))),Object(i.createElement)(Dt,{title:Object(E.__)("Advanced Panels")})):null}));var Vt=Object(f.navigateRegions)((function(e){var t=e.footer,n=e.header,o=e.sidebar,r=e.content,c=e.publish,a=e.className;return Object(i.createElement)("div",{className:Qe()(a,"edit-post-editor-regions")},!!n&&Object(i.createElement)("div",{className:"edit-post-editor-regions__header",role:"region","aria-label":Object(E.__)("Editor top bar"),tabIndex:"-1"},n),Object(i.createElement)("div",{className:"edit-post-editor-regions__body"},Object(i.createElement)("div",{className:"edit-post-editor-regions__content",role:"region","aria-label":Object(E.__)("Editor content"),tabIndex:"-1"},r),!!c&&Object(i.createElement)("div",{className:"edit-post-editor-regions__publish",role:"region","aria-label":Object(E.__)("Editor publish"),tabIndex:"-1"},c),!!o&&Object(i.createElement)("div",{className:"edit-post-editor-regions__sidebar",role:"region","aria-label":"Editor settings",tabIndex:"-1"},o)),!!t&&Object(i.createElement)("div",{className:"edit-post-editor-regions__footer",role:"region","aria-label":"Editor footer",tabIndex:"-1"},t))})),Ft=function(e){function t(){return Object(Fe.a)(this,t),Object(Ge.a)(this,Object(Ue.a)(t).apply(this,arguments))}return Object(Ze.a)(t,e),Object(Re.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}(i.Component),Rt=Object(h.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(Ft);var Gt=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(Ue.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(Ze.a)(t,e),Object(Re.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,i=t.isSavingPost,c=this.state.historyId;"trash"!==o||i?n===e.postId&&n===c||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,r)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(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}(i.Component),Ut=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()}}))(Gt);var Zt=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(i.createElement)(f.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(i.createElement)(f.IconButton,{icon:"arrow-left-alt2",href:Object(y.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(m.get)(n,["labels","view_items"],Object(E.__)("Back"))})):null}));var Wt=function(){var e=Object(h.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,n=e.showInserter,o=e.isTextModeEnabled,r=Object(j.useViewportMatch)("medium"),l=t?Object(E.__)("Document and block tools"):Object(E.__)("Document tools");return Object(i.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":l},Object(i.createElement)(c.Inserter,{disabled:!n,position:"bottom right",showInserterHelpPanel:!0}),Object(i.createElement)(a.EditorHistoryUndo,null),Object(i.createElement)(a.EditorHistoryRedo,null),Object(i.createElement)(a.TableOfContents,{hasOutlineItemsDisabled:o}),Object(i.createElement)(c.BlockNavigationDropdown,{isDisabled:o}),Object(i.createElement)(c.ToolSelector,null),(t||!r)&&Object(i.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(i.createElement)(c.BlockToolbar,null)))},zt=[{value:"visual",label:Object(E.__)("Visual Editor")},{value:"text",label:Object(E.__)("Code Editor")}];var qt=Object(j.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(j.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=zt.map((function(e){return e.value!==n?Object(I.a)({},e,{shortcut:Xe.toggleEditorMode.display}):e}));return Object(i.createElement)(f.MenuGroup,{label:Object(E.__)("Editor")},Object(i.createElement)(f.MenuItemsChoice,{choices:o,value:n,onSelect:t}))})),Kt=Object(f.createSlotFill)("PluginsMoreMenuGroup"),Qt=Kt.Fill,Yt=Kt.Slot;Qt.Slot=function(e){var t=e.fillProps;return Object(i.createElement)(Yt,{fillProps:t},(function(e){return!Object(m.isEmpty)(e)&&Object(i.createElement)(f.MenuGroup,{label:Object(E.__)("Plugins")},e)}))};var Xt=Qt;var $t=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(i.createElement)(f.MenuItem,{onClick:function(){t("edit-post/options")}},Object(E.__)("Options"))}));var Jt=Object(j.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)}}})),f.withSpokenMessages])((function(e){var t=e.onToggle,n=e.isActive,o=e.label,r=e.info,c=e.messageActivated,a=e.messageDeactivated,l=e.speak;return Object(i.createElement)(f.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(m.flow)(t,(function(){l(n?a||Object(E.__)("Feature deactivated"):c||Object(E.__)("Feature activated"))})),role:"menuitemcheckbox",info:r},o)}));var en=function(){return Object(j.useViewportMatch)("medium")?Object(i.createElement)(f.MenuGroup,{label:Object(E._x)("View","noun")},Object(i.createElement)(Jt,{feature:"fixedToolbar",label:Object(E.__)("Top Toolbar"),info:Object(E.__)("Access all block and document tools in a single place"),messageActivated:Object(E.__)("Top toolbar activated"),messageDeactivated:Object(E.__)("Top toolbar deactivated")}),Object(i.createElement)(Jt,{feature:"focusMode",label:Object(E.__)("Spotlight Mode"),info:Object(E.__)("Focus on one block at a time"),messageActivated:Object(E.__)("Spotlight mode activated"),messageDeactivated:Object(E.__)("Spotlight mode deactivated")}),Object(i.createElement)(Jt,{feature:"fullscreenMode",label:Object(E.__)("Fullscreen Mode"),info:Object(E.__)("Work without distraction"),messageActivated:Object(E.__)("Fullscreen mode activated"),messageDeactivated:Object(E.__)("Fullscreen mode deactivated")})):null},tn={className:"edit-post-more-menu__content",position:"bottom left"},nn={labelPosition:"bottom"},on=function(){return Object(i.createElement)(f.DropdownMenu,{className:"edit-post-more-menu",icon:"ellipsis",label:Object(E.__)("More tools & options"),popoverProps:tn,toggleProps:nn},(function(e){var t=e.onClose;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(en,null),Object(i.createElement)(qt,null),Object(i.createElement)(Xt.Slot,{fillProps:{onClose:t}}),Object(i.createElement)(T.Slot,{fillProps:{onClose:t}}),Object(i.createElement)(f.MenuGroup,null,Object(i.createElement)($t,null)))}))},rn=Object(f.createSlotFill)("PinnedPlugins"),cn=rn.Fill,an=rn.Slot;cn.Slot=function(e){return Object(i.createElement)(an,e,(function(e){return!Object(m.isEmpty)(e)&&Object(i.createElement)("div",{className:"edit-post-pinned-plugins"},e)}))};var ln=cn;var sn=Object(j.compose)(Object(h.withSelect)((function(e){return{hasPublishAction:Object(m.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}})))((function(e){var t,n=e.forceIsDirty,o=e.forceIsSaving,r=e.hasPublishAction,c=e.isBeingScheduled,l=e.isPending,s=e.isPublished,u=e.isPublishSidebarEnabled,d=e.isPublishSidebarOpened,b=e.isScheduled,p=e.togglePublishSidebar,m=Object(j.useViewportMatch)("medium","<");return t=s||b&&c||l&&!r&&!m?"button":m?"toggle":u?"toggle":"button",Object(i.createElement)(a.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:d,isToggle:"toggle"===t,onToggle:p})}));var un=Object(j.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"),i=r.openGeneralSidebar;return{openGeneralSidebar:function(){return i(o()?"edit-post/block":"edit-post/document")},closeGeneralSidebar:r.closeGeneralSidebar}})))((function(e){var t=e.closeGeneralSidebar,n=e.hasActiveMetaboxes,o=e.isEditorSidebarOpened,r=e.isPublishSidebarOpened,c=e.isSaving,l=e.openGeneralSidebar,s=o?t:l;return Object(i.createElement)("div",{className:"edit-post-header"},Object(i.createElement)("div",{className:"edit-post-header__toolbar"},Object(i.createElement)(Zt,null),Object(i.createElement)(Wt,null)),Object(i.createElement)("div",{className:"edit-post-header__settings"},!r&&Object(i.createElement)(a.PostSavedState,{forceIsDirty:n,forceIsSaving:c}),Object(i.createElement)(a.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:c?null:void 0}),Object(i.createElement)(sn,{forceIsDirty:n,forceIsSaving:c}),Object(i.createElement)(f.IconButton,{icon:"admin-generic",label:Object(E.__)("Settings"),onClick:s,isToggled:o,"aria-expanded":o,shortcut:Xe.toggleSidebar}),Object(i.createElement)(ln.Slot,null),Object(i.createElement)(on,null)))})),dn=Object(f.createSlotFill)("Sidebar"),bn=dn.Fill,pn=dn.Slot;function mn(e){var t=e.children,n=e.className;return Object(i.createElement)("div",{className:Qe()("edit-post-sidebar",n)},t)}mn=Object(f.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(mn);var On=Object(j.compose)(Object(h.withSelect)((function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}})),Object(j.ifCondition)((function(e){return e.isActive})))((function(e){return Object(i.createElement)(bn,null,Object(i.createElement)(f.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(i.createElement)(mn,e)})))}));On.Slot=pn;var fn=On,hn=Object(j.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,c=e.title;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"components-panel__header edit-post-sidebar-header__small"},Object(i.createElement)("span",{className:"edit-post-sidebar-header__title"},c||Object(E.__)("(no title)")),Object(i.createElement)(f.IconButton,{onClick:r,icon:"no-alt",label:o})),Object(i.createElement)("div",{className:Qe()("components-panel__header edit-post-sidebar-header",n)},t,Object(i.createElement)(f.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:Xe.toggleSidebar})))})),En=Object(h.withDispatch)((function(e){var t=e("core/edit-post").openGeneralSidebar;return{openDocumentSettings:function(){t("edit-post/document")},openBlockSettings:function(){t("edit-post/block")}}}))((function(e){var t=e.openDocumentSettings,n=e.openBlockSettings,o=e.sidebarName,r=Object(E.__)("Block"),c="edit-post/document"===o?[Object(E.__)("Document (selected)"),"is-active"]:[Object(E.__)("Document"),""],a=Object(U.a)(c,2),l=a[0],s=a[1],u="edit-post/block"===o?[Object(E.__)("Block (selected)"),"is-active"]:[Object(E.__)("Block"),""],d=Object(U.a)(u,2),b=d[0],p=d[1];return Object(i.createElement)(hn,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(E.__)("Close settings")},Object(i.createElement)("ul",null,Object(i.createElement)("li",null,Object(i.createElement)(f.Button,{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(s),"aria-label":l,"data-label":Object(E.__)("Document")},Object(E.__)("Document"))),Object(i.createElement)("li",null,Object(i.createElement)(f.Button,{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":r},r))))}));var jn=function(){return Object(i.createElement)(a.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(i.createElement)(f.PanelRow,{className:"edit-post-post-visibility"},Object(i.createElement)("span",null,Object(E.__)("Visibility")),!t&&Object(i.createElement)("span",null,Object(i.createElement)(a.PostVisibilityLabel,null)),t&&Object(i.createElement)(f.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(i.createElement)(f.Button,{"aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(i.createElement)(a.PostVisibilityLabel,null))},renderContent:function(){return Object(i.createElement)(a.PostVisibility,null)}}))}})};function gn(){return Object(i.createElement)(a.PostTrashCheck,null,Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PostTrash,null)))}var vn=function(){return Object(i.createElement)(a.PostScheduleCheck,null,Object(i.createElement)(f.PanelRow,{className:"edit-post-post-schedule"},Object(i.createElement)("span",null,Object(E.__)("Publish")),Object(i.createElement)(f.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(f.Button,{className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(i.createElement)(a.PostScheduleLabel,null)))},renderContent:function(){return Object(i.createElement)(a.PostSchedule,null)}})))};var _n=function(){return Object(i.createElement)(a.PostStickyCheck,null,Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PostSticky,null)))};var yn=function(){return Object(i.createElement)(a.PostAuthorCheck,null,Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PostAuthor,null)))};var Sn=function(){return Object(i.createElement)(a.PostSlugCheck,null,Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PostSlug,null)))};var Cn=function(){return Object(i.createElement)(a.PostFormatCheck,null,Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PostFormat,null)))};var kn=function(){return Object(i.createElement)(a.PostPendingStatusCheck,null,Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PostPendingStatus,null)))},wn=Object(f.createSlotFill)("PluginPostStatusInfo"),Pn=wn.Fill,xn=wn.Slot,Mn=function(e){var t=e.children,n=e.className;return Object(i.createElement)(Pn,null,Object(i.createElement)(f.PanelRow,{className:n},t))};Mn.Slot=xn;var Tn=Mn;var Nn=Object(j.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(j.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(i.createElement)(f.PanelBody,{className:"edit-post-post-status",title:Object(E.__)("Status & Visibility"),opened:t,onToggle:n},Object(i.createElement)(Tn.Slot,null,(function(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(jn,null),Object(i.createElement)(vn,null),Object(i.createElement)(Cn,null),Object(i.createElement)(_n,null),Object(i.createElement)(kn,null),Object(i.createElement)(Sn,null),Object(i.createElement)(yn,null),e,Object(i.createElement)(gn,null))})))}));var An=function(){return Object(i.createElement)(a.PostLastRevisionCheck,null,Object(i.createElement)(f.PanelBody,{className:"edit-post-last-revision__panel"},Object(i.createElement)(a.PostLastRevision,null)))};var Bn=Object(j.compose)(Object(h.withSelect)((function(e,t){var n=Object(m.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,c=e.children;if(!t)return null;var a=Object(m.get)(n,["labels","menu_name"]);return a?Object(i.createElement)(f.PanelBody,{title:a,opened:o,onToggle:r},c):null}));var Ln=function(){return Object(i.createElement)(a.PostTaxonomiesCheck,null,Object(i.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(i.createElement)(Bn,{taxonomy:t},e)}}))};var In=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,i=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:i("featured-image")}})),Dn=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(m.partial)(t,"featured-image")}})),Hn=Object(j.compose)(In,Dn)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(i.createElement)(a.PostFeaturedImageCheck,null,Object(i.createElement)(f.PanelBody,{title:Object(m.get)(o,["labels","featured_image"],Object(E.__)("Featured Image")),opened:n,onToggle:r},Object(i.createElement)(a.PostFeaturedImage,null))):null}));var Vn=Object(j.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(i.createElement)(a.PostExcerptCheck,null,Object(i.createElement)(f.PanelBody,{title:Object(E.__)("Excerpt"),opened:n,onToggle:o},Object(i.createElement)(a.PostExcerpt,null))):null}));var Fn=Object(j.compose)([Object(h.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,i=t.isCurrentPostPublished,c=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,O=b.id,f=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:i(),isOpened:u("post-link"),permalinkParts:c(),isEnabled:s("post-link"),isViewable:Object(m.get)(f,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:O,postTypeLabel:Object(m.get)(f,["labels","view_item"])}})),Object(j.ifCondition)((function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,i=e.permalinkParts;return t&&!n&&o&&r&&i})),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(j.withState)({forceEmptyField:!1})])((function(e){var t,n,o,r=e.isOpened,c=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,h=e.postID,j=e.postTypeLabel,g=u.prefix,v=u.suffix,_=Object(y.safeDecodeURIComponent)(O)||Object(a.cleanForSlug)(m)||h;return l&&(t=g&&Object(i.createElement)("span",{className:"edit-post-post-link__link-prefix"},g),n=_&&Object(i.createElement)("span",{className:"edit-post-post-link__link-post-name"},_),o=v&&Object(i.createElement)("span",{className:"edit-post-post-link__link-suffix"},v)),Object(i.createElement)(f.PanelBody,{title:Object(E.__)("Permalink"),opened:r,onToggle:c},l&&Object(i.createElement)("div",{className:"editor-post-link"},Object(i.createElement)(f.TextControl,{label:Object(E.__)("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(i.createElement)("p",null,Object(E.__)("The last part of the URL.")," ",Object(i.createElement)(f.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(E.__)("Read about permalinks")))),Object(i.createElement)("p",{className:"edit-post-post-link__preview-label"},j||Object(E.__)("View Post")),Object(i.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(i.createElement)(f.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(i.createElement)(i.Fragment,null,t,n,o):s)))}));var Rn=Object(j.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(i.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(i.createElement)(f.PanelBody,{title:Object(E.__)("Discussion"),opened:n,onToggle:o},Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:"comments"},Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PostComments,null))),Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PostPingbacks,null))))):null}));var Gn=Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,i=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:i(t("type"))}})),Un=Object(h.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(m.partial)(t,"page-attributes")}})),Zn=Object(j.compose)(Gn,Un)((function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(i.createElement)(a.PageAttributesCheck,null,Object(i.createElement)(f.PanelBody,{title:Object(m.get)(r,["labels","attributes"],Object(E.__)("Page Attributes")),opened:n,onToggle:o},Object(i.createElement)(a.PageTemplate,null),Object(i.createElement)(a.PageAttributesParent,null),Object(i.createElement)(f.PanelRow,null,Object(i.createElement)(a.PageAttributesOrder,null)))):null})),Wn=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(Ue.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(rt.a)(e)),e}return Object(Ze.a)(t,e),Object(Re.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=Qe()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(i.createElement)("div",{className:o},n&&Object(i.createElement)(f.Spinner,null),Object(i.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(i.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(i.Component),zn=Object(h.withSelect)((function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}}))(Wn),qn=function(e){function t(){return Object(Fe.a)(this,t),Object(Ge.a)(this,Object(Ue.a)(t).apply(this,arguments))}return Object(Ze.a)(t,e),Object(Re.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}(i.Component),Kn=Object(h.withSelect)((function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}}))(qn);var Qn=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(i.createElement)(i.Fragment,null,Object(m.map)(o,(function(e){var t=e.id;return Object(i.createElement)(Kn,{key:t,id:t})})),n&&Object(i.createElement)(zn,{location:t}))})),Yn=Object(f.createSlotFill)("PluginDocumentSettingPanel"),Xn=Yn.Fill,$n=Yn.Slot,Jn=Object(j.compose)(Object(_.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,c=e.className,a=e.title,l=e.icon,s=e.children;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Bt,{label:a,panelName:n}),Object(i.createElement)(Xn,null,t&&Object(i.createElement)(f.PanelBody,{className:c,title:a,icon:l,opened:o,onToggle:r},s)))}));Jn.Slot=$n;var eo=Jn,to=Object(j.compose)(Object(h.withSelect)((function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}})),Object(j.ifCondition)((function(e){return e.isEditorSidebarOpened})))((function(e){var t=e.sidebarName;return Object(i.createElement)(fn,{name:t},Object(i.createElement)(En,{sidebarName:t}),Object(i.createElement)(f.Panel,null,"edit-post/document"===t&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Nn,null),Object(i.createElement)(eo.Slot,null),Object(i.createElement)(An,null),Object(i.createElement)(Fn,null),Object(i.createElement)(Ln,null),Object(i.createElement)(Hn,null),Object(i.createElement)(Vn,null),Object(i.createElement)(Rn,null),Object(i.createElement)(Zn,null),Object(i.createElement)(Qn,{location:"side"})),"edit-post/block"===t&&Object(i.createElement)(c.BlockInspector,null)))})),no=Object(f.createSlotFill)("PluginPostPublishPanel"),oo=no.Fill,ro=no.Slot,io=Object(j.compose)(Object(_.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,c=void 0!==r&&r,a=e.icon;return Object(i.createElement)(oo,null,Object(i.createElement)(f.PanelBody,{className:n,initialOpen:c||!o,title:o,icon:a},t))}));io.Slot=ro;var co=io,ao=Object(f.createSlotFill)("PluginPrePublishPanel"),lo=ao.Fill,so=ao.Slot,uo=Object(j.compose)(Object(_.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,c=void 0!==r&&r,a=e.icon;return Object(i.createElement)(lo,null,Object(i.createElement)(f.PanelBody,{className:n,initialOpen:c||!o,title:o,icon:a},t))}));uo.Slot=so;var bo=uo,po=function(e){return Object(i.createElement)("img",Object(b.a)({alt:"",src:"data:image/svg+xml,%3Csvg width='306' height='286' viewBox='0 0 306 286' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='306' height='286' rx='4' fill='%2366C6E4'/%3E%3Crect x='36' y='30' width='234' height='256' fill='white'/%3E%3Crect x='36' y='80' width='234' height='94' fill='%23E2E4E7'/%3E%3Cpath d='M140.237 121.47L142.109 125H157.255V133H140.237V121.47ZM159.382 119H155.128L157.255 123H154.064L151.937 119H149.809L151.937 123H148.746L146.618 119H144.491L146.618 123H143.428L141.3 119H140.237C139.067 119 138.12 119.9 138.12 121L138.109 133C138.109 134.1 139.067 135 140.237 135H157.255C158.425 135 159.382 134.1 159.382 133V119Z' fill='%23444444'/%3E%3Crect x='57' y='182' width='91.4727' height='59' fill='%23E2E4E7'/%3E%3Crect x='156.982' y='182' width='91.4727' height='59' fill='%23E2E4E7'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M112.309 203H93.1634C92.0998 203 91.0361 204 91.0361 205V219C91.0361 220.1 91.9934 221 93.1634 221H112.309C113.372 221 114.436 220 114.436 219V205C114.436 204 113.372 203 112.309 203ZM112.309 218.92C112.294 218.941 112.269 218.962 112.248 218.979L112.248 218.979C112.239 218.987 112.23 218.994 112.224 219H93.1634V205.08L93.2485 205H112.213C112.235 205.014 112.258 205.038 112.276 205.057C112.284 205.066 112.292 205.074 112.298 205.08V218.92H112.309ZM99.0134 212.5L101.672 215.51L105.395 211L110.182 217H95.2907L99.0134 212.5Z' fill='%2340464D'/%3E%3Cmask id='mask0' mask-type='alpha' maskUnits='userSpaceOnUse' x='91' y='203' width='24' height='18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M112.309 203H93.1634C92.0998 203 91.0361 204 91.0361 205V219C91.0361 220.1 91.9934 221 93.1634 221H112.309C113.372 221 114.436 220 114.436 219V205C114.436 204 113.372 203 112.309 203ZM112.309 218.92C112.294 218.941 112.269 218.962 112.248 218.979L112.248 218.979C112.239 218.987 112.23 218.994 112.224 219H93.1634V205.08L93.2485 205H112.213C112.235 205.014 112.258 205.038 112.276 205.057C112.284 205.066 112.292 205.074 112.298 205.08V218.92H112.309ZM99.0134 212.5L101.672 215.51L105.395 211L110.182 217H95.2907L99.0134 212.5Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0)'%3E%3Crect x='89.9727' y='200' width='25.5273' height='24' fill='%2340464D'/%3E%3C/g%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M212.291 203H193.145C192.082 203 191.018 204 191.018 205V219C191.018 220.1 191.975 221 193.145 221H212.291C213.354 221 214.418 220 214.418 219V205C214.418 204 213.354 203 212.291 203ZM212.291 218.92C212.276 218.941 212.251 218.962 212.23 218.979L212.23 218.979C212.221 218.987 212.212 218.994 212.206 219H193.145V205.08L193.23 205H212.195C212.217 205.014 212.24 205.038 212.258 205.057C212.266 205.066 212.274 205.074 212.28 205.08V218.92H212.291ZM198.995 212.5L201.654 215.51L205.377 211L210.164 217H195.273L198.995 212.5Z' fill='%2340464D'/%3E%3Cmask id='mask1' mask-type='alpha' maskUnits='userSpaceOnUse' x='191' y='203' width='24' height='18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M212.291 203H193.145C192.082 203 191.018 204 191.018 205V219C191.018 220.1 191.975 221 193.145 221H212.291C213.354 221 214.418 220 214.418 219V205C214.418 204 213.354 203 212.291 203ZM212.291 218.92C212.276 218.941 212.251 218.962 212.23 218.979L212.23 218.979C212.221 218.987 212.212 218.994 212.206 219H193.145V205.08L193.23 205H212.195C212.217 205.014 212.24 205.038 212.258 205.057C212.266 205.066 212.274 205.074 212.28 205.08V218.92H212.291ZM198.995 212.5L201.654 215.51L205.377 211L210.164 217H195.273L198.995 212.5Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask1)'%3E%3Crect x='189.955' y='200' width='25.5273' height='24' fill='%2340464D'/%3E%3C/g%3E%3Crect x='57' y='38' width='191.455' height='34' fill='%23E2E4E7'/%3E%3Cpath d='M155.918 47.8V54.04H149.537V47.8H146.346V63.4H149.537V57.16H155.918V63.4H159.109V47.8' fill='%2340464D'/%3E%3Crect x='58' y='249' width='191' height='37' fill='%23E2E4E7'/%3E%3Cpath d='M160.127 261.4H150.606C149.546 261.4 148.576 261.64 147.696 262.12C146.802 262.612 146.1 263.272 145.59 264.1C145.066 264.928 144.811 265.84 144.811 266.824C144.811 267.808 145.066 268.72 145.59 269.548C146.1 270.376 146.802 271.036 147.696 271.516C148.576 272.008 149.546 272.248 150.606 272.248H151.155V279.4C151.155 279.724 151.282 280.012 151.525 280.252C151.78 280.48 152.086 280.6 152.431 280.6C152.788 280.6 153.082 280.48 153.337 280.252C153.592 280.012 153.72 279.724 153.72 279.4V265C153.72 264.676 153.835 264.388 154.09 264.148C154.345 263.92 154.652 263.8 154.996 263.8C155.341 263.8 155.647 263.92 155.903 264.148C156.145 264.388 156.273 264.676 156.273 265V279.4C156.273 279.724 156.4 280.012 156.656 280.252C156.911 280.48 157.205 280.6 157.562 280.6C157.907 280.6 158.213 280.48 158.468 280.252C158.711 280.012 158.838 279.724 158.838 279.4V263.8H160.127C160.472 263.8 160.766 263.68 161.021 263.44C161.276 263.212 161.404 262.924 161.404 262.6C161.404 262.276 161.276 261.988 161.021 261.748C160.766 261.52 160.472 261.4 160.127 261.4Z' fill='%2340464D'/%3E%3C/svg%3E%0A"},e))},mo=function(e){return Object(i.createElement)("img",Object(b.a)({alt:"",src:"data:image/svg+xml,%3Csvg width='306' height='286' viewBox='0 0 306 286' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='306' height='286' rx='4' fill='%2366C6E4'/%3E%3Crect x='34.5' y='89.9424' width='237' height='113.423' fill='white' stroke='%238D96A0'/%3E%3Crect x='42.2383' y='98.5962' width='219.692' height='95.6618' fill='%23E2E4E7'/%3E%3Crect x='34.5' y='71.6346' width='27.0718' height='18.1324' fill='white' stroke='%238D96A0'/%3E%3Crect x='152.89' y='71.6346' width='18.5282' height='18.1324' fill='white' stroke='%238D96A0'/%3E%3Crect x='61.3516' y='71.6346' width='51.482' height='18.1324' fill='white' stroke='%238D96A0'/%3E%3Crect x='112.613' y='71.6346' width='40.4974' height='18.1324' fill='white' stroke='%238D96A0'/%3E%3Cpath d='M157.577 137.408H149.383C148.471 137.408 147.636 137.628 146.878 138.068C146.109 138.518 145.505 139.122 145.066 139.88C144.615 140.638 144.396 141.473 144.396 142.373C144.396 143.274 144.615 144.109 145.066 144.867C145.505 145.625 146.109 146.229 146.878 146.668C147.636 147.119 148.471 147.339 149.383 147.339H149.855V153.885C149.855 154.182 149.965 154.446 150.173 154.665C150.393 154.874 150.657 154.984 150.953 154.984C151.261 154.984 151.514 154.874 151.733 154.665C151.953 154.446 152.063 154.182 152.063 153.885V140.704C152.063 140.407 152.162 140.144 152.381 139.924C152.601 139.715 152.865 139.605 153.161 139.605C153.458 139.605 153.721 139.715 153.941 139.924C154.15 140.144 154.26 140.407 154.26 140.704V153.885C154.26 154.182 154.37 154.446 154.589 154.665C154.809 154.874 155.062 154.984 155.369 154.984C155.666 154.984 155.929 154.874 156.149 154.665C156.358 154.446 156.468 154.182 156.468 153.885V139.605H157.577C157.874 139.605 158.126 139.496 158.346 139.276C158.566 139.067 158.676 138.803 158.676 138.507C158.676 138.21 158.566 137.947 158.346 137.727C158.126 137.518 157.874 137.408 157.577 137.408Z' fill='%2340464D'/%3E%3Crect x='41.3232' y='77.1135' width='15.8667' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='66.9536' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='77.9385' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='88.9229' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='99.9077' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='118.215' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='129.2' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='140.185' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3Crect x='158.492' y='77.1135' width='7.32308' height='7.17464' fill='%23E2E4E7'/%3E%3C/svg%3E%0A"},e))},Oo=function(e){return Object(i.createElement)("img",Object(b.a)({alt:"",src:"data:image/svg+xml,%3Csvg width='306' height='286' viewBox='0 0 306 286' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='306' height='286' rx='4' fill='%2366C6E4'/%3E%3Cmask id='mask0' mask-type='alpha' maskUnits='userSpaceOnUse' x='141' y='25' width='24' height='24'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152.765 25C146.294 25 141 30.2943 141 36.7651C141 43.2359 146.294 48.5302 152.765 48.5302C159.236 48.5302 164.53 43.2359 164.53 36.7651C164.53 30.2943 159.236 25 152.765 25ZM151.589 32.0591V35.5886H148.059V37.9416H151.589V41.4711H153.942V37.9416H157.471V35.5886H153.942V32.0591H151.589ZM143.353 36.7651C143.353 41.9417 147.588 46.1772 152.765 46.1772C157.942 46.1772 162.177 41.9417 162.177 36.7651C162.177 31.5885 157.942 27.353 152.765 27.353C147.588 27.353 143.353 31.5885 143.353 36.7651Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0)'%3E%3Crect x='141' y='25' width='23.5253' height='23.5253' fill='white'/%3E%3C/g%3E%3Cg filter='url(%23filter0_d)'%3E%3Crect x='48' y='63' width='210' height='190' fill='white'/%3E%3C/g%3E%3Cmask id='mask1' mask-type='alpha' maskUnits='userSpaceOnUse' x='143' y='139' width='20' height='16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M143.75 141C143.75 140.17 144.42 139.5 145.25 139.5C146.08 139.5 146.75 140.17 146.75 141C146.75 141.83 146.08 142.5 145.25 142.5C144.42 142.5 143.75 141.83 143.75 141ZM143.75 147C143.75 146.17 144.42 145.5 145.25 145.5C146.08 145.5 146.75 146.17 146.75 147C146.75 147.83 146.08 148.5 145.25 148.5C144.42 148.5 143.75 147.83 143.75 147ZM145.25 151.5C144.42 151.5 143.75 152.18 143.75 153C143.75 153.82 144.43 154.5 145.25 154.5C146.07 154.5 146.75 153.82 146.75 153C146.75 152.18 146.08 151.5 145.25 151.5ZM162.25 154H148.25V152H162.25V154ZM148.25 148H162.25V146H148.25V148ZM148.25 142V140H162.25V142H148.25Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask1)'%3E%3Crect x='141' y='135' width='24' height='24' fill='%23444444'/%3E%3C/g%3E%3Cmask id='mask2' mask-type='alpha' maskUnits='userSpaceOnUse' x='139' y='54' width='28' height='11'%3E%3Crect x='139' y='54' width='28' height='11' fill='%23C4C4C4'/%3E%3C/mask%3E%3Cg mask='url(%23mask2)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M139 67L153 54L167 67H139Z' fill='white'/%3E%3C/g%3E%3Crect x='59' y='74' width='188' height='28' rx='3' stroke='%231486B8' stroke-width='2'/%3E%3Cpath d='M211 207.47L212.76 211H227V219H211V207.47ZM229 205H225L227 209H224L222 205H220L222 209H219L217 205H215L217 209H214L212 205H211C209.9 205 209.01 205.9 209.01 207L209 219C209 220.1 209.9 221 211 221H227C228.1 221 229 220.1 229 219V205Z' fill='%23444444'/%3E%3Cpath d='M94.0001 136.4H85.0481C84.0521 136.4 83.1401 136.64 82.3121 137.12C81.4721 137.612 80.8121 138.272 80.3321 139.1C79.8401 139.928 79.6001 140.84 79.6001 141.824C79.6001 142.808 79.8401 143.72 80.3321 144.548C80.8121 145.376 81.4721 146.036 82.3121 146.516C83.1401 147.008 84.0521 147.248 85.0481 147.248H85.5641V154.4C85.5641 154.724 85.6841 155.012 85.9121 155.252C86.1521 155.48 86.4401 155.6 86.7641 155.6C87.1001 155.6 87.3761 155.48 87.6161 155.252C87.8561 155.012 87.9761 154.724 87.9761 154.4V140C87.9761 139.676 88.0841 139.388 88.3241 139.148C88.5641 138.92 88.8521 138.8 89.1761 138.8C89.5001 138.8 89.7881 138.92 90.0281 139.148C90.2561 139.388 90.3761 139.676 90.3761 140V154.4C90.3761 154.724 90.4961 155.012 90.7361 155.252C90.9761 155.48 91.2521 155.6 91.5881 155.6C91.9121 155.6 92.2001 155.48 92.4401 155.252C92.6681 155.012 92.7881 154.724 92.7881 154.4V138.8H94.0001C94.3241 138.8 94.6001 138.68 94.8401 138.44C95.0801 138.212 95.2001 137.924 95.2001 137.6C95.2001 137.276 95.0801 136.988 94.8401 136.748C94.6001 136.52 94.3241 136.4 94.0001 136.4Z' fill='%23444444'/%3E%3Cmask id='mask3' mask-type='alpha' maskUnits='userSpaceOnUse' x='76' y='204' width='22' height='18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M96 204H78C77 204 76 205 76 206V220C76 221.1 76.9 222 78 222H96C97 222 98 221 98 220V206C98 205 97 204 96 204ZM96 219.92C95.9861 219.941 95.9624 219.962 95.9426 219.979C95.9339 219.987 95.9261 219.994 95.92 220H78V206.08L78.08 206H95.91C95.9309 206.014 95.9518 206.038 95.9694 206.057C95.977 206.066 95.9839 206.074 95.99 206.08V219.92H96ZM83.5 213.5L86 216.51L89.5 212L94 218H80L83.5 213.5Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask3)'%3E%3Crect x='75' y='201' width='24' height='24' fill='%23444444'/%3E%3C/g%3E%3Cpath d='M161 205V217H149V205H161ZM161 203H149C147.9 203 147 203.9 147 205V217C147 218.1 147.9 219 149 219H161C162.1 219 163 218.1 163 217V205C163 203.9 162.1 203 161 203ZM152.5 212.67L154.19 214.93L156.67 211.83L160 216H150L152.5 212.67ZM143 207V221C143 222.1 143.9 223 145 223H159V221H145V207H143Z' fill='%23444444'/%3E%3Cmask id='mask4' mask-type='alpha' maskUnits='userSpaceOnUse' x='210' y='140' width='18' height='12'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M215.62 152H210.38L212.38 148H210V140H218V147.24L215.62 152ZM220.38 152H225.62L228 147.24V140H220V148H222.38L220.38 152ZM224.38 150H223.62L225.62 146H222V142H226V146.76L224.38 150ZM214.38 150H213.62L215.62 146H212V142H216V146.76L214.38 150Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask4)'%3E%3Crect x='207' y='134' width='24' height='24' fill='%23444444'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d' x='18' y='36' width='270' height='250' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0'/%3E%3CfeOffset dy='3'/%3E%3CfeGaussianBlur stdDeviation='15'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.0980392 0 0 0 0 0.117647 0 0 0 0 0.137255 0 0 0 0.1 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A"},e))},fo=function(e){return Object(i.createElement)("img",Object(b.a)({alt:Object(E.__)("inserter"),src:"data:image/svg+xml;charset=utf8,%3Csvg width='18' height='18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.824 0C3.97 0 0 3.97 0 8.824c0 4.853 3.97 8.824 8.824 8.824 4.853 0 8.824-3.971 8.824-8.824S13.677 0 8.824 0zM7.94 5.294v2.647H5.294v1.765h2.647v2.647h1.765V9.706h2.647V7.941H9.706V5.294H7.941zm-6.176 3.53c0 3.882 3.176 7.059 7.059 7.059 3.882 0 7.059-3.177 7.059-7.06 0-3.882-3.177-7.058-7.06-7.058-3.882 0-7.058 3.176-7.058 7.059z' fill='%234A4A4A'/%3E%3Cmask id='a' maskUnits='userSpaceOnUse' x='0' y='0' width='18' height='18'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.824 0C3.97 0 0 3.97 0 8.824c0 4.853 3.97 8.824 8.824 8.824 4.853 0 8.824-3.971 8.824-8.824S13.677 0 8.824 0zM7.94 5.294v2.647H5.294v1.765h2.647v2.647h1.765V9.706h2.647V7.941H9.706V5.294H7.941zm-6.176 3.53c0 3.882 3.176 7.059 7.059 7.059 3.882 0 7.059-3.177 7.059-7.06 0-3.882-3.177-7.058-7.06-7.058-3.882 0-7.058 3.176-7.058 7.059z' fill='%23fff'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%23444' d='M0 0h17.644v17.644H0z'/%3E%3C/g%3E%3C/svg%3E"},e))};function ho(){var e=Object(h.useSelect)((function(e){return e("core/nux").areTipsEnabled()})),t=Object(h.useDispatch)("core/nux").disableTips;return e?Object(i.createElement)(f.Guide,{className:"edit-post-welcome-guide",finishButtonText:Object(E.__)("Get started"),onFinish:t},Object(i.createElement)(f.GuidePage,{className:"edit-post-welcome-guide__page"},Object(i.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(E.__)("Welcome to the Block Editor")),Object(i.createElement)(po,{className:"edit-post-welcome-guide__image"}),Object(i.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(E.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content."))),Object(i.createElement)(f.GuidePage,{className:"edit-post-welcome-guide__page"},Object(i.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(E.__)("Make each block your own")),Object(i.createElement)(mo,{className:"edit-post-welcome-guide__image"}),Object(i.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(E.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected."))),Object(i.createElement)(f.GuidePage,{className:"edit-post-welcome-guide__page"},Object(i.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(E.__)("Get to know the Block Library")),Object(i.createElement)(Oo,{className:"edit-post-welcome-guide__image"}),Object(i.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(i.__experimentalCreateInterpolateElement)(Object(E.__)("All of the blocks available to you live in the Block Library. You’ll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:Object(i.createElement)(fo,{className:"edit-post-welcome-guide__inserter-icon"})})))):null}var Eo=function(){var e=Object(j.useViewportMatch)("small","<"),t=Object(h.useDispatch)("core/edit-post"),n=t.closePublishSidebar,o=t.togglePublishSidebar,r=Object(h.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()}})),l=r.mode,s=r.isRichEditingEnabled,u=r.editorSidebarOpened,d=r.pluginSidebarOpened,b=r.publishSidebarOpened,p=r.hasActiveMetaboxes,m=r.isSaving,O=r.hasFixedToolbar,g=Object(c.__experimentalUsePageTemplatePickerVisible)(),v=u||d||b,y=Qe()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":v,"has-fixed-toolbar":O,"has-metaboxes":p});return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Rt,null),Object(i.createElement)(Ut,null),Object(i.createElement)(a.UnsavedChangesWarning,null),Object(i.createElement)(a.AutosaveMonitor,null),Object(i.createElement)(a.LocalAutosaveMonitor,null),Object(i.createElement)(ct,null),Object(i.createElement)(f.FocusReturnProvider,null,Object(i.createElement)(Vt,{className:y,header:Object(i.createElement)(un,null),sidebar:!b&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(to,null),Object(i.createElement)(fn.Slot,null)),content:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(a.EditorNotices,null),("text"===l||!s)&&Object(i.createElement)(Ye,null),s&&"visual"===l&&Object(i.createElement)(ot,null),Object(i.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(i.createElement)(Qn,{location:"normal"}),Object(i.createElement)(Qn,{location:"advanced"})),e&&v&&Object(i.createElement)(f.ScrollLock,null)),footer:s&&"visual"===l&&Object(i.createElement)("div",{className:"edit-post-layout__footer"},Object(i.createElement)(c.BlockBreadcrumb,null)),publish:b?Object(i.createElement)(a.PostPublishPanel,{onClose:n,forceIsDirty:p,forceIsSaving:m,PrePublishExtension:bo.Slot,PostPublishExtension:co.Slot}):Object(i.createElement)("div",{className:"edit-post-toggle-publish-panel"},Object(i.createElement)(f.Button,{isDefault:!0,className:"edit-post-toggle-publish-panel__button",onClick:o,"aria-expanded":!1},Object(E.__)("Open publish panel")))}),Object(i.createElement)(St,null),Object(i.createElement)(Ht,null),Object(i.createElement)(jt,null),Object(i.createElement)(ho,null),Object(i.createElement)(f.Popover.Slot,null),Object(i.createElement)(_.PluginArea,null),g&&Object(i.createElement)(c.__experimentalPageTemplatePicker,null)))},jo=function(e){var t=e.postId;return function(e){var t=Object(h.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(He).isEditorSidebarOpened()}}),[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(h.useDispatch)(He).openGeneralSidebar;Object(i.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(He).getActiveGeneralSidebarName()}}),[e]),n=t.isSmall,o=t.activeGeneralSidebarName,r=Object(h.useDispatch)(He),c=r.openGeneralSidebar,a=r.closeGeneralSidebar,l=Object(i.useRef)(null),s=Object(i.useRef)(null);Object(i.useEffect)((function(){l.current!==n&&(l.current=n,n?(s.current=o,o&&a()):s.current&&!o&&(c(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(i.useRef)();Object(i.useEffect)((function(){n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(i.useEffect)((function(){t&&n.current&&n.current.setAttribute("href",t)}),[t])}(t),null},go=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Ge.a)(this,Object(Ue.a)(t).apply(this,arguments))).getEditorSettings=ze()(e.getEditorSettings,{maxSize:1}),e}return Object(Ze.a)(t,e),Object(Re.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,i,c,a,l){if(e=Object(I.a)({},e,{__experimentalPreferredStyleVariations:{value:c,onChange:l},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:a}),Object(m.size)(r)>0){var s=!0===e.allowedBlockTypes?Object(m.map)(i,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=m.without.apply(void 0,[s].concat(Object(B.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,c=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,m=e.preferredStyleVariations,O=e.__experimentalLocalAutosaveInterval,h=e.showInserterHelpPanel,E=e.updatePreferredStyleVariations,j=Object(p.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!r)return null;var g=this.getEditorSettings(t,n,h,o,u,d,m,O,E);return Object(i.createElement)(i.StrictMode,null,Object(i.createElement)(vt.Provider,{value:t},Object(i.createElement)(f.SlotFillProvider,null,Object(i.createElement)(f.DropZoneProvider,null,Object(i.createElement)(a.EditorProvider,Object(b.a)({settings:g,post:r,initialEdits:l,useSubRegistry:!1},j),Object(i.createElement)(a.ErrorBoundary,{onError:s},Object(i.createElement)(jo,{postId:c}),Object(i.createElement)(Eo,null),Object(i.createElement)(f.KeyboardShortcuts,{shortcuts:qe})),Object(i.createElement)(a.PostLockedModal,null))))))}}]),t}(i.Component),vo=Object(j.compose)([Object(h.withSelect)((function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),i=r.isFeatureActive,c=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:i("showInserterHelpPanel"),hasFixedToolbar:i("fixedToolbar"),focusMode:i("focusMode"),post:a("postType",o,n),preferredStyleVariations:c("preferredStyleVariations"),hiddenBlockTypes:c("hiddenBlockTypes"),blockTypes:l(),__experimentalLocalAutosaveInterval:c("localAutosaveInterval")}})),Object(h.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(go),_o=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(m.difference)(n,o).length);var n,o},yo=function(e){var t=e.allowedBlocks,n=e.icon,o=e.label,r=e.onClick,c=e.small,a=e.role;return Object(i.createElement)(nt,null,(function(e){var l=e.selectedBlocks,s=e.onClose;return _o(l,t)?Object(i.createElement)(f.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(j.compose)(r,s),icon:n||"admin-plugins",label:c?o:void 0,role:a},!c&&o):null}))},So=Object(j.compose)(Object(_.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,n=void 0===t?m.noop:t,o=Object(p.a)(e,["onClick"]);return Object(i.createElement)(Xt,null,(function(e){return Object(i.createElement)(f.MenuItem,Object(b.a)({},o,{onClick:Object(j.compose)(n,e.onClose)}))}))}));var Co=Object(j.compose)(Object(_.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,i=o.isPluginItemPinned;return{isActive:r()===n,isPinned:i(n)}})),Object(h.withDispatch)((function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),i=r.closeGeneralSidebar,c=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?i():c(o)}}})))((function(e){var t=e.children,n=e.className,o=e.icon,r=e.isActive,c=e.isPinnable,a=void 0===c||c,l=e.isPinned,s=e.sidebarName,u=e.title,d=e.togglePin,b=e.toggleSidebar;return Object(i.createElement)(i.Fragment,null,a&&Object(i.createElement)(ln,null,l&&Object(i.createElement)(f.IconButton,{icon:o,label:u,onClick:b,isToggled:r,"aria-expanded":r})),Object(i.createElement)(fn,{name:s},Object(i.createElement)(hn,{closeLabel:Object(E.__)("Close plugin")},Object(i.createElement)("strong",null,u),a&&Object(i.createElement)(f.IconButton,{icon:l?"star-filled":"star-empty",label:l?Object(E.__)("Unpin from toolbar"):Object(E.__)("Pin to toolbar"),onClick:d,isToggled:l,"aria-expanded":l})),Object(i.createElement)(f.Panel,{className:n},t)))})),ko=Object(j.compose)(Object(_.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"),i=r.closeGeneralSidebar,c=r.openGeneralSidebar;return{onClick:n?i:function(){return c(o)}}})))((function(e){var t=e.children,n=e.icon,o=e.isSelected,r=e.onClick;return Object(i.createElement)(So,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:r},t)}));function wo(e,t,n,o,r){Object(i.unmountComponentAtNode)(n);var c=wo.bind(null,e,t,n,o,r);Object(i.render)(Object(i.createElement)(vo,{settings:o,onError:c,postId:t,postType:e,initialEdits:r,recovery:!0}),n)}function Po(e,t,n,o,r){var c=document.getElementById(e),a=wo.bind(null,t,n,c,o,r);Object(s.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."),-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(i.render)(Object(i.createElement)(vo,{settings:o,onError:a,postId:n,postType:t,initialEdits:r}),c)}n.d(t,"reinitializeEditor",(function(){return wo})),n.d(t,"initializeEditor",(function(){return Po})),n.d(t,"PluginBlockSettingsMenuItem",(function(){return yo})),n.d(t,"PluginDocumentSettingPanel",(function(){return eo})),n.d(t,"PluginMoreMenuItem",(function(){return So})),n.d(t,"PluginPostPublishPanel",(function(){return co})),n.d(t,"PluginPostStatusInfo",(function(){return Tn})),n.d(t,"PluginPrePublishPanel",(function(){return bo})),n.d(t,"PluginSidebar",(function(){return Co})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return ko}))},37:function(e,t){!function(){e.exports=this.wp.apiFetch}()},38:function(e,t,n){"use strict";var o,r;function i(e){return[e]}function c(){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:c()}function u(){var n,o,r,i,c,s=arguments.length;for(i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];for(c=t.apply(null,i),(n=l(c)).isUniqueByDependants||(n.lastDependants&&!a(c,n.lastDependants,0)&&n.clear(),n.lastDependants=c),o=n.head;o;){if(a(o.args,i,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,i)},i[0]=null,o.args=i,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=i),l=r?function(e){var t,r,i,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):(i=new WeakMap,s.set(r,i),s=i)}return s.has(o)||((a=c()).isUniqueByDependants=u,s.set(o,a)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.d(t,"a",(function(){return o}))},42:function(e,t,n){e.exports=function(e,t){var n,o,r,i=0;function c(){var t,c,a=o,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c<l;c++)if(a.args[c]!==arguments[c]){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),c=0;c<l;c++)t[c]=arguments[c];return a={args:t,val:e.apply(null,t)},o?(o.prev=a,a.next=o):r=a,i===n?(r=r.prev).next=null:i++,o=a,a.val}return t&&t.maxSize&&(n=t.maxSize),c.clear=function(){o=null,r=null,i=0},c}},44:function(e,t){!function(){e.exports=this.wp.a11y}()},49:function(e,t){!function(){e.exports=this.wp.plugins}()},5:function(e,t){!function(){e.exports=this.wp.blockEditor}()},50:function(e,t){!function(){e.exports=this.wp.viewport}()},6: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}))},62:function(e,t){!function(){e.exports=this.wp.coreData}()},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(9);function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(Object(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}},70: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,i,c=n[o.type],a=t(o);if(c)for(r=0;r<c.length;r++)(i=c[r](o,e))&&e.dispatch(i);return a}}}).effects=n,t}},8:function(e,t){!function(){e.exports=this.wp.compose}()},9: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}))},98:function(e,t){!function(){e.exports=this.wp.mediaUtils}()}}); |