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,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})},106:function(e,t){!function(){e.exports=this.wp.mediaUtils}()},11:function(e,t,n){"use strict";function o(e,t){for(var n=0;n0?"mixed":"false",Object(b.createElement)("div",{role:"group","aria-labelledby":p,className:"edit-post-manage-blocks-modal__category"},Object(b.createElement)(h.CheckboxControl,{checked:m,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":u,label:Object(b.createElement)("span",{id:p},n.title)}),Object(b.createElement)(Oe,{blockTypes:s,value:d,onItemChange:i}))});var he=Object(E.compose)([Object(E.withState)({search:""}),Object(f.withSelect)(function(e){var t=e("core/blocks"),n=t.getBlockTypes,o=t.getCategories,r=t.hasBlockSupport,c=t.isMatchingSearchTerm,i=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),a=Object(O.isArray)(i)&&i.length;return{blockTypes:n(),categories:o(),hasBlockSupport:r,isMatchingSearchTerm:c,numberOfHiddenBlocks:a}})])(function(e){var t=e.search,n=e.setState,o=e.blockTypes,r=e.categories,c=e.hasBlockSupport,i=e.isMatchingSearchTerm,a=e.numberOfHiddenBlocks;return o=o.filter(function(e){return c(e,"inserter",!0)&&(!t||i(e,t))&&!e.parent}),Object(b.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(b.createElement)(h.TextControl,{type:"search",label:Object(y.__)("Search for a block"),value:t,onChange:function(e){return n({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!a&&Object(b.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(y.sprintf)(Object(y._n)("%1$d block is disabled.","%1$d blocks are disabled.",a),a)),Object(b.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(y.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===o.length&&Object(b.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(y.__)("No blocks found.")),r.map(function(e){return Object(b.createElement)(je,{key:e.slug,category:e,blockTypes:Object(O.filter)(o,{category:e.slug})})})))});var Ee=Object(E.compose)([Object(f.withSelect)(function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}}),Object(f.withDispatch)(function(e){return{closeModal:e("core/edit-post").closeModal}})])(function(e){var t=e.isActive,n=e.closeModal;return t?Object(b.createElement)(h.Modal,{className:"edit-post-manage-blocks-modal",title:Object(y.__)("Block Manager"),closeLabel:Object(y.__)("Close"),onRequestClose:n},Object(b.createElement)(he,null)):null}),ge=function(e){var t=e.title,n=e.children;return Object(b.createElement)("section",{className:"edit-post-options-modal__section"},Object(b.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),n)},ve=n(53);var _e=Object(f.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(r.a)(e,["areCustomFieldsRegistered","metaBoxes"]),c=Object(O.filter)(n,function(e){return"postcustom"!==e.id});return t||0!==c.length?Object(b.createElement)(ge,o,t&&Object(b.createElement)(ve.a,{label:Object(y.__)("Custom Fields")}),Object(O.map)(c,function(e){var t=e.id,n=e.title;return Object(b.createElement)(ve.c,{key:t,label:n,panelName:"meta-box-".concat(t)})})):null});var ye=Object(E.compose)(Object(f.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(O.get)(n,["viewable"],!1)}}),Object(f.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(b.createElement)(h.Modal,{className:"edit-post-options-modal",title:Object(y.__)("Options"),closeLabel:Object(y.__)("Close"),onRequestClose:o},Object(b.createElement)(ge,{title:Object(y.__)("General")},Object(b.createElement)(ve.e,{label:Object(y.__)("Pre-publish Checks")}),Object(b.createElement)(ve.f,{label:Object(y.__)("Tips")}),Object(b.createElement)(ve.b,{feature:"showInserterHelpPanel",label:Object(y.__)("Inserter Help Panel")})),Object(b.createElement)(ge,{title:Object(y.__)("Document Panels")},Object(b.createElement)(ve.d.Slot,null),n&&Object(b.createElement)(ve.c,{label:Object(y.__)("Permalink"),panelName:"post-link"}),Object(b.createElement)(j.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(b.createElement)(ve.c,{label:Object(O.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(b.createElement)(j.PostFeaturedImageCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Featured Image"),panelName:"featured-image"})),Object(b.createElement)(j.PostExcerptCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Excerpt"),panelName:"post-excerpt"})),Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(b.createElement)(ve.c,{label:Object(y.__)("Discussion"),panelName:"discussion-panel"})),Object(b.createElement)(j.PageAttributesCheck,null,Object(b.createElement)(ve.c,{label:Object(y.__)("Page Attributes"),panelName:"page-attributes"}))),Object(b.createElement)(_e,{title:Object(y.__)("Advanced Panels")})):null}),Se=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).bindContainerNode=e.bindContainerNode.bind(Object(J.a)(e)),e}return Object(d.a)(t,e),Object(l.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=_()("edit-post-meta-boxes-area","is-".concat(t),{"is-loading":n});return Object(b.createElement)("div",{className:o},n&&Object(b.createElement)(h.Spinner,null),Object(b.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:this.bindContainerNode}),Object(b.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))}}]),t}(b.Component),ke=Object(f.withSelect)(function(e){return{isSaving:e("core/edit-post").isSavingMetaBoxes()}})(Se),Pe=function(e){function t(){return Object(a.a)(this,t),Object(s.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.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}(b.Component),we=Object(f.withSelect)(function(e,t){var n=t.id;return{isVisible:e("core/edit-post").isEditorPanelEnabled("meta-box-".concat(n))}})(Pe);var Ce=Object(f.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(b.createElement)(b.Fragment,null,Object(O.map)(o,function(e){var t=e.id;return Object(b.createElement)(we,{key:t,id:t})}),n&&Object(b.createElement)(ke,{location:t}))}),Te=n(88),xe=n(23),Ne=n(127),Ae=Object(f.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(y.__)("Block"),c="edit-post/document"===o?[Object(y.__)("Document (selected)"),"is-active"]:[Object(y.__)("Document"),""],i=Object(xe.a)(c,2),a=i[0],l=i[1],s="edit-post/block"===o?[Object(y.__)("Block (selected)"),"is-active"]:[Object(y.__)("Block"),""],u=Object(xe.a)(s,2),d=u[0],p=u[1];return Object(b.createElement)(Ne.a,{className:"edit-post-sidebar__panel-tabs",closeLabel:Object(y.__)("Close settings")},Object(b.createElement)("ul",null,Object(b.createElement)("li",null,Object(b.createElement)("button",{onClick:t,className:"edit-post-sidebar__panel-tab ".concat(l),"aria-label":a,"data-label":Object(y.__)("Document")},Object(y.__)("Document"))),Object(b.createElement)("li",null,Object(b.createElement)("button",{onClick:n,className:"edit-post-sidebar__panel-tab ".concat(p),"aria-label":d,"data-label":r},r))))});var Me=function(){return Object(b.createElement)(j.PostVisibilityCheck,{render:function(e){var t=e.canEdit;return Object(b.createElement)(h.PanelRow,{className:"edit-post-post-visibility"},Object(b.createElement)("span",null,Object(y.__)("Visibility")),!t&&Object(b.createElement)("span",null,Object(b.createElement)(j.PostVisibilityLabel,null)),t&&Object(b.createElement)(h.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-visibility__dialog",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(b.createElement)(h.Button,{type:"button","aria-expanded":t,className:"edit-post-post-visibility__toggle",onClick:n,isLink:!0},Object(b.createElement)(j.PostVisibilityLabel,null))},renderContent:function(){return Object(b.createElement)(j.PostVisibility,null)}}))}})};function Be(){return Object(b.createElement)(j.PostTrashCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostTrash,null)))}var Ie=function(){return Object(b.createElement)(j.PostScheduleCheck,null,Object(b.createElement)(h.PanelRow,{className:"edit-post-post-schedule"},Object(b.createElement)("span",null,Object(y.__)("Publish")),Object(b.createElement)(h.Dropdown,{position:"bottom left",contentClassName:"edit-post-post-schedule__dialog",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(h.Button,{type:"button",className:"edit-post-post-schedule__toggle",onClick:t,"aria-expanded":n,isLink:!0},Object(b.createElement)(j.PostScheduleLabel,null)))},renderContent:function(){return Object(b.createElement)(j.PostSchedule,null)}})))};var Le=function(){return Object(b.createElement)(j.PostStickyCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostSticky,null)))};var De=function(){return Object(b.createElement)(j.PostAuthorCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostAuthor,null)))};var Re=function(){return Object(b.createElement)(j.PostFormatCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostFormat,null)))};var Fe=function(){return Object(b.createElement)(j.PostPendingStatusCheck,null,Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostPendingStatus,null)))},Ge=n(117);var Ve=Object(E.compose)([Object(f.withSelect)(function(e){var t=e("core/edit-post"),n=t.isEditorPanelRemoved,o=t.isEditorPanelOpened;return{isRemoved:n("post-status"),isOpened:o("post-status")}}),Object(E.ifCondition)(function(e){return!e.isRemoved}),Object(f.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(b.createElement)(h.PanelBody,{className:"edit-post-post-status",title:Object(y.__)("Status & Visibility"),opened:t,onToggle:n},Object(b.createElement)(Ge.a.Slot,null,function(e){return Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Me,null),Object(b.createElement)(Ie,null),Object(b.createElement)(Re,null),Object(b.createElement)(Le,null),Object(b.createElement)(Fe,null),Object(b.createElement)(De,null),e,Object(b.createElement)(Be,null))}))});var Ue=function(){return Object(b.createElement)(j.PostLastRevisionCheck,null,Object(b.createElement)(h.PanelBody,{className:"edit-post-last-revision__panel"},Object(b.createElement)(j.PostLastRevision,null)))};var He=Object(E.compose)(Object(f.withSelect)(function(e,t){var n=Object(O.get)(t.taxonomy,["slug"]),o=n?"taxonomy-panel-".concat(n):"";return{panelName:o,isEnabled:!!n&&e("core/edit-post").isEditorPanelEnabled(o),isOpened:!!n&&e("core/edit-post").isEditorPanelOpened(o)}}),Object(f.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 i=Object(O.get)(n,["labels","menu_name"]);return i?Object(b.createElement)(h.PanelBody,{title:i,opened:o,onToggle:r},c):null});var We=function(){return Object(b.createElement)(j.PostTaxonomiesCheck,null,Object(b.createElement)(j.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(b.createElement)(He,{taxonomy:t},e)}}))};var qe=Object(f.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getPostType,o=e("core/edit-post"),r=o.isEditorPanelEnabled,c=o.isEditorPanelOpened;return{postType:n(t("type")),isEnabled:r("featured-image"),isOpened:c("featured-image")}}),Ke=Object(f.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"featured-image")}}),Qe=Object(E.compose)(qe,Ke)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.postType,r=e.onTogglePanel;return t?Object(b.createElement)(j.PostFeaturedImageCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(O.get)(o,["labels","featured_image"],Object(y.__)("Featured Image")),opened:n,onToggle:r},Object(b.createElement)(j.PostFeaturedImage,null))):null});var Xe=Object(E.compose)([Object(f.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("post-excerpt"),isOpened:e("core/edit-post").isEditorPanelOpened("post-excerpt")}}),Object(f.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(b.createElement)(j.PostExcerptCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Excerpt"),opened:n,onToggle:o},Object(b.createElement)(j.PostExcerpt,null))):null});var ze=Object(E.compose)([Object(f.withSelect)(function(e){var t=e("core/editor"),n=t.isEditedPostNew,o=t.isPermalinkEditable,r=t.getCurrentPost,c=t.isCurrentPostPublished,i=t.getPermalinkParts,a=t.getEditedPostAttribute,l=e("core/edit-post"),s=l.isEditorPanelEnabled,u=l.isEditorPanelOpened,d=e("core").getPostType,b=r(),p=b.link,m=b.id,f=d(a("type"));return{isNew:n(),postLink:p,isEditable:o(),isPublished:c(),isOpened:u("post-link"),permalinkParts:i(),isEnabled:s("post-link"),isViewable:Object(O.get)(f,["viewable"],!1),postTitle:a("title"),postSlug:a("slug"),postID:m,postTypeLabel:Object(O.get)(f,["labels","view_item"])}}),Object(E.ifCondition)(function(e){var t=e.isEnabled,n=e.isNew,o=e.postLink,r=e.isViewable,c=e.permalinkParts;return t&&!n&&o&&r&&c}),Object(f.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened,n=e("core/editor").editPost;return{onTogglePanel:function(){return t("post-link")},editPermalink:function(e){n({slug:e})}}}),Object(E.withState)({forceEmptyField:!1})])(function(e){var t,n,o,r=e.isOpened,c=e.onTogglePanel,i=e.isEditable,a=e.postLink,l=e.permalinkParts,s=e.editPermalink,u=e.forceEmptyField,d=e.setState,p=e.postTitle,m=e.postSlug,O=e.postID,f=e.postTypeLabel,E=l.prefix,g=l.suffix,v=Object(w.safeDecodeURIComponent)(m)||Object(j.cleanForSlug)(p)||O;return i&&(t=E&&Object(b.createElement)("span",{className:"edit-post-post-link__link-prefix"},E),n=v&&Object(b.createElement)("span",{className:"edit-post-post-link__link-post-name"},v),o=g&&Object(b.createElement)("span",{className:"edit-post-post-link__link-suffix"},g)),Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Permalink"),opened:r,onToggle:c},i&&Object(b.createElement)("div",{className:"editor-post-link"},Object(b.createElement)(h.TextControl,{label:Object(y.__)("URL Slug"),value:u?"":v,onChange:function(e){s(e),e?u&&d({forceEmptyField:!1}):u||d({forceEmptyField:!0})},onBlur:function(e){s(Object(j.cleanForSlug)(e.target.value)),u&&d({forceEmptyField:!1})}}),Object(b.createElement)("p",null,Object(y.__)("The last part of the URL. "),Object(b.createElement)(h.ExternalLink,{href:"https://wordpress.org/support/article/writing-posts/#post-field-descriptions"},Object(y.__)("Read about permalinks")))),Object(b.createElement)("p",{className:"edit-post-post-link__preview-label"},f||Object(y.__)("View Post")),Object(b.createElement)("div",{className:"edit-post-post-link__preview-link-container"},Object(b.createElement)(h.ExternalLink,{className:"edit-post-post-link__link",href:a,target:"_blank"},i?Object(b.createElement)(b.Fragment,null,t,n,o):a)))});var Ye=Object(E.compose)([Object(f.withSelect)(function(e){return{isEnabled:e("core/edit-post").isEditorPanelEnabled("discussion-panel"),isOpened:e("core/edit-post").isEditorPanelOpened("discussion-panel")}}),Object(f.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(b.createElement)(j.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(b.createElement)(h.PanelBody,{title:Object(y.__)("Discussion"),opened:n,onToggle:o},Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:"comments"},Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostComments,null))),Object(b.createElement)(j.PostTypeSupportCheck,{supportKeys:"trackbacks"},Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PostPingbacks,null))))):null});var $e=Object(f.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core/edit-post"),o=n.isEditorPanelEnabled,r=n.isEditorPanelOpened,c=e("core").getPostType;return{isEnabled:o("page-attributes"),isOpened:r("page-attributes"),postType:c(t("type"))}}),Ze=Object(f.withDispatch)(function(e){var t=e("core/edit-post").toggleEditorPanelOpened;return{onTogglePanel:Object(O.partial)(t,"page-attributes")}}),Je=Object(E.compose)($e,Ze)(function(e){var t=e.isEnabled,n=e.isOpened,o=e.onTogglePanel,r=e.postType;return t&&r?Object(b.createElement)(j.PageAttributesCheck,null,Object(b.createElement)(h.PanelBody,{title:Object(O.get)(r,["labels","attributes"],Object(y.__)("Page Attributes")),opened:n,onToggle:o},Object(b.createElement)(j.PageTemplate,null),Object(b.createElement)(j.PageAttributesParent,null),Object(b.createElement)(h.PanelRow,null,Object(b.createElement)(j.PageAttributesOrder,null)))):null}),et=n(118),tt=Object(E.compose)(Object(f.withSelect)(function(e){var t=e("core/edit-post"),n=t.getActiveGeneralSidebarName;return{isEditorSidebarOpened:(0,t.isEditorSidebarOpened)(),sidebarName:n()}}),Object(E.ifCondition)(function(e){return e.isEditorSidebarOpened}))(function(e){var t=e.sidebarName;return Object(b.createElement)(Te.a,{name:t,label:Object(y.__)("Editor settings")},Object(b.createElement)(Ae,{sidebarName:t}),Object(b.createElement)(h.Panel,null,"edit-post/document"===t&&Object(b.createElement)(b.Fragment,null,Object(b.createElement)(Ve,null),Object(b.createElement)(et.a.Slot,null),Object(b.createElement)(Ue,null),Object(b.createElement)(ze,null),Object(b.createElement)(We,null),Object(b.createElement)(Qe,null),Object(b.createElement)(Xe,null),Object(b.createElement)(Ye,null),Object(b.createElement)(Je,null),Object(b.createElement)(Ce,{location:"side"})),"edit-post/block"===t&&Object(b.createElement)(h.PanelBody,{className:"edit-post-settings-sidebar__panel-block"},Object(b.createElement)(S.BlockInspector,null))))}),nt=n(119),ot=n(120),rt=function(e){function t(){return Object(a.a)(this,t),Object(s.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.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}(b.Component),ct=Object(f.withSelect)(function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}})(rt);var it=Object(E.compose)(Object(f.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(f.withDispatch)(function(e){var t=e("core/edit-post");return{closePublishSidebar:t.closePublishSidebar,togglePublishSidebar:t.togglePublishSidebar}}),h.navigateRegions,Object(P.withViewportMatch)({isMobileViewport:"< small"}))(function(e){var t=e.mode,n=e.editorSidebarOpened,r=e.pluginSidebarOpened,c=e.publishSidebarOpened,i=e.hasFixedToolbar,a=e.closePublishSidebar,l=e.togglePublishSidebar,s=e.hasActiveMetaboxes,u=e.isSaving,d=e.isMobileViewport,p=e.isRichEditingEnabled,m=n||r||c,O=_()("edit-post-layout",{"is-sidebar-opened":m,"has-fixed-toolbar":i,"has-metaboxes":s}),f={role:"region","aria-label":Object(y.__)("Editor publish"),tabIndex:-1};return Object(b.createElement)(h.FocusReturnProvider,{className:O},Object(b.createElement)(ct,null),Object(b.createElement)(T,null),Object(b.createElement)(j.UnsavedChangesWarning,null),Object(b.createElement)(j.AutosaveMonitor,null),Object(b.createElement)(j.LocalAutosaveMonitor,null),Object(b.createElement)(K,null),Object(b.createElement)("div",{className:"edit-post-layout__content",role:"region","aria-label":Object(y.__)("Editor content"),tabIndex:"-1"},Object(b.createElement)(j.EditorNotices,null),Object(b.createElement)(S.PreserveScrollInReorder,null),Object(b.createElement)(te,null),Object(b.createElement)(me,null),Object(b.createElement)(Ee,null),Object(b.createElement)(ye,null),("text"===t||!p)&&Object(b.createElement)(X,null),p&&"visual"===t&&Object(b.createElement)($,null),Object(b.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(b.createElement)(Ce,{location:"normal"})),Object(b.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(b.createElement)(Ce,{location:"advanced"}))),c?Object(b.createElement)(j.PostPublishPanel,Object(o.a)({},f,{onClose:a,forceIsDirty:s,forceIsSaving:u,PrePublishExtension:ot.a.Slot,PostPublishExtension:nt.a.Slot})):Object(b.createElement)(b.Fragment,null,Object(b.createElement)("div",Object(o.a)({className:"edit-post-toggle-publish-panel"},f),Object(b.createElement)(h.Button,{isDefault:!0,type:"button",className:"edit-post-toggle-publish-panel__button",onClick:l,"aria-expanded":!1},Object(y.__)("Open publish panel"))),Object(b.createElement)(tt,null),Object(b.createElement)(Te.a.Slot,null),d&&m&&Object(b.createElement)(h.ScrollLock,null)),Object(b.createElement)(h.Popover.Slot,null),Object(b.createElement)(k.PluginArea,null))}),at=n(75),lt=function(e){var t=e.postId;!function(e){var t=Object(f.useSelect)(function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),sidebarToReOpenOnExpand:e(at.a).getActiveGeneralSidebarName()}},[e]),n=t.isSmall,o=t.sidebarToReOpenOnExpand,r=Object(f.useDispatch)(at.a),c=r.openGeneralSidebar,i=r.closeGeneralSidebar,a=Object(b.useRef)("");Object(b.useEffect)(function(){n&&o?(a.current=o,i()):!n&&a.current&&(c(a.current),a.current="")},[n,o])}(t),function(e){var t=Object(f.useSelect)(function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(at.a).isEditorSidebarOpened()}},[e]),n=t.hasBlockSelection,o=t.isEditorSidebarOpened,r=Object(f.useDispatch)(at.a).openGeneralSidebar;Object(b.useEffect)(function(){o&&r(n?"edit-post/block":"edit-post/document")},[n,o])}(t),function(e){var t=Object(f.useSelect)(function(e){return{newPermalink:e("core/editor").getCurrentPost().link}},[e]).newPermalink,n=Object(b.useRef)();Object(b.useEffect)(function(){n.current=document.querySelector(at.c)||document.querySelector(at.b)},[e]),Object(b.useEffect)(function(){t&&n.current&&n.current.setAttribute("href",t)},[t])}(t);var n=Object(f.useDispatch)("core/nux").triggerGuide;return Object(b.useEffect)(function(){n(["core/editor.inserter","core/editor.settings","core/editor.preview","core/editor.publish"])},[n]),null},st=function(e){function t(){var e;return Object(a.a)(this,t),(e=Object(s.a)(this,Object(u.a)(t).apply(this,arguments))).getEditorSettings=m()(e.getEditorSettings,{maxSize:1}),e}return Object(d.a)(t,e),Object(l.a)(t,[{key:"getEditorSettings",value:function(e,t,n,o,r,a,l,s,u){if(e=Object(i.a)({},e,{__experimentalPreferredStyleVariations:{value:l,onChange:u},hasFixedToolbar:t,focusMode:o,showInserterHelpPanel:n,__experimentalLocalAutosaveInterval:s}),Object(O.size)(r)>0){var d=!0===e.allowedBlockTypes?Object(O.map)(a,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=O.without.apply(void 0,[d].concat(Object(c.a)(r)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,n=e.hasFixedToolbar,c=e.focusMode,i=e.post,a=e.postId,l=e.initialEdits,s=e.onError,u=e.hiddenBlockTypes,d=e.blockTypes,p=e.preferredStyleVariations,m=e.__experimentalLocalAutosaveInterval,O=e.showInserterHelpPanel,f=e.updatePreferredStyleVariations,E=Object(r.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!i)return null;var v=this.getEditorSettings(t,n,O,c,u,d,p,m,f);return Object(b.createElement)(b.StrictMode,null,Object(b.createElement)(fe.Provider,{value:t},Object(b.createElement)(h.SlotFillProvider,null,Object(b.createElement)(h.DropZoneProvider,null,Object(b.createElement)(j.EditorProvider,Object(o.a)({settings:v,post:i,initialEdits:l,useSubRegistry:!1},E),Object(b.createElement)(j.ErrorBoundary,{onError:s},Object(b.createElement)(lt,{postId:a}),Object(b.createElement)(it,null),Object(b.createElement)(h.KeyboardShortcuts,{shortcuts:g})),Object(b.createElement)(j.PostLockedModal,null))))))}}]),t}(b.Component);t.a=Object(E.compose)([Object(f.withSelect)(function(e,t){var n=t.postId,o=t.postType,r=e("core/edit-post"),c=r.isFeatureActive,i=r.getPreference,a=e("core").getEntityRecord,l=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:c("showInserterHelpPanel"),hasFixedToolbar:c("fixedToolbar"),focusMode:c("focusMode"),post:a("postType",o,n),preferredStyleVariations:i("preferredStyleVariations"),hiddenBlockTypes:i("hiddenBlockTypes"),blockTypes:l(),__experimentalLocalAutosaveInterval:i("localAutosaveInterval")}}),Object(f.withDispatch)(function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}})])(st)},17:function(e,t,n){"use strict";var o=n(30);function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,"a",function(){return o})},217:function(e,t,n){"use strict";var o=n(0),r=n(2),c=n(3),i=n(8),a=n(126),l=function(e,t){return!Array.isArray(t)||(n=e,o=t,0===Object(r.difference)(n,o).length);var n,o};t.a=function(e){var t=e.allowedBlocks,n=e.icon,r=e.label,s=e.onClick,u=e.small,d=e.role;return Object(o.createElement)(a.a,null,function(e){var a=e.selectedBlocks,b=e.onClose;return l(a,t)?Object(o.createElement)(c.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(i.compose)(s,b),icon:n||"admin-plugins",label:u?r:void 0,role:d},!u&&r):null})}},218:function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(4),i=n(1),a=n(52),l=n(8),s=n(125),u=n(88),d=n(127);t.a=Object(l.compose)(Object(a.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}}),Object(c.withSelect)(function(e,t){var n=t.sidebarName,o=e("core/edit-post"),r=o.getActiveGeneralSidebarName,c=o.isPluginItemPinned;return{isActive:r()===n,isPinned:c(n)}}),Object(c.withDispatch)(function(e,t){var n=t.isActive,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar,a=r.togglePinnedPluginItem;return{togglePin:function(){a(o)},toggleSidebar:function(){n?c():i(o)}}}))(function(e){var t=e.children,n=e.className,c=e.icon,a=e.isActive,l=e.isPinnable,b=void 0===l||l,p=e.isPinned,m=e.sidebarName,O=e.title,f=e.togglePin,j=e.toggleSidebar;return Object(o.createElement)(o.Fragment,null,b&&Object(o.createElement)(s.a,null,p&&Object(o.createElement)(r.IconButton,{icon:c,label:O,onClick:j,isToggled:a,"aria-expanded":a})),Object(o.createElement)(u.a,{name:m,label:Object(i.__)("Editor plugins")},Object(o.createElement)(d.a,{closeLabel:Object(i.__)("Close plugin")},Object(o.createElement)("strong",null,O),b&&Object(o.createElement)(r.IconButton,{icon:p?"star-filled":"star-empty",label:p?Object(i.__)("Unpin from toolbar"):Object(i.__)("Pin to toolbar"),onClick:f,isToggled:p,"aria-expanded":p})),Object(o.createElement)(r.Panel,{className:n},t)))})},219:function(e,t,n){"use strict";var o=n(0),r=n(8),c=n(4),i=n(52),a=n(121);t.a=Object(r.compose)(Object(i.withPluginContext)(function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}}),Object(c.withSelect)(function(e,t){var n=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===n}}),Object(c.withDispatch)(function(e,t){var n=t.isSelected,o=t.sidebarName,r=e("core/edit-post"),c=r.closeGeneralSidebar,i=r.openGeneralSidebar;return{onClick:n?c:function(){return i(o)}}}))(function(e){var t=e.children,n=e.icon,r=e.isSelected,c=e.onClick;return Object(o.createElement)(a.a,{icon:r?"yes":n,isSelected:r,role:"menuitemcheckbox",onClick:c},t)})},23:function(e,t,n){"use strict";var o=n(38);var r=n(39);function c(e,t){return Object(o.a)(e)||function(e,t){var n=[],o=!0,r=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(o=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){r=!0,c=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw c}}return n}(e,t)||Object(r.a)()}n.d(t,"a",function(){return c})},24:function(e,t){!function(){e.exports=this.wp.editor}()},26:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30: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})},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)}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})},32:function(e,t){!function(){e.exports=this.wp.apiFetch}()},35:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o. 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(o.render)(Object(o.createElement)(c.a,{settings:a,onError:u,postId:i,postType:n,initialEdits:l}),s)}n.d(t,"PluginSidebarMoreMenuItem",function(){return p.a})}.call(this,n(96))},38:function(e,t,n){"use strict";function o(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return o})},39: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})},392:function(e,t,n){"use strict";var o={};n.r(o),n.d(o,"openGeneralSidebar",function(){return _}),n.d(o,"closeGeneralSidebar",function(){return y}),n.d(o,"openModal",function(){return S}),n.d(o,"closeModal",function(){return k}),n.d(o,"openPublishSidebar",function(){return P}),n.d(o,"closePublishSidebar",function(){return w}),n.d(o,"togglePublishSidebar",function(){return C}),n.d(o,"toggleEditorPanelEnabled",function(){return T}),n.d(o,"toggleEditorPanelOpened",function(){return x}),n.d(o,"removeEditorPanel",function(){return N}),n.d(o,"toggleFeature",function(){return A}),n.d(o,"switchEditorMode",function(){return M}),n.d(o,"togglePinnedPluginItem",function(){return B}),n.d(o,"hideBlockTypes",function(){return I}),n.d(o,"updatePreferredStyleVariations",function(){return L}),n.d(o,"__experimentalUpdateLocalAutosaveInterval",function(){return D}),n.d(o,"showBlockTypes",function(){return R}),n.d(o,"setAvailableMetaBoxesPerLocation",function(){return F}),n.d(o,"requestMetaBoxUpdates",function(){return G}),n.d(o,"metaBoxUpdatesSuccess",function(){return V});var r={};n.r(r),n.d(r,"getEditorMode",function(){return H}),n.d(r,"isEditorSidebarOpened",function(){return W}),n.d(r,"isPluginSidebarOpened",function(){return q}),n.d(r,"getActiveGeneralSidebarName",function(){return K}),n.d(r,"getPreferences",function(){return Q}),n.d(r,"getPreference",function(){return X}),n.d(r,"isPublishSidebarOpened",function(){return z}),n.d(r,"isEditorPanelRemoved",function(){return Y}),n.d(r,"isEditorPanelEnabled",function(){return $}),n.d(r,"isEditorPanelOpened",function(){return Z}),n.d(r,"isModalActive",function(){return J}),n.d(r,"isFeatureActive",function(){return ee}),n.d(r,"isPluginItemPinned",function(){return te}),n.d(r,"getActiveMetaBoxLocations",function(){return ne}),n.d(r,"isMetaBoxLocationVisible",function(){return oe}),n.d(r,"isMetaBoxLocationActive",function(){return re}),n.d(r,"getMetaBoxesPerLocation",function(){return ce}),n.d(r,"getAllMetaBoxes",function(){return ie}),n.d(r,"hasMetaBoxes",function(){return ae}),n.d(r,"isSavingMetaBoxes",function(){return le});var c,i=n(4),a=n(17),l=n(10),s=n(7),u=n(2),d="edit-post/document",b=Object(u.flow)([i.combineReducers,(c={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]:c,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(s.a)({},e,Object(l.a)({},n,Object(s.a)({},e[n],{enabled:!Object(u.get)(e,[n,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var o=t.panelName,r=!0===e[o]||Object(u.get)(e,[o,"opened"],!1);return Object(s.a)({},e,Object(l.a)({},o,Object(s.a)({},e[o],{opened:!r})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?Object(s.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(s.a)({},e,Object(l.a)({},t.pluginName,!Object(u.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return u.without.apply(void 0,[e].concat(Object(a.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(u.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?Object(s.a)({},e,Object(l.a)({},t.blockName,t.blockStyle)):Object(u.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 p=Object(i.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}}),m=Object(i.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:p,preferences:b,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(u.includes)(e,t.panelName))return[].concat(Object(a.a)(e),[t.panelName])}return e}}),O=n(76),f=n.n(O),j=n(23),h=n(46),E=n(1),g=n(32),v=n.n(g);function _(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function y(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function S(e){return{type:"OPEN_MODAL",name:e}}function k(){return{type:"CLOSE_MODAL"}}function P(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function w(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function C(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function T(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function x(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function N(e){return{type:"REMOVE_PANEL",panelName:e}}function A(e){return{type:"TOGGLE_FEATURE",feature:e}}function M(e){return{type:"SWITCH_MODE",mode:e}}function B(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function I(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(u.castArray)(e)}}function L(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function D(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function R(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(u.castArray)(e)}}function F(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function G(){return{type:"REQUEST_META_BOX_UPDATES"}}function V(){return{type:"META_BOX_UPDATES_SUCCESS"}}var U=n(35);function H(e){return X(e,"editorMode","visual")}function W(e){var t=K(e);return Object(u.includes)(["edit-post/document","edit-post/block"],t)}function q(e){return!!K(e)&&!W(e)}function K(e){return X(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function Q(e){return e.preferences}function X(e,t,n){var o=Q(e)[t];return void 0===o?n:o}function z(e){return e.publishSidebarActive}function Y(e,t){return Object(u.includes)(e.removedPanels,t)}function $(e,t){var n=X(e,"panels");return!Y(e,t)&&Object(u.get)(n,[t,"enabled"],!0)}function Z(e,t){var n=X(e,"panels");return!0===Object(u.get)(n,[t])||!0===Object(u.get)(n,[t,"opened"])}function J(e,t){return e.activeModal===t}function ee(e,t){return Object(u.get)(e.preferences.features,[t],!1)}function te(e,t){var n=X(e,"pinnedPluginItems",{});return Object(u.get)(n,[t],!0)}var ne=Object(U.a)(function(e){return Object.keys(e.metaBoxes.locations).filter(function(t){return re(e,t)})},function(e){return[e.metaBoxes.locations]});function oe(e,t){return re(e,t)&&Object(u.some)(ce(e,t),function(t){var n=t.id;return $(e,"meta-box-".concat(n))})}function re(e,t){var n=ce(e,t);return!!n&&0!==n.length}function ce(e,t){return e.metaBoxes.locations[t]}var ie=Object(U.a)(function(e){return Object(u.flatten)(Object(u.values)(e.metaBoxes.locations))},function(e){return[e.metaBoxes.locations]});function ae(e){return ne(e).length>0}function le(e){return e.metaBoxes.isSaving}var se={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout(function(){var e=Object(i.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)});var n=Object(i.select)("core/editor").isSavingPost(),o=Object(i.select)("core/editor").isAutosavingPost(),r=Object(i.select)("core/edit-post").hasMetaBoxes();Object(i.subscribe)(function(){var e=Object(i.select)("core/editor").isSavingPost(),c=Object(i.select)("core/editor").isAutosavingPost(),a=r&&n&&!e&&!o;n=e,o=c,a&&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(i.select)("core/editor").getCurrentPost(n),r=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),c=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(a.a)(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))}))),l=Object(u.reduce)(c,function(e,t){var n=!0,o=!1,r=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done);n=!0){var a=Object(j.a)(c.value,2),l=a[0],s=a[1];e.append(l,s)}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return e},new window.FormData);r.forEach(function(e){var t=Object(j.a)(e,2),n=t[0],o=t[1];return l.append(n,o)}),v()({url:window._wpMetaBoxUrl,method:"POST",body:l,parse:!1}).then(function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})})},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(i.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(E.__)("Visual editor selected"):Object(E.__)("Code editor selected");Object(h.speak)(t,"assertive")}};var ue=function(e){var t,n=[f()(se)],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=u.flowRight.apply(void 0,Object(a.a)(t))(e.dispatch),e.dispatch=o,e};var de={SELECT:Object(i.createRegistryControl)(function(e){return function(t){var n,o=t.storeName,r=t.selectorName,c=t.args;return(n=e.select(o))[r].apply(n,Object(a.a)(c))}})},be=n(75),pe=Object(i.registerStore)(be.a,{reducer:m,actions:o,selectors:r,controls:de,persist:["preferences"]});ue(pe)},4:function(e,t){!function(){e.exports=this.wp.data}()},405:function(e,t,n){"use strict";var o=n(0),r=n(3),c=n(1),i=n(52),a=n(26),l=n(4),s=n(8);var u=Object(s.compose)(Object(l.withSelect)(function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}}),Object(l.withDispatch)(function(e){return{createNotice:e("core/notices").createNotice}}),Object(s.withState)({hasCopied:!1}))(function(e){var t=e.createNotice,n=e.editedPostContent,i=e.hasCopied,a=e.setState;return n.length>0&&Object(o.createElement)(r.ClipboardButton,{text:n,role:"menuitem",className:"components-menu-item__button",onCopy:function(){a({hasCopied:!0}),t("info","All content copied.",{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return a({hasCopied:!1})}},i?Object(c.__)("Copied!"):Object(c.__)("Copy All Content"))});var d=Object(l.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal;return Object(o.createElement)(r.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(c.__)("Block Manager"))}),b=n(19);var p=Object(l.withDispatch)(function(e){return{openModal:e("core/edit-post").openModal}})(function(e){var t=e.openModal;return Object(o.createElement)(r.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:b.displayShortcut.access("h")},Object(c.__)("Keyboard Shortcuts"))}),m=n(123);Object(i.registerPlugin)("edit-post",{render:function(){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.a,null,function(e){var t=e.onClose;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,{onSelect:t}),Object(o.createElement)(r.MenuItem,{role:"menuitem",href:Object(a.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage All Reusable Blocks")),Object(o.createElement)(p,{onSelect:t}),Object(o.createElement)(u,null))}))}})},407:function(e,t,n){"use strict";var o=n(27),r=n(106);Object(o.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",function(){return r.MediaUpload});var c=n(18),i=n(21),a=n(0),l=n(2),s=n(9),u=n(3),d=n(4),b=n(6),p=n(1),m=n(8),O=Object(m.compose)(Object(d.withSelect)(function(e,t){if(Object(s.hasBlockSupport)(t.name,"multiple",!0))return{};var n=e("core/block-editor").getBlocks(),o=Object(l.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)}}})),f=Object(m.createHigherOrderComponent)(function(e){return O(function(t){var n=t.originalBlockClientId,o=t.selectFirst,r=Object(i.a)(t,["originalBlockClientId","selectFirst"]);if(!n)return Object(a.createElement)(e,r);var l=Object(s.getBlockType)(r.name),d=function(e){var t=Object(s.findTransform)(Object(s.getBlockTransforms)("to",e),function(e){var t=e.type,n=e.blocks;return"block"===t&&1===n.length});if(!t)return null;return Object(s.getBlockType)(t.blocks[0])}(r.name);return[Object(a.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(a.createElement)(e,Object(c.a)({key:"block-edit"},r))),Object(a.createElement)(b.Warning,{key:"multiple-use-warning",actions:[Object(a.createElement)(u.Button,{key:"find-original",isLarge:!0,onClick:o},Object(p.__)("Find original")),Object(a.createElement)(u.Button,{key:"remove",isLarge:!0,onClick:function(){return r.onReplace([])}},Object(p.__)("Remove")),d&&Object(a.createElement)(u.Button,{key:"transform",isLarge:!0,onClick:function(){return r.onReplace(Object(s.createBlock)(d.name,r.attributes))}},Object(p.__)("Transform into:")," ",d.title)]},Object(a.createElement)("strong",null,l.title,": "),Object(p.__)("This block can only be used once."))]})},"withMultipleValidation");Object(o.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",f)},43:function(e,t){!function(){e.exports=this.wp.viewport}()},45:function(e,t,n){e.exports=function(e,t){var n,o,r,c=0;function i(){var t,i,a=o,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i1)for(var n=1;n