mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 15:16:29 +01:00
cf023b82bd
This updates the 5.2 branch to support the latest LTS version of NodeJS (currently 14.x), allowing the same version to be used across all WordPress branches that receive security updates as a courtesy. In addition to backporting the package updates that happened after branching 5.2, dependencies that were removed in future releases have also been updated to their latest versions. Props desrosj, dd32, netweb, jorbin, whyisjake. Merges [45321,45765,45826,45875,46403-46404,46408-46409,47404,47867,47872-47873,48213,48705,49636,49933,49937,49939-49940,49983,49989,50017,50126,50176,50185] to the 5.2 branch. See #52341. Built from https://develop.svn.wordpress.org/branches/5.2@50191 git-svn-id: http://core.svn.wordpress.org/branches/5.2@49869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
6 lines
81 KiB
JavaScript
6 lines
81 KiB
JavaScript
this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=360)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return o}))},11:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(32),r=n(3);function i(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!=typeof t?Object(r.a)(e):t}},12: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}))},13: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}))},133:function(e,t){!function(){e.exports=this.wp.notices}()},14:function(e,t){!function(){e.exports=this.wp.blocks}()},15: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}))},16: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)}()},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(34);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")}()}},18:function(e,t){!function(){e.exports=this.wp.keycodes}()},19: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}))},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,n){"use strict";function o(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",(function(){return o}))},22:function(e,t){!function(){e.exports=this.wp.editor}()},226: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.hooks}()},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(37);var r=n(38);function i(e,t){return Object(o.a)(e)||function(e,t){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)()}},3: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}))},30: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}},32:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}n.d(t,"a",(function(){return r}))},33:function(e,t){!function(){e.exports=this.wp.apiFetch}()},34: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}))},360:function(e,t,n){"use strict";n.r(t),n.d(t,"reinitializeEditor",(function(){return co})),n.d(t,"initializeEditor",(function(){return ao})),n.d(t,"PluginBlockSettingsMenuItem",(function(){return no})),n.d(t,"PluginMoreMenuItem",(function(){return oo})),n.d(t,"PluginPostPublishPanel",(function(){return Wn})),n.d(t,"PluginPostStatusInfo",(function(){return kn})),n.d(t,"PluginPrePublishPanel",(function(){return Xn})),n.d(t,"PluginSidebar",(function(){return ro})),n.d(t,"PluginSidebarMoreMenuItem",(function(){return io}));var o={};n.r(o),n.d(o,"openGeneralSidebar",(function(){return te})),n.d(o,"closeGeneralSidebar",(function(){return ne})),n.d(o,"openModal",(function(){return oe})),n.d(o,"closeModal",(function(){return re})),n.d(o,"openPublishSidebar",(function(){return ie})),n.d(o,"closePublishSidebar",(function(){return ce})),n.d(o,"togglePublishSidebar",(function(){return ae})),n.d(o,"toggleEditorPanelEnabled",(function(){return le})),n.d(o,"toggleEditorPanelOpened",(function(){return se})),n.d(o,"removeEditorPanel",(function(){return ue})),n.d(o,"toggleFeature",(function(){return de})),n.d(o,"switchEditorMode",(function(){return be})),n.d(o,"togglePinnedPluginItem",(function(){return pe})),n.d(o,"hideBlockTypes",(function(){return me})),n.d(o,"showBlockTypes",(function(){return Oe})),n.d(o,"setAvailableMetaBoxesPerLocation",(function(){return fe})),n.d(o,"requestMetaBoxUpdates",(function(){return je})),n.d(o,"metaBoxUpdatesSuccess",(function(){return he}));var r={};n.r(r),n.d(r,"getEditorMode",(function(){return Ee})),n.d(r,"isEditorSidebarOpened",(function(){return ve})),n.d(r,"isPluginSidebarOpened",(function(){return ye})),n.d(r,"getActiveGeneralSidebarName",(function(){return _e})),n.d(r,"getPreferences",(function(){return Se})),n.d(r,"getPreference",(function(){return ke})),n.d(r,"isPublishSidebarOpened",(function(){return Pe})),n.d(r,"isEditorPanelRemoved",(function(){return we})),n.d(r,"isEditorPanelEnabled",(function(){return Ce})),n.d(r,"isEditorPanelOpened",(function(){return Te})),n.d(r,"isModalActive",(function(){return xe})),n.d(r,"isFeatureActive",(function(){return Me})),n.d(r,"isPluginItemPinned",(function(){return Be})),n.d(r,"getActiveMetaBoxLocations",(function(){return Ne})),n.d(r,"isMetaBoxLocationVisible",(function(){return Ae})),n.d(r,"isMetaBoxLocationActive",(function(){return Ie})),n.d(r,"getMetaBoxesPerLocation",(function(){return Le})),n.d(r,"getAllMetaBoxes",(function(){return De})),n.d(r,"hasMetaBoxes",(function(){return Fe})),n.d(r,"isSavingMetaBoxes",(function(){return Re}));var i=n(0),c=(n(72),n(8)),a=n(22),l=n(60),s=n(40),u=(n(133),n(226)),d=n(5),b=n(26),p=n(10),m=n(9),O=n(11),f=n(12),j=n(13),h=n(3),g=n(2),E=n(1),v=window.wp,y=function(e){return Object(g.pick)(e,["sizes","mime","type","subtype","id","url","alt","link","caption"])},_=function(e){return v.media.query({order:"ASC",orderby:"post__in",post__in:e,posts_per_page:-1,query:!0,type:"image"})},S=function(e){function t(e){var n,o=e.allowedTypes,r=e.multiple,i=void 0!==r&&r,c=e.gallery,a=void 0!==c&&c,l=e.title,s=void 0===l?Object(E.__)("Select or Upload Media"):l,u=e.modalClass;if(Object(p.a)(this,t),(n=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).openModal=n.openModal.bind(Object(h.a)(Object(h.a)(n))),n.onOpen=n.onOpen.bind(Object(h.a)(Object(h.a)(n))),n.onSelect=n.onSelect.bind(Object(h.a)(Object(h.a)(n))),n.onUpdate=n.onUpdate.bind(Object(h.a)(Object(h.a)(n))),n.onClose=n.onClose.bind(Object(h.a)(Object(h.a)(n))),a)n.buildAndSetGalleryFrame();else{var d={title:s,button:{text:Object(E.__)("Select")},multiple:i};o&&(d.library={type:o}),n.frame=v.media(d)}return u&&n.frame.$el.addClass(u),n.initializeListeners(),n}return Object(j.a)(t,e),Object(m.a)(t,[{key:"initializeListeners",value:function(){this.frame.on("select",this.onSelect),this.frame.on("update",this.onUpdate),this.frame.on("open",this.onOpen),this.frame.on("close",this.onClose)}},{key:"buildAndSetGalleryFrame",value:function(){var e=this.props,t=e.allowedTypes,n=e.multiple,o=void 0!==n&&n,r=e.value,i=void 0===r?null:r;if(i!==this.lastGalleryValue){this.lastGalleryValue=i,this.frame&&this.frame.remove();var c=i?"gallery-edit":"gallery";this.GalleryDetailsMediaFrame||(this.GalleryDetailsMediaFrame=v.media.view.MediaFrame.Post.extend({createStates:function(){this.states.add([new v.media.controller.Library({id:"gallery",title:v.media.view.l10n.createGalleryTitle,priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!1,library:v.media.query(Object(g.defaults)({type:"image"},this.options.library))}),new v.media.controller.GalleryEdit({library:this.options.selection,editing:this.options.editing,menu:"gallery",displaySettings:!1,multiple:!0}),new v.media.controller.GalleryAdd])}}));var a=_(i),l=new v.media.model.Selection(a.models,{props:a.props.toJSON(),multiple:o});this.frame=new this.GalleryDetailsMediaFrame({mimeType:t,state:c,multiple:o,selection:l,editing:!!i}),v.media.frame=this.frame,this.initializeListeners()}}},{key:"componentWillUnmount",value:function(){this.frame.remove()}},{key:"onUpdate",value:function(e){var t=this.props,n=t.onSelect,o=t.multiple,r=void 0!==o&&o,i=this.frame.state(),c=e||i.get("selection");c&&c.models.length&&n(r?c.models.map((function(e){return y(e.toJSON())})):y(c.models[0].toJSON()))}},{key:"onSelect",value:function(){var e=this.props,t=e.onSelect,n=e.multiple,o=void 0!==n&&n,r=this.frame.state().get("selection").toJSON();t(o?r:r[0])}},{key:"onOpen",value:function(){if(this.updateCollection(),this.props.value){if(!this.props.gallery){var e=this.frame.state().get("selection");Object(g.castArray)(this.props.value).forEach((function(t){e.add(v.media.attachment(t))}))}_(Object(g.castArray)(this.props.value)).more()}}},{key:"onClose",value:function(){var e=this.props.onClose;e&&e()}},{key:"updateCollection",value:function(){var e=this.frame.content.get();if(e&&e.collection){var t=e.collection;t.toArray().forEach((function(e){return e.trigger("destroy",e)})),t.mirroring._hasMore=!0,t.more()}}},{key:"openModal",value:function(){this.props.gallery&&this.props.value&&this.props.value.length>0&&this.buildAndSetGalleryFrame(),this.frame.open()}},{key:"render",value:function(){return this.props.render({open:this.openModal})}}]),t}(i.Component);Object(b.addFilter)("editor.MediaUpload","core/edit-post/components/media-upload/replace-media-upload",(function(){return S}));var k=n(19),P=n(21),w=n(14),C=n(4),T=n(6),x=Object(T.compose)(Object(d.withSelect)((function(e,t){if(Object(w.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(g.find)(n,(function(e){var n=e.name;return t.name===n}));return{originalBlockClientId:o&&o.clientId!==t.clientId&&o.clientId}})),Object(d.withDispatch)((function(e,t){var n=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(n)}}}))),M=Object(T.createHigherOrderComponent)((function(e){return x((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(w.getBlockType)(r.name),l=function(e){var t=Object(w.findTransform)(Object(w.getBlockTransforms)("to",e),(function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length}));if(!t)return null;return Object(w.getBlockType)(t.blocks[0])}(r.name);return[Object(i.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(i.createElement)(e,Object(k.a)({key:"block-edit"},r))),Object(i.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(i.createElement)(C.Button,{key:"find-original",isLarge:!0,onClick:o},Object(E.__)("Find original")),Object(i.createElement)(C.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(E.__)("Remove")),l&&Object(i.createElement)(C.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(w.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(b.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",M);var B=n(63),N=n(25);var A=Object(T.compose)(Object(d.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(T.withState)({hasCopied:!1}))((function(e){var t=e.editedPostContent,n=e.hasCopied,o=e.setState;return Object(i.createElement)(C.ClipboardButton,{text:t,className:"components-menu-item__button",onCopy:function(){return o({hasCopied:!0})},onFinishCopy:function(){return o({hasCopied:!1})}},n?Object(E.__)("Copied!"):Object(E.__)("Copy All Content"))}));var I=Object(d.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.onSelect,n=e.openModal;return Object(i.createElement)(C.MenuItem,{onClick:Object(g.flow)([t,function(){return n("edit-post/manage-blocks")}])},Object(E.__)("Block Manager"))})),L=n(18);var D=Object(d.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal,n=e.onSelect;return Object(i.createElement)(C.MenuItem,{onClick:function(){n(),t("edit-post/keyboard-shortcut-help")},shortcut:L.displayShortcut.access("h")},Object(E.__)("Keyboard Shortcuts"))})),F=Object(C.createSlotFill)("ToolsMoreMenuGroup"),R=F.Fill,G=F.Slot;R.Slot=function(e){var t=e.fillProps;return Object(i.createElement)(G,{fillProps:t},(function(e){return!Object(g.isEmpty)(e)&&Object(i.createElement)(C.MenuGroup,{label:Object(E.__)("Tools")},e)}))};var U=R;Object(B.registerPlugin)("edit-post",{render:function(){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(U,null,(function(e){var t=e.onClose;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(I,{onSelect:t}),Object(i.createElement)(C.MenuItem,{role:"menuitem",href:Object(N.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(E.__)("Manage All Reusable Blocks")),Object(i.createElement)(D,{onSelect:t}),Object(i.createElement)(A,null))})))}});var V,H=n(17),W=n(15),q=n(7),K=Object(g.flow)([d.combineReducers,(V={editorMode:"visual",isGeneralSidebarDismissed:!1,panels:{"post-status":{opened:!0}},features:{fixedToolbar:!1},pinnedPluginItems:{},hiddenBlockTypes:[]},function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V,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(q.a)({},e,Object(W.a)({},n,Object(q.a)({},e[n],{enabled:!Object(g.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(g.get)(e,[o,"opened"],!1);return Object(q.a)({},e,Object(W.a)({},o,Object(q.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(q.a)({},e,Object(W.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(q.a)({},e,Object(W.a)({},t.pluginName,!Object(g.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return g.without.apply(void 0,[e].concat(Object(H.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(g.union)(e,t.blockNames)}return e}});var z=Object(d.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),Q=Object(d.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit-post/document",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:z,preferences:K,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(g.includes)(e,t.panelName))return[].concat(Object(H.a)(e),[t.panelName])}return e}}),X=n(70),Y=n.n(X),J=n(28),$=n(48),Z=n(33),ee=n.n(Z);function te(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function ne(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function oe(e){return{type:"OPEN_MODAL",name:e}}function re(){return{type:"CLOSE_MODAL"}}function ie(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ce(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function ae(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function le(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function se(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function ue(e){return{type:"REMOVE_PANEL",panelName:e}}function de(e){return{type:"TOGGLE_FEATURE",feature:e}}function be(e){return{type:"SWITCH_MODE",mode:e}}function pe(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function me(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(g.castArray)(e)}}function Oe(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(g.castArray)(e)}}function fe(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function je(){return{type:"REQUEST_META_BOX_UPDATES"}}function he(){return{type:"META_BOX_UPDATES_SUCCESS"}}var ge=n(30);function Ee(e){return ke(e,"editorMode","visual")}function ve(e){var t=_e(e);return Object(g.includes)(["edit-post/document","edit-post/block"],t)}function ye(e){return!!_e(e)&&!ve(e)}function _e(e){return ke(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function Se(e){return e.preferences}function ke(e,t,n){var o=Se(e)[t];return void 0===o?n:o}function Pe(e){return e.publishSidebarActive}function we(e,t){return Object(g.includes)(e.removedPanels,t)}function Ce(e,t){var n=ke(e,"panels");return!we(e,t)&&Object(g.get)(n,[t,"enabled"],!0)}function Te(e,t){var n=ke(e,"panels");return!0===n[t]||Object(g.get)(n,[t,"opened"],!1)}function xe(e,t){return e.activeModal===t}function Me(e,t){return!!e.preferences.features[t]}function Be(e,t){var n=ke(e,"pinnedPluginItems",{});return Object(g.get)(n,[t],!0)}var Ne=Object(ge.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Ie(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Ae(e,t){return Ie(e,t)&&Object(g.some)(Le(e,t),(function(t){var n=t.id;return Ce(e,"meta-box-".concat(n))}))}function Ie(e,t){var n=Le(e,t);return!!n&&0!==n.length}function Le(e,t){return e.metaBoxes.locations[t]}var De=Object(ge.a)((function(e){return Object(g.flatten)(Object(g.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Fe(e){return Ne(e).length>0}function Re(e){return e.metaBoxes.isSaving}var Ge=function(e,t){var n=e();return function(){var o=e();o!==n&&(n=o,t(o))}},Ue={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(d.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var n=Object(d.select)("core/editor").isSavingPost(),o=Object(d.select)("core/editor").isAutosavingPost();Object(d.subscribe)((function(){var e=Object(d.select)("core/editor").isSavingPost(),r=Object(d.select)("core/editor").isAutosavingPost(),i=Object(d.select)("core/edit-post").hasMetaBoxes()&&n&&!e&&!o;n=e,o=r,i&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})}))},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var n=t.getState(),o=Object(d.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],["post_author",o.author]].filter(Boolean),i=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(H.a)(Ne(n).map((function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))})))),c=Object(g.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(J.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(J.a)(e,2),n=t[0],o=t[1];return c.append(n,o)})),ee()({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(d.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object($.speak)(t,"assertive")},INIT:function(e,t){Object(d.subscribe)(Ge((function(){return!!Object(d.select)("core/block-editor").getBlockSelectionStart()}),(function(e){Object(d.select)("core/edit-post").isEditorSidebarOpened()&&(e?t.dispatch(te("edit-post/block")):t.dispatch(te("edit-post/document")))})));var n,o=function(){return Object(d.select)("core/viewport").isViewportMatch("< medium")},r=(n=null,function(e){e?(n=_e(t.getState()))&&t.dispatch({type:"CLOSE_GENERAL_SIDEBAR"}):n&&!_e(t.getState())&&t.dispatch(te(n))});r(o()),Object(d.subscribe)(Ge(o,r));Object(d.subscribe)(Ge((function(){return Object(d.select)("core/editor").getCurrentPost().link}),(function(e){if(e){var t=document.querySelector("#wp-admin-bar-view a");t&&t.setAttribute("href",e)}})))}};var Ve=function(e){var t,n=[Y()(Ue)],o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},r={getState:e.getState,dispatch:function(){return o.apply(void 0,arguments)}};return t=n.map((function(e){return e(r)})),o=g.flowRight.apply(void 0,Object(H.a)(t))(e.dispatch),e.dispatch=o,e},He=Object(d.registerStore)("core/edit-post",{reducer:Q,actions:o,selectors:r,persist:["preferences"]});Ve(He),He.dispatch({type:"INIT"});var We=n(41),qe=n.n(We),Ke={"t a l e s o f g u t e n b e r g":function(e){(document.activeElement.classList.contains("edit-post-visual-editor")||document.activeElement===document.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},ze=n(16),Qe=n.n(ze);var Xe=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(j.a)(t,e),Object(m.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.postId,o=t.postStatus,r=t.postType,i=this.state.historyId;"trash"!==o?n===e.postId&&n===i||"auto-draft"===o||this.setBrowserURL(n):this.setTrashURL(n,r)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(N.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(N.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),t}(i.Component),Ye=Object(d.withSelect)((function(e){var t=(0,e("core/editor").getCurrentPost)();return{postId:t.id,postStatus:t.status,postType:t.type}}))(Xe),Je={toggleEditorMode:{raw:L.rawShortcut.secondary("m"),display:L.displayShortcut.secondary("m")},toggleSidebar:{raw:L.rawShortcut.primaryShift(","),display:L.displayShortcut.primaryShift(","),ariaLabel:L.shortcutAriaLabel.primaryShift(",")}},$e=[{value:"visual",label:Object(E.__)("Visual Editor")},{value:"text",label:Object(E.__)("Code Editor")}];var Ze=Object(T.compose)([Object(d.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,mode:e("core/edit-post").getEditorMode()}})),Object(T.ifCondition)((function(e){return e.isRichEditingEnabled})),Object(d.withDispatch)((function(e,t){return{onSwitch:function(n){e("core/edit-post").switchEditorMode(n),t.onSelect(n)}}}))])((function(e){var t=e.onSwitch,n=e.mode,o=$e.map((function(e){return e.value!==n?Object(q.a)({},e,{shortcut:Je.toggleEditorMode.display}):e}));return Object(i.createElement)(C.MenuGroup,{label:Object(E.__)("Editor")},Object(i.createElement)(C.MenuItemsChoice,{choices:o,value:n,onSelect:t}))})),et=Object(C.createSlotFill)("PluginsMoreMenuGroup"),tt=et.Fill,nt=et.Slot;tt.Slot=function(e){var t=e.fillProps;return Object(i.createElement)(nt,{fillProps:t},(function(e){return!Object(g.isEmpty)(e)&&Object(i.createElement)(C.MenuGroup,{label:Object(E.__)("Plugins")},e)}))};var ot=tt;var rt=Object(d.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal,n=e.onSelect;return Object(i.createElement)(C.MenuItem,{onClick:function(){n(),t("edit-post/options")}},Object(E.__)("Options"))}));var it=Object(T.compose)([Object(d.withSelect)((function(e,t){var n=t.feature;return{isActive:e("core/edit-post").isFeatureActive(n)}})),Object(d.withDispatch)((function(e,t){return{onToggle:function(){e("core/edit-post").toggleFeature(t.feature),t.onToggle()}}})),C.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)(C.MenuItem,{icon:n&&"yes",isSelected:n,onClick:Object(g.flow)(t,(function(){l(n?a||Object(E.__)("Feature deactivated"):c||Object(E.__)("Feature activated"))})),role:"menuitemcheckbox",info:r},o)}));var ct=Object(s.ifViewportMatches)("medium")((function(e){var t=e.onClose;return Object(i.createElement)(C.MenuGroup,{label:Object(E._x)("View","noun")},Object(i.createElement)(it,{feature:"fixedToolbar",label:Object(E.__)("Top Toolbar"),info:Object(E.__)("Access all block and document tools in a single place"),onToggle:t,messageActivated:Object(E.__)("Top toolbar activated"),messageDeactivated:Object(E.__)("Top toolbar deactivated")}),Object(i.createElement)(it,{feature:"focusMode",label:Object(E.__)("Spotlight Mode"),info:Object(E.__)("Focus on one block at a time"),onToggle:t,messageActivated:Object(E.__)("Spotlight mode activated"),messageDeactivated:Object(E.__)("Spotlight mode deactivated")}),Object(i.createElement)(it,{feature:"fullscreenMode",label:Object(E.__)("Fullscreen Mode"),info:Object(E.__)("Work without distraction"),onToggle:t,messageActivated:Object(E.__)("Fullscreen mode activated"),messageDeactivated:Object(E.__)("Fullscreen mode deactivated")}))})),at=Object(E.__)("Show more tools & options"),lt=Object(E.__)("Hide more tools & options"),st=function(){return Object(i.createElement)(C.Dropdown,{className:"edit-post-more-menu",contentClassName:"edit-post-more-menu__content",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(i.createElement)(C.IconButton,{icon:"ellipsis",label:t?lt:at,labelPosition:"bottom",onClick:n,"aria-expanded":t})},renderContent:function(e){var t=e.onClose;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(ct,{onClose:t}),Object(i.createElement)(Ze,{onSelect:t}),Object(i.createElement)(ot.Slot,{fillProps:{onClose:t}}),Object(i.createElement)(U.Slot,{fillProps:{onClose:t}}),Object(i.createElement)(C.MenuGroup,null,Object(i.createElement)(rt,{onSelect:t})))}})};var ut=Object(d.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)(C.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(i.createElement)(C.IconButton,{icon:"arrow-left-alt2",href:Object(N.addQueryArgs)("edit.php",{post_type:n.slug}),label:Object(g.get)(n,["labels","view_items"],Object(E.__)("Back"))})):null}));var dt=Object(T.compose)([Object(d.withSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,isTextModeEnabled:"text"===e("core/edit-post").getEditorMode()}})),Object(s.withViewportMatch)({isLargeViewport:"medium"})])((function(e){var t=e.hasFixedToolbar,n=e.isLargeViewport,o=e.showInserter,r=e.isTextModeEnabled,s=t?Object(E.__)("Document and block tools"):Object(E.__)("Document tools");return Object(i.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":s},Object(i.createElement)(ut,null),Object(i.createElement)("div",null,Object(i.createElement)(c.Inserter,{disabled:!o,position:"bottom right"}),Object(i.createElement)(l.DotTip,{tipId:"core/editor.inserter"},Object(E.__)("Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks available for all kinds of content: you can insert text, headings, images, lists, and lots more!"))),Object(i.createElement)(a.EditorHistoryUndo,null),Object(i.createElement)(a.EditorHistoryRedo,null),Object(i.createElement)(a.TableOfContents,{hasOutlineItemsDisabled:r}),Object(i.createElement)(c.BlockNavigationDropdown,{isDisabled:r}),t&&n&&Object(i.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(i.createElement)(c.BlockToolbar,null)))})),bt=Object(C.createSlotFill)("PinnedPlugins"),pt=bt.Fill,mt=bt.Slot;pt.Slot=function(e){return Object(i.createElement)(mt,e,(function(e){return!Object(g.isEmpty)(e)&&Object(i.createElement)("div",{className:"edit-post-pinned-plugins"},e)}))};var Ot=pt;var ft=Object(T.compose)(Object(d.withSelect)((function(e){return{hasPublishAction:Object(g.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(d.withDispatch)((function(e){return{togglePublishSidebar:e("core/edit-post").togglePublishSidebar}})),Object(s.withViewportMatch)({isLessThanMediumViewport:"< medium"}))((function(e){var t,n=e.forceIsDirty,o=e.forceIsSaving,r=e.hasPublishAction,c=e.isBeingScheduled,l=e.isLessThanMediumViewport,s=e.isPending,u=e.isPublished,d=e.isPublishSidebarEnabled,b=e.isPublishSidebarOpened,p=e.isScheduled,m=e.togglePublishSidebar;return t=u||p&&c||s&&!r&&!l?"button":l||d?"toggle":"button",Object(i.createElement)(a.PostPublishButton,{forceIsDirty:n,forceIsSaving:o,isOpen:b,isToggle:"toggle"===t,onToggle:m})}));var jt=Object(T.compose)(Object(d.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(d.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,s=e.openGeneralSidebar,u=o?t:s;return Object(i.createElement)("div",{role:"region","aria-label":Object(E.__)("Editor top bar"),className:"edit-post-header",tabIndex:"-1"},Object(i.createElement)(dt,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)(ft,{forceIsDirty:n,forceIsSaving:c}),Object(i.createElement)("div",null,Object(i.createElement)(C.IconButton,{icon:"admin-generic",label:Object(E.__)("Settings"),onClick:u,isToggled:o,"aria-expanded":o,shortcut:Je.toggleSidebar}),Object(i.createElement)(l.DotTip,{tipId:"core/editor.settings"},Object(E.__)("You’ll find more settings for your page and blocks in the sidebar. Click the cog icon to toggle the sidebar open and closed."))),Object(i.createElement)(Ot.Slot,null),Object(i.createElement)(st,null)))}));var ht=Object(T.compose)(Object(d.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(d.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)(C.IconButton,{onClick:t,icon:"no-alt",shortcut:L.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)))}));var gt=Object(T.compose)(Object(d.withSelect)((function(e){return{areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}})),Object(d.withDispatch)((function(e){return{openEditorSidebar:function(){return e("core/edit-post").openGeneralSidebar("edit-post/block")},closeSidebar:e("core/edit-post").closeGeneralSidebar}})),C.withSpokenMessages)((function(e){var t=e.areAdvancedSettingsOpened,n=e.closeSidebar,o=e.openEditorSidebar,r=e.onClick,c=void 0===r?g.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)(C.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(g.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:Je.toggleSidebar},!l&&u)})),Et=Object(C.createSlotFill)("PluginBlockSettingsMenuGroup"),vt=Et.Fill,yt=Et.Slot;vt.Slot=Object(d.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(g.map)(n,(function(e){return e.name})),Object(i.createElement)(yt,{fillProps:Object(q.a)({},t,{selectedBlocks:n})},(function(e){return!Object(g.isEmpty)(e)&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",{className:"editor-block-settings-menu__separator"}),e)}))}));var _t=vt;var St=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.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._BlockSettingsMenuFirstItem,null,(function(e){var t=e.onClose;return Object(i.createElement)(gt,{onClick:t})})),Object(i.createElement)(c._BlockSettingsMenuPluginsExtension,null,(function(e){var t=e.clientIds,n=e.onClose;return Object(i.createElement)(_t.Slot,{fillProps:{clientIds:t,onClose:n}})})))},kt=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).toggleMode=e.toggleMode.bind(Object(h.a)(Object(h.a)(e))),e.toggleSidebar=e.toggleSidebar.bind(Object(h.a)(Object(h.a)(e))),e}return Object(j.a)(t,e),Object(m.a)(t,[{key:"toggleMode",value:function(){var e=this.props,t=e.mode,n=e.switchMode;e.isRichEditingEnabled&&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)(C.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(e={},Object(W.a)(e,Je.toggleEditorMode.raw,this.toggleMode),Object(W.a)(e,Je.toggleSidebar.raw,this.toggleSidebar),e)})}}]),t}(i.Component),Pt=Object(T.compose)([Object(d.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,mode:e("core/edit-post").getEditorMode(),isEditorSidebarOpen:e("core/edit-post").isEditorSidebarOpened()}})),Object(d.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}}))])(kt),wt=L.displayShortcutList.primary,Ct=L.displayShortcutList.primaryShift,Tt=L.displayShortcutList.primaryAlt,xt=L.displayShortcutList.secondary,Mt=L.displayShortcutList.access,Bt=L.displayShortcutList.ctrl,Nt=L.displayShortcutList.alt,At=L.displayShortcutList.ctrlShift,It=[{title:Object(E.__)("Global shortcuts"),shortcuts:[{keyCombination:Mt("h"),description:Object(E.__)("Display this help.")},{keyCombination:wt("s"),description:Object(E.__)("Save your changes.")},{keyCombination:wt("z"),description:Object(E.__)("Undo your last changes.")},{keyCombination:Ct("z"),description:Object(E.__)("Redo your last undo.")},{keyCombination:Ct(","),description:Object(E.__)("Show or hide the settings sidebar."),ariaLabel:L.shortcutAriaLabel.primaryShift(",")},{keyCombination:Mt("o"),description:Object(E.__)("Open the block navigation menu.")},{keyCombination:Bt("`"),description:Object(E.__)("Navigate to the next part of the editor."),ariaLabel:L.shortcutAriaLabel.ctrl("`")},{keyCombination:At("`"),description:Object(E.__)("Navigate to the previous part of the editor."),ariaLabel:L.shortcutAriaLabel.ctrlShift("`")},{keyCombination:Mt("n"),description:Object(E.__)("Navigate to the next part of the editor (alternative).")},{keyCombination:Mt("p"),description:Object(E.__)("Navigate to the previous part of the editor (alternative).")},{keyCombination:Nt("F10"),description:Object(E.__)("Navigate to the nearest toolbar.")},{keyCombination:xt("m"),description:Object(E.__)("Switch between Visual Editor and Code Editor.")}]},{title:Object(E.__)("Selection shortcuts"),shortcuts:[{keyCombination:wt("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:Ct("d"),description:Object(E.__)("Duplicate the selected block(s).")},{keyCombination:Mt("z"),description:Object(E.__)("Remove the selected block(s).")},{keyCombination:Tt("t"),description:Object(E.__)("Insert a new block before the selected block(s).")},{keyCombination:Tt("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:wt("b"),description:Object(E.__)("Make the selected text bold.")},{keyCombination:wt("i"),description:Object(E.__)("Make the selected text italic.")},{keyCombination:wt("u"),description:Object(E.__)("Underline the selected text.")},{keyCombination:wt("k"),description:Object(E.__)("Convert the selected text into a link.")},{keyCombination:Ct("k"),description:Object(E.__)("Remove a link.")},{keyCombination:Mt("d"),description:Object(E.__)("Add a strikethrough to the selected text.")},{keyCombination:Mt("x"),description:Object(E.__)("Display the selected text in a monospaced font.")}]}],Lt="edit-post/keyboard-shortcut-help",Dt=function(e){var t=e.shortcuts;return Object(i.createElement)("dl",{className:"edit-post-keyboard-shortcut-help__shortcut-list"},t.map((function(e,t){var n=e.keyCombination,o=e.description,r=e.ariaLabel;return Object(i.createElement)("div",{className:"edit-post-keyboard-shortcut-help__shortcut",key:t},Object(i.createElement)("dt",{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(g.castArray)(n)))),Object(i.createElement)("dd",{className:"edit-post-keyboard-shortcut-help__shortcut-description"},o))})))},Ft=function(e){var t=e.title,n=e.shortcuts;return Object(i.createElement)("section",{className:"edit-post-keyboard-shortcut-help__section"},Object(i.createElement)("h2",{className:"edit-post-keyboard-shortcut-help__section-title"},t),Object(i.createElement)(Dt,{shortcuts:n}))};var Rt=Object(T.compose)([Object(d.withSelect)((function(e){return{isModalActive:e("core/edit-post").isModalActive(Lt)}})),Object(d.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(Lt)}}}))])((function(e){var t=e.isModalActive,n=e.toggleModal;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(C.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(W.a)({},L.rawShortcut.access("h"),n)}),t&&Object(i.createElement)(C.Modal,{className:"edit-post-keyboard-shortcut-help",title:Object(E.__)("Keyboard Shortcuts"),closeLabel:Object(E.__)("Close"),onRequestClose:n},It.map((function(e,t){return Object(i.createElement)(Ft,Object(k.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)(C.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(g.partial)(o,e.name)}))})))};var Ut=Object(T.compose)([T.withInstanceId,Object(d.withSelect)((function(e){return{hiddenBlockTypes:(0,e("core/edit-post").getPreference)("hiddenBlockTypes")}})),Object(d.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(g.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;if(!o.length)return null;var l,s=g.without.apply(void 0,[Object(g.map)(o,"name")].concat(Object(H.a)(r))),u="edit-post-manage-blocks-modal__category-title-"+t,d=s.length===o.length;return l=d?"true":s.length>0?"mixed":"false",Object(i.createElement)("div",{role:"group","aria-labelledby":u,className:"edit-post-manage-blocks-modal__category"},Object(i.createElement)(C.CheckboxControl,{checked:d,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":l,label:Object(i.createElement)("span",{id:u},n.title)}),Object(i.createElement)(Gt,{blockTypes:o,value:s,onItemChange:c}))}));var Vt=Object(T.compose)([Object(T.withState)({search:""}),Object(d.withSelect)((function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,i=t.isMatchingSearchTerm;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:i}}))])((function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,c=e.hasBlockSupport,a=e.isMatchingSearchTerm;return o=o.filter((function(e){return c(e,"inserter",!0)&&(!t||a(e,t))})),Object(i.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(i.createElement)(C.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"}),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)(Ut,{key:e.slug,category:e,blockTypes:Object(g.filter)(o,{category:e.slug})})}))))}));var Ht=Object(T.compose)([Object(d.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(d.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,n=e.closeModal;return t?Object(i.createElement)(C.Modal,{className:"edit-post-manage-blocks-modal",title:Object(E.__)("Block Manager"),closeLabel:Object(E.__)("Close"),onRequestClose:n},Object(i.createElement)(Vt,null)):null})),Wt=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 qt=function(e){var t=e.label,n=e.isChecked,o=e.onChange;return Object(i.createElement)(C.CheckboxControl,{className:"edit-post-options-modal__option",label:t,checked:n,onChange:o})},Kt=function(e){function t(e){var n,o=e.isChecked;return Object(p.a)(this,t),(n=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).toggleCustomFields=n.toggleCustomFields.bind(Object(h.a)(Object(h.a)(n))),n.state={isChecked:o},n}return Object(j.a)(t,e),Object(m.a)(t,[{key:"toggleCustomFields",value:function(){document.getElementById("toggle-custom-fields-form").submit(),this.setState({isChecked:!this.props.isChecked})}},{key:"render",value:function(){var e=this.props.label,t=this.state.isChecked;return Object(i.createElement)(qt,{label:e,isChecked:t,onChange:this.toggleCustomFields})}}]),t}(i.Component),zt=Object(d.withSelect)((function(e){return{isChecked:!!e("core/editor").getEditorSettings().enableCustomFields}}))(Kt),Qt=Object(T.compose)(Object(d.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(T.ifCondition)((function(e){return!e.isRemoved})),Object(d.withDispatch)((function(e,t){var n=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(n)}}})))(qt),Xt=Object(T.compose)(Object(d.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(d.withDispatch)((function(e){var t=e("core/editor"),n=t.enablePublishSidebar,o=t.disablePublishSidebar;return{onChange:function(e){return e?n():o()}}})),Object(s.ifViewportMatches)("medium"))(qt),Yt=function(e){function t(e){var n,o=e.isChecked;return Object(p.a)(this,t),(n=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).state={isChecked:o},n}return Object(j.a)(t,e),Object(m.a)(t,[{key:"componentWillUnmount",value:function(){this.state.isChecked!==this.props.isChecked&&this.props.onChange(this.state.isChecked)}},{key:"render",value:function(){var e=this;return Object(i.createElement)(qt,{label:this.props.label,isChecked:this.state.isChecked,onChange:function(t){return e.setState({isChecked:t})}})}}]),t}(i.Component),Jt=Object(T.compose)(Object(d.withSelect)((function(e){return{isChecked:e("core/nux").areTipsEnabled()}})),Object(d.withDispatch)((function(e){var t=e("core/nux"),n=t.enableTips,o=t.disableTips;return{onChange:function(e){return e?n():o()}}})))(Yt);var $t=Object(d.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(g.filter)(n,(function(e){return"postcustom"!==e.id}));return t||0!==r.length?Object(i.createElement)(Wt,o,t&&Object(i.createElement)(zt,{label:Object(E.__)("Custom Fields")}),Object(g.map)(r,(function(e){var t=e.id,n=e.title;return Object(i.createElement)(Qt,{key:t,label:n,panelName:"meta-box-".concat(t)})}))):null}));var Zt=Object(T.compose)(Object(d.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(g.get)(n,["viewable"],!1)}})),Object(d.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)(C.Modal,{className:"edit-post-options-modal",title:Object(E.__)("Options"),closeLabel:Object(E.__)("Close"),onRequestClose:o},Object(i.createElement)(Wt,{title:Object(E.__)("General")},Object(i.createElement)(Xt,{label:Object(E.__)("Enable Pre-publish Checks")}),Object(i.createElement)(Jt,{label:Object(E.__)("Enable Tips")})),Object(i.createElement)(Wt,{title:Object(E.__)("Document Panels")},n&&Object(i.createElement)(Qt,{label:Object(E.__)("Permalink"),panelName:"post-link"}),Object(i.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(i.createElement)(Qt,{label:Object(g.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(i.createElement)(a.PostFeaturedImageCheck,null,Object(i.createElement)(Qt,{label:Object(E.__)("Featured Image"),panelName:"featured-image"})),Object(i.createElement)(a.PostExcerptCheck,null,Object(i.createElement)(Qt,{label:Object(E.__)("Excerpt"),panelName:"post-excerpt"})),Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(i.createElement)(Qt,{label:Object(E.__)("Discussion"),panelName:"discussion-panel"})),Object(i.createElement)(a.PageAttributesCheck,null,Object(i.createElement)(Qt,{label:Object(E.__)("Page Attributes"),panelName:"page-attributes"}))),Object(i.createElement)($t,{title:Object(E.__)("Advanced Panels")})):null})),en=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(h.a)(Object(h.a)(e))),e}return Object(j.a)(t,e),Object(m.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)(C.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),tn=Object(d.withSelect)((function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}}))(en),nn=function(e){function t(){return Object(p.a)(this,t),Object(O.a)(this,Object(f.a)(t).apply(this,arguments))}return Object(j.a)(t,e),Object(m.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),on=Object(d.withSelect)((function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}}))(nn);var rn=Object(d.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(g.map)(o,(function(e){var t=e.id;return Object(i.createElement)(on,{key:t,id:t})})),n&&Object(i.createElement)(tn,{location:t}))})),cn=Object(C.createSlotFill)("Sidebar"),an=cn.Fill,ln=cn.Slot;function sn(e){var t=e.children,n=e.label,o=e.className;return Object(i.createElement)("div",{className:Qe()("edit-post-sidebar",o),role:"region","aria-label":n,tabIndex:"-1"},t)}sn=Object(C.withFocusReturn)({onFocusReturn:function(){var e=document.querySelector('.edit-post-header__settings [aria-label="Settings"]');if(e)return e.focus(),!1}})(sn);var un=Object(T.compose)(Object(d.withSelect)((function(e,t){var n=t.name;return{isActive:e("core/edit-post").getActiveGeneralSidebarName()===n}})),Object(T.ifCondition)((function(e){return e.isActive})))((function(e){return Object(i.createElement)(an,null,Object(i.createElement)(C.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(i.createElement)(sn,e)})))}));un.Slot=ln;var dn=un,bn=Object(T.compose)(Object(d.withSelect)((function(e){return{title:e("core/editor").getEditedPostAttribute("title")}})),Object(d.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)(C.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)(C.IconButton,{onClick:r,icon:"no-alt",label:o,shortcut:Je.toggleSidebar})))})),pn=Object(d.withDispatch)((function(e){var t=e("core/edit-post").openGeneralSidebar,n=e("core/block-editor").clearSelectedBlock;return{openDocumentSettings:function(){t("edit-post/document"),n()},openBlockSettings:function(){t("edit-post/block")}}}))((function(e){var t=e.openDocumentSettings,n=e.openBlockSettings,o=e.sidebarName,r=Object(E.__)("Block"),c="edit-post/document"===o?[Object(E.__)("Document (selected)"),"is-active"]:[Object(E.__)("Document"),""],a=Object(J.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(J.a)(u,2),b=d[0],p=d[1];return Object(i.createElement)(bn,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(E.__)("Close settings")},Object(i.createElement)("ul",null,Object(i.createElement)("li",null,Object(i.createElement)("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)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":b,"data-label":r},r))))}));var mn=function(){return Object(i.createElement)(a.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(i.createElement)(C.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)(C.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(i.createElement)(C.Button,{type:"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 On(){return Object(i.createElement)(a.PostTrashCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostTrash,null)))}var fn=Object(T.withInstanceId)((function(e){var t=e.instanceId;return Object(i.createElement)(a.PostScheduleCheck,null,Object(i.createElement)(C.PanelRow,{className:"edit-post-post-schedule"},Object(i.createElement)("label",{htmlFor:"edit-post-post-schedule__toggle-".concat(t),id:"edit-post-post-schedule__heading-".concat(t)},Object(E.__)("Publish")),Object(i.createElement)(C.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var n=e.onToggle,o=e.isOpen;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)("label",{className:"edit-post-post-schedule__label",htmlFor:"edit-post-post-schedule__toggle-".concat(t)},Object(i.createElement)(a.PostScheduleLabel,null)," ",Object(E.__)("Click to change")),Object(i.createElement)(C.Button,{id:"edit-post-post-schedule__toggle-".concat(t),type:"button",className:"edit-post-post-schedule__toggle",onClick:n,"aria-expanded":o,"aria-live":"polite",isLink:!0},Object(i.createElement)(a.PostScheduleLabel,null)))},renderContent:function(){return Object(i.createElement)(a.PostSchedule,null)}})))}));var jn=function(){return Object(i.createElement)(a.PostStickyCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostSticky,null)))};var hn=function(){return Object(i.createElement)(a.PostAuthorCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostAuthor,null)))};var gn=function(){return Object(i.createElement)(a.PostFormatCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostFormat,null)))};var En=function(){return Object(i.createElement)(a.PostPendingStatusCheck,null,Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostPendingStatus,null)))},vn=Object(C.createSlotFill)("PluginPostStatusInfo"),yn=vn.Fill,_n=vn.Slot,Sn=function(e){var t=e.children,n=e.className;return Object(i.createElement)(yn,null,Object(i.createElement)(C.PanelRow,{className:n},t))};Sn.Slot=_n;var kn=Sn;var Pn=Object(T.compose)([Object(d.withSelect)((function(e){return{isOpened:e("core/edit-post").isEditorPanelOpened("post-status")}})),Object(d.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)(C.PanelBody,{className:"edit-post-post-status",title:Object(E.__)("Status & Visibility"),opened:t,onToggle:n},Object(i.createElement)(kn.Slot,null,(function(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(mn,null),Object(i.createElement)(fn,null),Object(i.createElement)(gn,null),Object(i.createElement)(jn,null),Object(i.createElement)(En,null),Object(i.createElement)(hn,null),e,Object(i.createElement)(On,null))})))}));var wn=function(){return Object(i.createElement)(a.PostLastRevisionCheck,null,Object(i.createElement)(C.PanelBody,{className:"edit-post-last-revision__panel"},Object(i.createElement)(a.PostLastRevision,null)))};var Cn=Object(T.compose)(Object(d.withSelect)((function(e,t){var n=Object(g.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(d.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(g.get)(n,["labels","menu_name"]);return a?Object(i.createElement)(C.PanelBody,{title:a,opened:o,onToggle:r},c):null}));var Tn=function(){return Object(i.createElement)(a.PostTaxonomiesCheck,null,Object(i.createElement)(a.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(i.createElement)(Cn,{taxonomy:t},e)}}))};var xn=Object(d.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")}})),Mn=Object(d.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(g.partial)(t,"featured-image")}})),Bn=Object(T.compose)(xn,Mn)((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)(C.PanelBody,{title:Object(g.get)(o,["labels","featured_image"],Object(E.__)("Featured Image")),opened:n,onToggle:r},Object(i.createElement)(a.PostFeaturedImage,null))):null}));var Nn=Object(T.compose)([Object(d.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}})),Object(d.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)(C.PanelBody,{title:Object(E.__)("Excerpt"),opened:n,onToggle:o},Object(i.createElement)(a.PostExcerpt,null))):null}));var An=Object(T.compose)([Object(d.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,m=b.id,O=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:i(),isOpened:u("post-link"),permalinkParts:c(),isEnabled:s("post-link"),isViewable:Object(g.get)(O,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m}})),Object(T.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(d.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(T.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,f=e.postID,j=u.prefix,h=u.suffix,g=Object(N.safeDecodeURIComponent)(O)||Object(a.cleanForSlug)(m)||f;return l&&(t=j&&Object(i.createElement)("span",{className:"edit-post-post-link__link-prefix"},j),n=g&&Object(i.createElement)("span",{className:"edit-post-post-link__link-post-name"},g),o=h&&Object(i.createElement)("span",{className:"edit-post-post-link__link-suffix"},h)),Object(i.createElement)(C.PanelBody,{title:Object(E.__)("Permalink"),opened:r,onToggle:c},l&&Object(i.createElement)("div",{className:"editor-post-link"},Object(i.createElement)(C.TextControl,{label:Object(E.__)("URL Slug"),value:b?"":g,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)(C.ExternalLink,{href:"https://codex.wordpress.org/Posts_Add_New_Screen"},Object(E.__)("Read about permalinks")))),Object(i.createElement)("p",{className:"edit-post-post-link__preview-label"},Object(E.__)("Preview")),Object(i.createElement)(C.ExternalLink,{className:"edit-post-post-link__link",href:s,target:"_blank"},l?Object(i.createElement)(i.Fragment,null,t,n,o):s))}));var In=Object(T.compose)([Object(d.withSelect)((function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}})),Object(d.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)(C.PanelBody,{title:Object(E.__)("Discussion"),opened:n,onToggle:o},Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:"comments"},Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostComments,null))),Object(i.createElement)(a.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(i.createElement)(C.PanelRow,null,Object(i.createElement)(a.PostPingbacks,null))))):null}));var Ln=Object(d.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"))}})),Dn=Object(d.withDispatch)((function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(g.partial)(t,"page-attributes")}})),Fn=Object(T.compose)(Ln,Dn)((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)(C.PanelBody,{title:Object(g.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)(C.PanelRow,null,Object(i.createElement)(a.PageAttributesOrder,null)))):null})),Rn=Object(T.compose)(Object(d.withSelect)((function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}})),Object(T.ifCondition)((function(e){return e.isEditorSidebarOpened})))((function(e){var t=e.sidebarName;return Object(i.createElement)(dn,{name:t,label:Object(E.__)("Editor settings")},Object(i.createElement)(pn,{sidebarName:t}),Object(i.createElement)(C.Panel,null,"edit-post/document"===t&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(Pn,null),Object(i.createElement)(wn,null),Object(i.createElement)(An,null),Object(i.createElement)(Tn,null),Object(i.createElement)(Bn,null),Object(i.createElement)(Nn,null),Object(i.createElement)(In,null),Object(i.createElement)(Fn,null),Object(i.createElement)(rn,{location:"side"})),"edit-post/block"===t&&Object(i.createElement)(C.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(i.createElement)(c.BlockInspector,null))))})),Gn=Object(C.createSlotFill)("PluginPostPublishPanel"),Un=Gn.Fill,Vn=Gn.Slot,Hn=function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,c=void 0!==r&&r;return Object(i.createElement)(Un,null,Object(i.createElement)(C.PanelBody,{className:n,initialOpen:c||!o,title:o},t))};Hn.Slot=Vn;var Wn=Hn,qn=Object(C.createSlotFill)("PluginPrePublishPanel"),Kn=qn.Fill,zn=qn.Slot,Qn=function(e){var t=e.children,n=e.className,o=e.title,r=e.initialOpen,c=void 0!==r&&r;return Object(i.createElement)(Kn,null,Object(i.createElement)(C.PanelBody,{className:n,initialOpen:c||!o,title:o},t))};Qn.Slot=zn;var Xn=Qn,Yn=function(e){function t(){return Object(p.a)(this,t),Object(O.a)(this,Object(f.a)(t).apply(this,arguments))}return Object(j.a)(t,e),Object(m.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),Jn=Object(d.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(Yn);var $n=Object(T.compose)(Object(d.withSelect)((function(e){return{mode:e("core/edit-post").getEditorMode(),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(d.withDispatch)((function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}})),C.navigateRegions,Object(s.withViewportMatch)({isMobileViewport:"< small"}))((function(e){var t=e.mode,n=e.editorSidebarOpened,o=e.pluginSidebarOpened,r=e.publishSidebarOpened,l=e.hasFixedToolbar,s=e.closePublishSidebar,u=e.togglePublishSidebar,d=e.hasActiveMetaboxes,b=e.isSaving,p=e.isMobileViewport,m=e.isRichEditingEnabled,O=n||o||r,f=Qe()("edit-post-layout",{"is-sidebar-opened":O,"has-fixed-toolbar":l}),j={role:"region","aria-label":Object(E.__)("Editor publish"),tabIndex:-1};return Object(i.createElement)(C.FocusReturnProvider,{className:f},Object(i.createElement)(Jn,null),Object(i.createElement)(Ye,null),Object(i.createElement)(a.UnsavedChangesWarning,null),Object(i.createElement)(a.AutosaveMonitor,null),Object(i.createElement)(jt,null),Object(i.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(E.__)("Editor content"),tabIndex:"-1"},Object(i.createElement)(a.EditorNotices,{dismissible:!1,className:"is-pinned"}),Object(i.createElement)(a.EditorNotices,{dismissible:!0}),Object(i.createElement)(c.PreserveScrollInReorder,null),Object(i.createElement)(Pt,null),Object(i.createElement)(Rt,null),Object(i.createElement)(Ht,null),Object(i.createElement)(Zt,null),("text"===t||!m)&&Object(i.createElement)(ht,null),m&&"visual"===t&&Object(i.createElement)(St,null),Object(i.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(i.createElement)(rn,{location:"normal"})),Object(i.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(i.createElement)(rn,{location:"advanced"}))),r?Object(i.createElement)(a.PostPublishPanel,Object(k.a)({},j,{onClose:s,forceIsDirty:d,forceIsSaving:b,PrePublishExtension:Xn.Slot,PostPublishExtension:Wn.Slot})):Object(i.createElement)(i.Fragment,null,Object(i.createElement)("div",Object(k.a)({className:"edit-post-toggle-publish-panel"},j),Object(i.createElement)(C.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:u,"aria-expanded":!1},Object(E.__)("Open publish panel"))),Object(i.createElement)(Rn,null),Object(i.createElement)(dn.Slot,null),p&&O&&Object(i.createElement)(C.ScrollLock,null)),Object(i.createElement)(C.Popover.Slot,null),Object(i.createElement)(B.PluginArea,null))})),Zn=function(e){function t(){var e;return Object(p.a)(this,t),(e=Object(O.a)(this,Object(f.a)(t).apply(this,arguments))).getEditorSettings=qe()(e.getEditorSettings,{maxSize:1}),e}return Object(j.a)(t,e),Object(m.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r){if(e=Object(q.a)({},e,{hasFixedToolbar:t,focusMode:n}),Object(g.size)(o)>0){var i=!0===e.allowedBlockTypes?Object(g.map)(r,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=g.without.apply(void 0,[i].concat(Object(H.a)(o)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,o=e.focusMode,r=e.post,c=e.initialEdits,l=e.onError,s=e.hiddenBlockTypes,u=e.blockTypes,d=Object(P.a)(e,["settings","hasFixedToolbar","focusMode","post","initialEdits","onError","hiddenBlockTypes","blockTypes"]);if(!r)return null;var b=this.getEditorSettings(t,n,o,s,u);return Object(i.createElement)(i.StrictMode,null,Object(i.createElement)(a.EditorProvider,Object(k.a)({settings:b,post:r,initialEdits:c},d),Object(i.createElement)(a.ErrorBoundary,{onError:l},Object(i.createElement)($n,null),Object(i.createElement)(C.KeyboardShortcuts,{shortcuts:Ke})),Object(i.createElement)(a.PostLockedModal,null)))}}]),t}(i.Component),eo=Object(d.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{hasFixedToolbar:i("fixedToolbar"),focusMode:i("focusMode"),post:a("postType",o,n),hiddenBlockTypes:c("hiddenBlockTypes"),blockTypes:l()}}))(Zn),to=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(g.difference)(n,o).length);var n,o},no=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)(_t,null,(function(e){var l=e.selectedBlocks,s=e.onClose;return to(l,t)?Object(i.createElement)(C.MenuItem,{className:"editor-block-settings-menu__control",onClick:Object(T.compose)(r,s),icon:n||"admin-plugins",label:c?o:void 0,role:a},!c&&o):null}))},oo=Object(T.compose)(Object(B.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,n=void 0===t?g.noop:t,o=Object(P.a)(e,["onClick"]);return Object(i.createElement)(ot,null,(function(e){return Object(i.createElement)(C.MenuItem,Object(k.a)({},o,{onClick:Object(T.compose)(n,e.onClose)}))}))}));var ro=Object(T.compose)(Object(B.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(d.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(d.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)(Ot,null,l&&Object(i.createElement)(C.IconButton,{icon:o,label:u,onClick:b,isToggled:r,"aria-expanded":r})),Object(i.createElement)(dn,{name:s,label:Object(E.__)("Editor plugins")},Object(i.createElement)(bn,{closeLabel:Object(E.__)("Close plugin")},Object(i.createElement)("strong",null,u),a&&Object(i.createElement)(C.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)(C.Panel,{className:n},t)))})),io=Object(T.compose)(Object(B.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(d.withSelect)((function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}})),Object(d.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)(oo,{icon:o?"yes":n,isSelected:o,role:"menuitemcheckbox",onClick:r},t)}));function co(e,t,n,o,r){Object(i.unmountComponentAtNode)(n);var c=co.bind(null,e,t,n,o,r);Object(i.render)(Object(i.createElement)(eo,{settings:o,onError:c,postId:t,postType:e,initialEdits:r,recovery:!0}),n)}function ao(e,t,n,o,r){var c=document.getElementById(e),a=co.bind(null,t,n,c,o,r);Object(u.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),Object(d.dispatch)("core/nux").triggerGuide(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"]),Object(i.render)(Object(i.createElement)(eo,{settings:o,onError:a,postId:n,postType:t,initialEdits:r}),c)}},37:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return o}))},38: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}))},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t){!function(){e.exports=this.wp.viewport}()},41: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}},48:function(e,t){!function(){e.exports=this.wp.a11y}()},5:function(e,t){!function(){e.exports=this.wp.data}()},6:function(e,t){!function(){e.exports=this.wp.compose}()},60:function(e,t){!function(){e.exports=this.wp.nux}()},63:function(e,t){!function(){e.exports=this.wp.plugins}()},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(15);function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Object(o.a)(e,t,n[t])}))}return e}},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}},72:function(e,t){!function(){e.exports=this.wp.coreData}()},8:function(e,t){!function(){e.exports=this.wp.blockEditor}()},9: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}))}}); |