diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index 1acee82fb8..8e1aff3bdb 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => '75e8857bbf1d491f0c582e08b1dadbd6'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'd42c39401147b531c474c6702437edcf'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '3f9c4530789ad55104bd4e6fb1d7b2c0'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '205ce2875ce340d29d444c2b6204f1c0'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aba7ab22bcfc07e4378e40e92e7ab85d'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '0fdeef9971116c26a4343ffe35dd9108'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '41bd70d0c00715e47701fe13e338c380'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '7025463da9a70194436447a8e77cd8b3'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '493193bef61f5a7f8f8f89ca631a01de'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '15d17097502cbb9da419b86752c06d9e'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'f2b9640576dd571a10c73d7fdece7ee1'), 'compose.js' => array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '237bb2ec6345b546145338e55d430239'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'd5dbfb6ecaf54ae44e1835cfa6a206fe'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '6a717620e999e46ed810b94f2ed74e2e'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '8eeebd0f44dc2a530611a9dcf57618ff'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '10f616de89b12febcbf7a28b3e70f5fb'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e016dcf6dc5ed48938f8622acbc152f3'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4e3608876d4b4572c406b47966b8d075'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5045831f601200e96ad481e311acfe42'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '16a5983b7492d42459c1ae95ac4d5332'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '8257ff89b380896a68c9e6b3675d9443'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '95eb42bf78fda778824eb0815055bb4e'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'df3aea46fc6e3563882bc8891b21101d'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '615a90c034053e3fb8a28e0d1e529d98'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '483bf66d05e72c9b55c05f3fe06a2ae6'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c43b49e3f3da377cefdadb0131ba7a31'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f8c65a436595a2be28654f3d22e0cdef'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '3bb3f6a7a8127b024342e718ad297e81'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '6c249322053c850933521e417707f651'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'df9dd983a8b8d0bda8c36bf20e864843'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'e723b9915311e214385b6be542981615'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '3a5a39a7794d70d393659c63c6e16de4'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '9beeec421f5c370a38fc7ff90b842291'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'aa3e0385227eba30d5dd2a21416cc3ea'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => '9b3d6777f60871d5b0a650bcdb3e6cd2'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '6e6869dc94974fb23e5747bc1cf59e23'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5fa0ce13edcf3443a48c1816b45d1923'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '455bbe5442bfb84840ff801a9ea5be69'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => '3c60390dd7af5bbc6043e53c9e1ff095'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '24f9aab700a7efdd145a30b6c4610615'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '3173f285aee099b367ac20385a778615'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4b20a43e08878013a4cc5812236d6046'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '14dce49ab7da6088abc01bec4529f9d0'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '8cd5499a15fd58371759a3182b50ac33'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f634219101ddcef8327fb62f2bcb6a93'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '65dc9af6558243b4661ad44761e22cf4')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => '75e8857bbf1d491f0c582e08b1dadbd6'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'd42c39401147b531c474c6702437edcf'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '3f9c4530789ad55104bd4e6fb1d7b2c0'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => '205ce2875ce340d29d444c2b6204f1c0'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aba7ab22bcfc07e4378e40e92e7ab85d'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '0fdeef9971116c26a4343ffe35dd9108'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '41bd70d0c00715e47701fe13e338c380'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '7025463da9a70194436447a8e77cd8b3'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '493193bef61f5a7f8f8f89ca631a01de'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '15d17097502cbb9da419b86752c06d9e'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'f2b9640576dd571a10c73d7fdece7ee1'), 'compose.js' => array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '237bb2ec6345b546145338e55d430239'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'd5dbfb6ecaf54ae44e1835cfa6a206fe'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '6a717620e999e46ed810b94f2ed74e2e'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '8eeebd0f44dc2a530611a9dcf57618ff'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '10f616de89b12febcbf7a28b3e70f5fb'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e016dcf6dc5ed48938f8622acbc152f3'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4e3608876d4b4572c406b47966b8d075'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5045831f601200e96ad481e311acfe42'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '8e1e563024f178a8b0f7afc7af6ccc9c'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '8257ff89b380896a68c9e6b3675d9443'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '95eb42bf78fda778824eb0815055bb4e'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'df3aea46fc6e3563882bc8891b21101d'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '615a90c034053e3fb8a28e0d1e529d98'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '483bf66d05e72c9b55c05f3fe06a2ae6'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c43b49e3f3da377cefdadb0131ba7a31'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f8c65a436595a2be28654f3d22e0cdef'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '3bb3f6a7a8127b024342e718ad297e81'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '6c249322053c850933521e417707f651'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'df9dd983a8b8d0bda8c36bf20e864843'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'e723b9915311e214385b6be542981615'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '3a5a39a7794d70d393659c63c6e16de4'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '9beeec421f5c370a38fc7ff90b842291'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'aa3e0385227eba30d5dd2a21416cc3ea'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => '9b3d6777f60871d5b0a650bcdb3e6cd2'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '6e6869dc94974fb23e5747bc1cf59e23'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5fa0ce13edcf3443a48c1816b45d1923'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '455bbe5442bfb84840ff801a9ea5be69'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => '3c60390dd7af5bbc6043e53c9e1ff095'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '24f9aab700a7efdd145a30b6c4610615'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '3173f285aee099b367ac20385a778615'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4b20a43e08878013a4cc5812236d6046'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '14dce49ab7da6088abc01bec4529f9d0'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '8cd5499a15fd58371759a3182b50ac33'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f634219101ddcef8327fb62f2bcb6a93'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '65dc9af6558243b4661ad44761e22cf4')); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-post.js b/wp-includes/js/dist/edit-post.js index 3df8199a3f..9c0c0e809b 100644 --- a/wp-includes/js/dist/edit-post.js +++ b/wp-includes/js/dist/edit-post.js @@ -1395,7 +1395,8 @@ var PREFERENCES_DEFAULTS = { features: { fixedToolbar: false, showInserterHelpPanel: true, - welcomeGuide: true + welcomeGuide: true, + fullscreenMode: true }, pinnedPluginItems: {}, hiddenBlockTypes: [], diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js index 8c4fa4f43a..b8760d4bda 100644 --- a/wp-includes/js/dist/edit-post.min.js +++ b/wp-includes/js/dist/edit-post.min.js @@ -4,4 +4,4 @@ this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function A(n){if(t[n]) Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var A={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,A)&&(r[A]=e[A])}return r}},190:function(e,t,A){"use strict";var n=A(0),o=A(9),r=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2"}));t.a=r},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t){!function(){e.exports=this.wp.keycodes}()},22:function(e,t,A){"use strict";var n=A(36);var o=A(37);function r(e,t){return Object(n.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var A=[],n=!0,o=!1,r=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(A.push(c.value),!t||A.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return A}}(e,t)||Object(o.a)()}A.d(t,"a",(function(){return r}))},273:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},28:function(e,t){!function(){e.exports=this.wp.url}()},282:function(e,t,A){"use strict";var n=A(0),o=A(9),r=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));t.a=r},29:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t){!function(){e.exports=this.wp.hooks}()},32:function(e,t,A){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}A.d(t,"a",(function(){return n}))},34:function(e,t,A){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}A.d(t,"a",(function(){return n}))},36:function(e,t,A){"use strict";function n(e){if(Array.isArray(e))return e}A.d(t,"a",(function(){return n}))},37:function(e,t,A){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}A.d(t,"a",(function(){return n}))},38:function(e,t,A){"use strict";var n,o;function r(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function i(e,t,A){var n;if(e.length!==t.length)return!1;for(n=A;n=0||(o[A]=e[A]);return o}A.d(t,"a",(function(){return n}))},421:function(e,t,A){"use strict";A.r(t);var n={};A.r(n),A.d(n,"openGeneralSidebar",(function(){return W})),A.d(n,"closeGeneralSidebar",(function(){return z})),A.d(n,"openModal",(function(){return K})),A.d(n,"closeModal",(function(){return _})),A.d(n,"openPublishSidebar",(function(){return $})),A.d(n,"closePublishSidebar",(function(){return ee})),A.d(n,"togglePublishSidebar",(function(){return te})),A.d(n,"toggleEditorPanelEnabled",(function(){return Ae})),A.d(n,"toggleEditorPanelOpened",(function(){return ne})),A.d(n,"removeEditorPanel",(function(){return oe})),A.d(n,"toggleFeature",(function(){return re})),A.d(n,"switchEditorMode",(function(){return ce})),A.d(n,"togglePinnedPluginItem",(function(){return ie})),A.d(n,"hideBlockTypes",(function(){return ae})),A.d(n,"updatePreferredStyleVariations",(function(){return le})),A.d(n,"__experimentalUpdateLocalAutosaveInterval",(function(){return Ee})),A.d(n,"showBlockTypes",(function(){return se})),A.d(n,"setAvailableMetaBoxesPerLocation",(function(){return ue})),A.d(n,"requestMetaBoxUpdates",(function(){return Qe})),A.d(n,"metaBoxUpdatesSuccess",(function(){return de}));var o={};A.r(o),A.d(o,"getEditorMode",(function(){return ge})),A.d(o,"isEditorSidebarOpened",(function(){return be})),A.d(o,"isPluginSidebarOpened",(function(){return pe})),A.d(o,"getActiveGeneralSidebarName",(function(){return Ce})),A.d(o,"getPreferences",(function(){return me})),A.d(o,"getPreference",(function(){return Ie})),A.d(o,"isPublishSidebarOpened",(function(){return Oe})),A.d(o,"isEditorPanelRemoved",(function(){return fe})),A.d(o,"isEditorPanelEnabled",(function(){return he})),A.d(o,"isEditorPanelOpened",(function(){return je})),A.d(o,"isModalActive",(function(){return ve})),A.d(o,"isFeatureActive",(function(){return ke})),A.d(o,"isPluginItemPinned",(function(){return ye})),A.d(o,"getActiveMetaBoxLocations",(function(){return we})),A.d(o,"isMetaBoxLocationVisible",(function(){return Pe})),A.d(o,"isMetaBoxLocationActive",(function(){return Se})),A.d(o,"getMetaBoxesPerLocation",(function(){return Te})),A.d(o,"getAllMetaBoxes",(function(){return De})),A.d(o,"hasMetaBoxes",(function(){return xe})),A.d(o,"isSavingMetaBoxes",(function(){return Ve}));var r=A(0),c=(A(73),A(6)),i=A(29),a=A(46),l=A(54),E=(A(177),A(273)),s=A(30),u=A(125);Object(s.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return u.MediaUpload}));var Q=A(12),d=A(19),B=A(2),g=A(10),b=A(3),p=A(4),C=A(1),m=A(8),I=Object(m.compose)(Object(p.withSelect)((function(e,t){if(Object(g.hasBlockSupport)(t.name,"multiple",!0))return{};var A=e("core/block-editor").getBlocks(),n=Object(B.find)(A,(function(e){var A=e.name;return t.name===A}));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),Object(p.withDispatch)((function(e,t){var A=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(A)}}}))),O=Object(m.createHigherOrderComponent)((function(e){return I((function(t){var A=t.originalBlockClientId,n=t.selectFirst,o=Object(d.a)(t,["originalBlockClientId","selectFirst"]);if(!A)return Object(r.createElement)(e,o);var i=Object(g.getBlockType)(o.name),a=function(e){var t=Object(g.findTransform)(Object(g.getBlockTransforms)("to",e),(function(e){var t=e.type,A=e.blocks;return"block"===t&&1===A.length}));if(!t)return null;return Object(g.getBlockType)(t.blocks[0])}(o.name);return[Object(r.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(r.createElement)(e,Object(Q.a)({key:"block-edit"},o))),Object(r.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(r.createElement)(b.Button,{key:"find-original",isSecondary:!0,onClick:n},Object(C.__)("Find original")),Object(r.createElement)(b.Button,{key:"remove",isSecondary:!0,onClick:function(){return o.onReplace([])}},Object(C.__)("Remove")),a&&Object(r.createElement)(b.Button,{key:"transform",isSecondary:!0,onClick:function(){return o.onReplace(Object(g.createBlock)(a.name,o.attributes))}},Object(C.__)("Transform into:")," ",a.title)]},Object(r.createElement)("strong",null,i.title,": "),Object(C.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(s.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",O);var f=A(53),h=A(28);var j=Object(m.compose)(Object(p.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(p.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(m.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,A=e.editedPostContent,n=e.hasCopied,o=e.setState;return A.length>0&&Object(r.createElement)(b.ClipboardButton,{text:A,role:"menuitem",className:"components-menu-item__button",onCopy:function(){o({hasCopied:!0}),t("info",Object(C.__)("All content copied."),{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return o({hasCopied:!1})}},n?Object(C.__)("Copied!"):Object(C.__)("Copy all content"))}));var v=Object(p.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(r.createElement)(b.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(C.__)("Block Manager"))})),k=A(21);var y=Object(p.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(r.createElement)(b.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:k.displayShortcut.access("h")},Object(C.__)("Keyboard shortcuts"))})),w=Object(b.createSlotFill)("ToolsMoreMenuGroup"),P=w.Fill,S=w.Slot;P.Slot=function(e){var t=e.fillProps;return Object(r.createElement)(S,{fillProps:t},(function(e){return!Object(B.isEmpty)(e)&&Object(r.createElement)(b.MenuGroup,{label:Object(C.__)("Tools")},e)}))};var T=P;function D(){var e=Object(p.useDispatch)("core/edit-post").toggleFeature;return Object(r.createElement)(b.MenuItem,{onClick:function(){return e("welcomeGuide")}},Object(C.__)("Welcome Guide"))}Object(f.registerPlugin)("edit-post",{render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(T,null,(function(e){var t=e.onClose;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(v,{onSelect:t}),Object(r.createElement)(b.MenuItem,{role:"menuitem",href:Object(h.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(C.__)("Manage all reusable blocks")),Object(r.createElement)(y,{onSelect:t}),Object(r.createElement)(D,null),Object(r.createElement)(j,null),Object(r.createElement)(b.MenuItem,{role:"menuitem",href:Object(C.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_new"},Object(C.__)("Help")))})))}});var x=A(18),V=A(5);function M(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:H,A=arguments.length>1?arguments[1]:void 0;return e(t,A)}})])({isGeneralSidebarDismissed:function(e,t){switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var A=t.panelName;return R({},e,Object(V.a)({},A,R({},e[A],{enabled:!Object(B.get)(e,[A,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,o=!0===e[n]||Object(B.get)(e,[n,"opened"],!1);return R({},e,Object(V.a)({},n,R({},e[n],{opened:!o})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?R({},e,Object(V.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(e,t){return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?R({},e,Object(V.a)({},t.pluginName,!Object(B.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return B.without.apply(void 0,[e].concat(Object(x.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(B.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?R({},e,Object(V.a)({},t.blockName,t.blockStyle)):Object(B.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var L=Object(p.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),F=Object(p.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:L,preferences:N,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(B.includes)(e,t.panelName))return[].concat(Object(x.a)(e),[t.panelName])}return e}}),U=A(87),J=A.n(U),X=A(22),Z=A(48),G=A(40),Y=A.n(G);function W(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function z(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function K(e){return{type:"OPEN_MODAL",name:e}}function _(){return{type:"CLOSE_MODAL"}}function $(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ee(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function te(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function Ae(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function ne(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function oe(e){return{type:"REMOVE_PANEL",panelName:e}}function re(e){return{type:"TOGGLE_FEATURE",feature:e}}function ce(e){return{type:"SWITCH_MODE",mode:e}}function ie(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ae(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(B.castArray)(e)}}function le(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ee(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function se(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(B.castArray)(e)}}function ue(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function Qe(){return{type:"REQUEST_META_BOX_UPDATES"}}function de(){return{type:"META_BOX_UPDATES_SUCCESS"}}var Be=A(38);function ge(e){return Ie(e,"editorMode","visual")}function be(e){var t=Ce(e);return Object(B.includes)(["edit-post/document","edit-post/block"],t)}function pe(e){return!!Ce(e)&&!be(e)}function Ce(e){return Ie(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function me(e){return e.preferences}function Ie(e,t,A){var n=me(e)[t];return void 0===n?A:n}function Oe(e){return e.publishSidebarActive}function fe(e,t){return Object(B.includes)(e.removedPanels,t)}function he(e,t){var A=Ie(e,"panels");return!fe(e,t)&&Object(B.get)(A,[t,"enabled"],!0)}function je(e,t){var A=Ie(e,"panels");return!0===Object(B.get)(A,[t])||!0===Object(B.get)(A,[t,"opened"])}function ve(e,t){return e.activeModal===t}function ke(e,t){return Object(B.get)(e.preferences.features,[t],!1)}function ye(e,t){var A=Ie(e,"pinnedPluginItems",{});return Object(B.get)(A,[t],!0)}var we=Object(Be.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Se(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Pe(e,t){return Se(e,t)&&Object(B.some)(Te(e,t),(function(t){var A=t.id;return he(e,"meta-box-".concat(A))}))}function Se(e,t){var A=Te(e,t);return!!A&&0!==A.length}function Te(e,t){return e.metaBoxes.locations[t]}var De=Object(Be.a)((function(e){return Object(B.flatten)(Object(B.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function xe(e){return we(e).length>0}function Ve(e){return e.metaBoxes.isSaving}var Me,Re={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(p.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var A=Object(p.select)("core/editor").isSavingPost(),n=Object(p.select)("core/editor").isAutosavingPost(),o=Object(p.select)("core/edit-post").hasMetaBoxes();Me&&Me(),Me=Object(p.subscribe)((function(){var e=Object(p.select)("core/editor").isSavingPost(),r=Object(p.select)("core/editor").isAutosavingPost(),c=o&&A&&!e&&!n;A=e,n=r,c&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})}))},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var A=t.getState(),n=Object(p.select)("core/editor").getCurrentPost(A),o=[!!n.comment_status&&["comment_status",n.comment_status],!!n.ping_status&&["ping_status",n.ping_status],!!n.sticky&&["sticky",n.sticky],!!n.author&&["post_author",n.author]].filter(Boolean),r=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(x.a)(we(A).map((function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))})))),c=Object(B.reduce)(r,(function(e,t){var A=!0,n=!1,o=void 0;try{for(var r,c=t[Symbol.iterator]();!(A=(r=c.next()).done);A=!0){var i=Object(X.a)(r.value,2),a=i[0],l=i[1];e.append(a,l)}}catch(e){n=!0,o=e}finally{try{A||null==c.return||c.return()}finally{if(n)throw o}}return e}),new window.FormData);o.forEach((function(e){var t=Object(X.a)(e,2),A=t[0],n=t[1];return c.append(A,n)})),Y()({url:window._wpMetaBoxUrl,method:"POST",body:c,parse:!1}).then((function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})}))},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(p.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(C.__)("Visual editor selected"):Object(C.__)("Code editor selected");Object(Z.speak)(t,"assertive")}};var He=function(e){var t,A=[J()(Re)],n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return n.apply(void 0,arguments)}};return t=A.map((function(e){return e(o)})),n=B.flowRight.apply(void 0,Object(x.a)(t))(e.dispatch),e.dispatch=n,e};var qe={SELECT:Object(p.createRegistryControl)((function(e){return function(t){var A,n=t.storeName,o=t.selectorName,r=t.args;return(A=e.select(n))[o].apply(A,Object(x.a)(r))}}))},Ne="core/edit-post",Le=Object(p.registerStore)(Ne,{reducer:F,actions:n,selectors:o,controls:qe,persist:["preferences"]});He(Le);var Fe=A(14),Ue=A(13),Je=A(15),Xe=A(16),Ze=A(17),Ge=A(44),Ye=A.n(Ge),We={"t a l e s o f g u t e n b e r g":function(e){(document.activeElement.classList.contains("edit-post-visual-editor")||document.activeElement===document.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},ze=A(11),Ke=A.n(ze),_e=A(115);var $e=Object(m.compose)(Object(p.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(p.withDispatch)((function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}})))((function(e){var t=e.onExit,A=e.isRichEditingEnabled;return Object(r.createElement)("div",{className:"edit-post-text-editor"},A&&Object(r.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(r.createElement)("h2",null,Object(C.__)("Editing Code")),Object(r.createElement)(b.Button,{onClick:t,icon:_e.a,shortcut:k.displayShortcut.secondary("m")},Object(C.__)("Exit Code Editor")),Object(r.createElement)(i.TextEditorGlobalKeyboardShortcuts,null)),Object(r.createElement)("div",{className:"edit-post-text-editor__body"},Object(r.createElement)(i.PostTitle,null),Object(r.createElement)(i.PostTextEditor,null)))})),et=A(9),tt=Object(r.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(et.Path,{d:"M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z"}));var At=Object(b.withSpokenMessages)((function(e){var t=e.onClick,A=void 0===t?B.noop:t,n=e.small,o=void 0!==n&&n,c=e.speak,i=Object(p.useSelect)((function(e){return{shortcut:e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-sidebar"),areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}}),[]),a=i.shortcut,l=i.areAdvancedSettingsOpened,E=Object(p.useDispatch)("core/edit-post"),s=E.openGeneralSidebar,u=E.closeGeneralSidebar,Q=l?Object(C.__)("Hide Block Settings"):Object(C.__)("Show Block Settings");return Object(r.createElement)(b.MenuItem,{onClick:function(){l?u():(s("edit-post/block"),c(l?Object(C.__)("Block settings closed"):Object(C.__)("Additional settings are now available in the Editor block settings sidebar")),A())},icon:tt,shortcut:a},!o&&Q)}));function nt(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function ot(e){for(var t=1;t0?"mixed":"false",Object(r.createElement)("div",{role:"group","aria-labelledby":u,className:"edit-post-manage-blocks-modal__category"},Object(r.createElement)(b.CheckboxControl,{checked:Q,onChange:i,className:"edit-post-manage-blocks-modal__category-title","aria-checked":E,label:Object(r.createElement)("span",{id:u},A.title)}),Object(r.createElement)(mt,{blockTypes:l,value:s,onItemChange:c}))}));var ft=Object(m.compose)([Object(m.withState)({search:""}),Object(p.withSelect)((function(e){var t=e("core/blocks"),A=t.getBlockTypes,n=t.getCategories,o=t.hasBlockSupport,r=t.isMatchingSearchTerm,c=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),i=Object(B.isArray)(c)&&c.length;return{blockTypes:A(),categories:n(),hasBlockSupport:o,isMatchingSearchTerm:r,numberOfHiddenBlocks:i}}))])((function(e){var t=e.search,A=e.setState,n=e.blockTypes,o=e.categories,c=e.hasBlockSupport,i=e.isMatchingSearchTerm,a=e.numberOfHiddenBlocks;return n=n.filter((function(e){return c(e,"inserter",!0)&&(!t||i(e,t))&&(!e.parent||Object(B.includes)(e.parent,"core/post-content"))})),Object(r.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(r.createElement)(b.TextControl,{type:"search",label:Object(C.__)("Search for a block"),value:t,onChange:function(e){return A({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!a&&Object(r.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(C.sprintf)(Object(C._n)("%1$d block is disabled.","%1$d blocks are disabled.",a),a)),Object(r.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(C.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===n.length&&Object(r.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(C.__)("No blocks found.")),o.map((function(e){return Object(r.createElement)(Ot,{key:e.slug,category:e,blockTypes:Object(B.filter)(n,{category:e.slug})})}))))}));var ht=Object(m.compose)([Object(p.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(p.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,A=e.closeModal;return t?Object(r.createElement)(b.Modal,{className:"edit-post-manage-blocks-modal",title:Object(C.__)("Block Manager"),closeLabel:Object(C.__)("Close"),onRequestClose:A},Object(r.createElement)(ft,null)):null})),jt=function(e){var t=e.title,A=e.children;return Object(r.createElement)("section",{className:"edit-post-options-modal__section"},Object(r.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),A)};var vt=function(e){var t=e.label,A=e.isChecked,n=e.onChange,o=e.children;return Object(r.createElement)("div",{className:"edit-post-options-modal__option"},Object(r.createElement)(b.CheckboxControl,{label:t,checked:A,onChange:n}),o)};function kt(e){var t=e.willEnable,A=Object(r.useState)(!1),n=Object(X.a)(A,2),o=n[0],c=n[1];return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(C.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(r.createElement)(b.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isSecondary:!0,isBusy:o,disabled:o,onClick:function(){c(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(C.__)("Enable & Reload"):Object(C.__)("Disable & Reload")))}var yt=Object(p.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,A=e.areCustomFieldsEnabled,n=Object(r.useState)(A),o=Object(X.a)(n,2),c=o[0],i=o[1];return Object(r.createElement)(vt,{label:t,isChecked:c,onChange:i},c!==A&&Object(r.createElement)(kt,{willEnable:c}))})),wt=Object(m.compose)(Object(p.withSelect)((function(e,t){var A=t.panelName,n=e("core/edit-post"),o=n.isEditorPanelEnabled;return{isRemoved:(0,n.isEditorPanelRemoved)(A),isChecked:o(A)}})),Object(m.ifCondition)((function(e){return!e.isRemoved})),Object(p.withDispatch)((function(e,t){var A=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(A)}}})))(vt),Pt=Object(b.createSlotFill)("EnablePluginDocumentSettingPanelOption"),St=Pt.Fill,Tt=Pt.Slot,Dt=function(e){var t=e.label,A=e.panelName;return Object(r.createElement)(St,null,Object(r.createElement)(wt,{label:t,panelName:A}))};Dt.Slot=Tt;var xt=Dt,Vt=Object(m.compose)(Object(p.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),A=t.enablePublishSidebar,n=t.disablePublishSidebar;return{onChange:function(e){return e?A():n()}}})),Object(l.ifViewportMatches)("medium"))(vt),Mt=Object(m.compose)(Object(p.withSelect)((function(e,t){var A=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(A)}})),Object(p.withDispatch)((function(e,t){var A=t.feature,n=e("core/edit-post").toggleFeature;return{onChange:function(){n(A)}}})))(vt);var Rt=Object(p.withSelect)((function(e){var t=e("core/editor").getEditorSettings,A=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:A()}}))((function(e){var t=e.areCustomFieldsRegistered,A=e.metaBoxes,n=Object(d.a)(e,["areCustomFieldsRegistered","metaBoxes"]),o=Object(B.filter)(A,(function(e){return"postcustom"!==e.id}));return t||0!==o.length?Object(r.createElement)(jt,n,t&&Object(r.createElement)(yt,{label:Object(C.__)("Custom fields")}),Object(B.map)(o,(function(e){var t=e.id,A=e.title;return Object(r.createElement)(wt,{key:t,label:A,panelName:"meta-box-".concat(t)})}))):null}));var Ht=Object(m.compose)(Object(p.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,A=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(B.get)(A,["viewable"],!1)}})),Object(p.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,A=e.isViewable,n=e.closeModal;return t?Object(r.createElement)(b.Modal,{className:"edit-post-options-modal",title:Object(C.__)("Options"),closeLabel:Object(C.__)("Close"),onRequestClose:n},Object(r.createElement)(jt,{title:Object(C.__)("General")},Object(r.createElement)(Vt,{label:Object(C.__)("Pre-publish checks")}),Object(r.createElement)(Mt,{feature:"showInserterHelpPanel",label:Object(C.__)("Inserter help panel")})),Object(r.createElement)(jt,{title:Object(C.__)("Document panels")},Object(r.createElement)(xt.Slot,null),A&&Object(r.createElement)(wt,{label:Object(C.__)("Permalink"),panelName:"post-link"}),Object(r.createElement)(i.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(r.createElement)(wt,{label:Object(B.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(r.createElement)(i.PostFeaturedImageCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Featured image"),panelName:"featured-image"})),Object(r.createElement)(i.PostExcerptCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Excerpt"),panelName:"post-excerpt"})),Object(r.createElement)(i.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(r.createElement)(wt,{label:Object(C.__)("Discussion"),panelName:"discussion-panel"})),Object(r.createElement)(i.PageAttributesCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Page attributes"),panelName:"page-attributes"}))),Object(r.createElement)(Rt,{title:Object(C.__)("Advanced panels")})):null})),qt=function(e){function t(){return Object(Fe.a)(this,t),Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}},{key:"componentWillUnmount",value:function(){this.isSticky&&document.body.classList.add("sticky-menu")}},{key:"componentDidUpdate",value:function(e){this.props.isActive!==e.isActive&&this.sync()}},{key:"sync",value:function(){this.props.isActive?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}},{key:"render",value:function(){return null}}]),t}(r.Component),Nt=Object(p.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(qt);var Lt=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,A=t.postId,n=t.postStatus,o=t.postType,r=t.isSavingPost,c=this.state.historyId;"trash"!==n||r?A===e.postId&&A===c||"auto-draft"===n||this.setBrowserURL(A):this.setTrashURL(A,o)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(h.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(h.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),t}(r.Component),Ft=Object(p.withSelect)((function(e){var t=e("core/editor"),A=t.getCurrentPost,n=t.isSavingPost,o=A();return{postId:o.id,postStatus:o.status,postType:o.type,isSavingPost:n()}}))(Lt),Ut=Object(r.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(et.Path,{d:"M14 5l-5 5 5 5-1 2-7-7 7-7z"}));var Jt=Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPostType,A=e("core/edit-post").isFeatureActive,n=e("core").getPostType;return{isActive:A("fullscreenMode"),postType:n(t())}}))((function(e){var t=e.isActive,A=e.postType;return t&&A?Object(r.createElement)(b.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(r.createElement)(b.Button,{icon:Ut,href:Object(h.addQueryArgs)("edit.php",{post_type:A.slug}),label:Object(B.get)(A,["labels","view_items"],Object(C.__)("Back"))})):null}));var Xt=function(){var e=Object(p.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,isTextModeEnabled:"text"===e("core/edit-post").getEditorMode()}}),[]),t=e.hasFixedToolbar,A=e.showInserter,n=e.isTextModeEnabled,o=Object(m.useViewportMatch)("medium"),a=t?Object(C.__)("Document and block tools"):Object(C.__)("Document tools");return Object(r.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":a},Object(r.createElement)(c.Inserter,{disabled:!A,position:"bottom right",showInserterHelpPanel:!0}),Object(r.createElement)(i.EditorHistoryUndo,null),Object(r.createElement)(i.EditorHistoryRedo,null),Object(r.createElement)(i.TableOfContents,{hasOutlineItemsDisabled:n}),Object(r.createElement)(c.BlockNavigationDropdown,{isDisabled:n}),Object(r.createElement)(c.ToolSelector,null),(t||!o)&&Object(r.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(r.createElement)(c.BlockToolbar,{hideDragHandle:!0})))},Zt=A(282);function Gt(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}var Yt=[{value:"visual",label:Object(C.__)("Visual editor")},{value:"text",label:Object(C.__)("Code editor")}];var Wt=function(){var e=Object(p.useSelect)((function(e){return{shortcut:e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),[]),t=e.shortcut,A=e.isRichEditingEnabled,n=e.isCodeEditingEnabled,o=e.mode,c=Object(p.useDispatch)("core/edit-post").switchEditorMode,i=Yt.map((function(e){return e.value!==o?function(e){for(var t=1;t icon."),{InserterIconImage:Object(r.createElement)(mn,{className:"edit-post-welcome-guide__inserter-icon"})}))),Object(r.createElement)(b.GuidePage,{className:"edit-post-welcome-guide__page"},Object(r.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(C.__)("Learn how to use the Block Editor")),Object(r.createElement)(Cn,{className:"edit-post-welcome-guide__image"}),Object(r.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(C.__)("New to the Block Editor? Want to learn more about using it? "),Object(r.createElement)(b.ExternalLink,{href:Object(C.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(C.__)("Here's a detailed guide."))))):null}var On=function(){var e=Object(m.useViewportMatch)("small","<"),t=Object(p.useDispatch)("core/edit-post"),A=t.closePublishSidebar,n=t.openGeneralSidebar,o=t.togglePublishSidebar,a=Object(p.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),mode:e("core/edit-post").getEditorMode(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),previousShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/previous-region"),nextShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/next-region"),hasBlockSelected:e("core/block-editor").getBlockSelectionStart()}}),[]),l=a.mode,E=a.isRichEditingEnabled,s=a.editorSidebarOpened,u=a.pluginSidebarOpened,Q=a.publishSidebarOpened,d=a.hasActiveMetaboxes,B=a.isSaving,g=a.hasFixedToolbar,I=a.previousShortcut,O=a.nextShortcut,h=a.hasBlockSelected,j=Object(c.__experimentalUsePageTemplatePickerVisible)(),v=s||u||Q,k=Ke()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":v,"has-fixed-toolbar":g,"has-metaboxes":d});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Nt,null),Object(r.createElement)(Ft,null),Object(r.createElement)(i.UnsavedChangesWarning,null),Object(r.createElement)(i.AutosaveMonitor,null),Object(r.createElement)(i.LocalAutosaveMonitor,null),Object(r.createElement)(Et,null),Object(r.createElement)(i.EditorKeyboardShortcutsRegister,null),Object(r.createElement)(b.FocusReturnProvider,null,Object(r.createElement)(c.__experimentalEditorSkeleton,{className:k,header:Object(r.createElement)(uA,null),sidebar:Object(r.createElement)(r.Fragment,null,!v&&Object(r.createElement)("div",{className:"edit-post-layout__toogle-sidebar-panel"},Object(r.createElement)(b.Button,{isSecondary:!0,className:"edit-post-layout__toogle-sidebar-panel-button",onClick:function(){return n(h?"edit-post/block":"edit-post/document")},"aria-expanded":!1},h?Object(C.__)("Open block settings"):Object(C.__)("Open document settings"))),Object(r.createElement)(on,null),Object(r.createElement)(pA.Slot,null)),content:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.EditorNotices,null),("text"===l||!E)&&Object(r.createElement)($e,null),E&&"visual"===l&&Object(r.createElement)(lt,null),Object(r.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(r.createElement)(_A,{location:"normal"}),Object(r.createElement)(_A,{location:"advanced"})),e&&v&&Object(r.createElement)(b.ScrollLock,null)),footer:E&&"visual"===l&&Object(r.createElement)("div",{className:"edit-post-layout__footer"},Object(r.createElement)(c.BlockBreadcrumb,null)),publish:Q?Object(r.createElement)(i.PostPublishPanel,{onClose:A,forceIsDirty:d,forceIsSaving:B,PrePublishExtension:Bn.Slot,PostPublishExtension:En.Slot}):Object(r.createElement)("div",{className:"edit-post-layout__toogle-publish-panel"},Object(r.createElement)(b.Button,{isSecondary:!0,className:"edit-post-layout__toogle-publish-panel-button",onClick:o,"aria-expanded":!1},Object(C.__)("Open publish panel"))),shortcuts:{previous:I,next:O}}),Object(r.createElement)(ht,null),Object(r.createElement)(Ht,null),Object(r.createElement)(Ct,null),Object(r.createElement)(In,null),Object(r.createElement)(b.Popover.Slot,null),Object(r.createElement)(f.PluginArea,null),j&&Object(r.createElement)(c.__experimentalPageTemplatePicker,null)))},fn=function(e){var t=e.postId;return function(e){var t=Object(p.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(Ne).isEditorSidebarOpened()}}),[e]),A=t.hasBlockSelection,n=t.isEditorSidebarOpened,o=Object(p.useDispatch)(Ne).openGeneralSidebar;Object(r.useEffect)((function(){n&&o(A?"edit-post/block":"edit-post/document")}),[A,n])}(t),function(e){var t=Object(p.useSelect)((function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),activeGeneralSidebarName:e(Ne).getActiveGeneralSidebarName()}}),[e]),A=t.isSmall,n=t.activeGeneralSidebarName,o=Object(p.useDispatch)(Ne),c=o.openGeneralSidebar,i=o.closeGeneralSidebar,a=Object(r.useRef)(null),l=Object(r.useRef)(null);Object(r.useEffect)((function(){a.current!==A&&(a.current=A,A?(l.current=n,n&&i()):l.current&&!n&&(c(l.current),l.current=null))}),[A,n])}(t),function(e){var t=Object(p.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,A=Object(r.useRef)();Object(r.useEffect)((function(){A.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(r.useEffect)((function(){t&&A.current&&A.current.setAttribute("href",t)}),[t])}(t),null};function hn(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}var jn=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))).getEditorSettings=Ye()(e.getEditorSettings,{maxSize:1}),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"getEditorSettings",value:function(e,t,A,n,o,r,c,i,a){if(e=function(e){for(var t=1;t0){var l=!0===e.allowedBlockTypes?Object(B.map)(r,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=B.without.apply(void 0,[l].concat(Object(x.a)(o)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,A=e.hasFixedToolbar,n=e.focusMode,o=e.post,c=e.postId,a=e.initialEdits,l=e.onError,E=e.hiddenBlockTypes,s=e.blockTypes,u=e.preferredStyleVariations,B=e.__experimentalLocalAutosaveInterval,g=e.showInserterHelpPanel,p=e.updatePreferredStyleVariations,C=Object(d.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!o)return null;var m=this.getEditorSettings(t,A,g,n,E,s,u,B,p);return Object(r.createElement)(r.StrictMode,null,Object(r.createElement)(It.Provider,{value:t},Object(r.createElement)(b.SlotFillProvider,null,Object(r.createElement)(b.DropZoneProvider,null,Object(r.createElement)(i.EditorProvider,Object(Q.a)({settings:m,post:o,initialEdits:a,useSubRegistry:!1},C),Object(r.createElement)(i.ErrorBoundary,{onError:l},Object(r.createElement)(fn,{postId:c}),Object(r.createElement)(On,null),Object(r.createElement)(b.KeyboardShortcuts,{shortcuts:We})),Object(r.createElement)(i.PostLockedModal,null))))))}}]),t}(r.Component),vn=Object(m.compose)([Object(p.withSelect)((function(e,t){var A=t.postId,n=t.postType,o=e("core/edit-post"),r=o.isFeatureActive,c=o.getPreference,i=e("core").getEntityRecord,a=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:r("showInserterHelpPanel"),hasFixedToolbar:r("fixedToolbar"),focusMode:r("focusMode"),post:i("postType",n,A),preferredStyleVariations:c("preferredStyleVariations"),hiddenBlockTypes:c("hiddenBlockTypes"),blockTypes:a(),__experimentalLocalAutosaveInterval:c("localAutosaveInterval")}})),Object(p.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(jn),kn=function(e,t){return!Array.isArray(t)||(A=e,n=t,0===Object(B.difference)(A,n).length);var A,n},yn=function(e){var t=e.allowedBlocks,A=e.icon,n=e.label,o=e.onClick,c=e.small,i=e.role;return Object(r.createElement)(at,null,(function(e){var a=e.selectedBlocks,l=e.onClose;return kn(a,t)?Object(r.createElement)(b.MenuItem,{onClick:Object(m.compose)(o,l),icon:A||"admin-plugins",label:c?n:void 0,role:i},!c&&n):null}))},wn=Object(m.compose)(Object(f.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,A=void 0===t?B.noop:t,n=Object(d.a)(e,["onClick"]);return Object(r.createElement)($t,null,(function(e){return Object(r.createElement)(b.MenuItem,Object(Q.a)({},n,{onClick:Object(m.compose)(A,e.onClose)}))}))}));var Pn=Object(m.compose)(Object(f.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(p.withSelect)((function(e,t){var A=t.sidebarName,n=e("core/edit-post"),o=n.getActiveGeneralSidebarName,r=n.isPluginItemPinned;return{isActive:o()===A,isPinned:r(A)}})),Object(p.withDispatch)((function(e,t){var A=t.isActive,n=t.sidebarName,o=e("core/edit-post"),r=o.closeGeneralSidebar,c=o.openGeneralSidebar,i=o.togglePinnedPluginItem;return{togglePin:function(){i(n)},toggleSidebar:function(){A?r():c(n)}}})))((function(e){var t=e.children,A=e.className,n=e.icon,o=e.isActive,c=e.isPinnable,i=void 0===c||c,a=e.isPinned,l=e.sidebarName,E=e.title,s=e.togglePin,u=e.toggleSidebar;return Object(r.createElement)(r.Fragment,null,i&&Object(r.createElement)(EA,null,a&&Object(r.createElement)(b.Button,{icon:n,label:E,onClick:u,isPressed:o,"aria-expanded":o})),Object(r.createElement)(pA,{name:l},Object(r.createElement)(CA,{closeLabel:Object(C.__)("Close plugin")},Object(r.createElement)("strong",null,E),i&&Object(r.createElement)(b.Button,{icon:a?"star-filled":"star-empty",label:a?Object(C.__)("Unpin from toolbar"):Object(C.__)("Pin to toolbar"),onClick:s,isPressed:a,"aria-expanded":a})),Object(r.createElement)(b.Panel,{className:A},t)))})),Sn=Object(m.compose)(Object(f.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(p.withSelect)((function(e,t){var A=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===A}})),Object(p.withDispatch)((function(e,t){var A=t.isSelected,n=t.sidebarName,o=e("core/edit-post"),r=o.closeGeneralSidebar,c=o.openGeneralSidebar;return{onClick:A?r:function(){return c(n)}}})))((function(e){var t=e.children,A=e.icon,n=e.isSelected,o=e.onClick;return Object(r.createElement)(wn,{icon:n?tA.a:A,isSelected:n,role:"menuitemcheckbox",onClick:o},t)}));function Tn(e,t,A,n,o){Object(r.unmountComponentAtNode)(A);var c=Tn.bind(null,e,t,A,n,o);Object(r.render)(Object(r.createElement)(vn,{settings:n,onError:c,postId:t,postType:e,initialEdits:o,recovery:!0}),A)}function Dn(e,t,A,n,o){var c=document.getElementById(e),i=Tn.bind(null,t,A,c,n,o);Object(E.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(function(e){var t=document.getElementsByClassName("block-editor-editor-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),window.scrollTo(0,0))})),Object(r.render)(Object(r.createElement)(vn,{settings:n,onError:i,postId:A,postType:t,initialEdits:o}),c)}A.d(t,"reinitializeEditor",(function(){return Tn})),A.d(t,"initializeEditor",(function(){return Dn})),A.d(t,"PluginBlockSettingsMenuItem",(function(){return yn})),A.d(t,"PluginDocumentSettingPanel",(function(){return nn})),A.d(t,"PluginMoreMenuItem",(function(){return wn})),A.d(t,"PluginPostPublishPanel",(function(){return En})),A.d(t,"PluginPostStatusInfo",(function(){return DA})),A.d(t,"PluginPrePublishPanel",(function(){return Bn})),A.d(t,"PluginSidebar",(function(){return Pn})),A.d(t,"PluginSidebarMoreMenuItem",(function(){return Sn}))},44:function(e,t,A){e.exports=function(e,t){var A,n,o,r=0;function c(){var t,c,i=n,a=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,A)&&(r[A]=e[A])}return r}},190:function(e,t,A){"use strict";var n=A(0),o=A(9),r=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M15.3 5.3l-6.8 6.8-2.8-2.8-1.4 1.4 4.2 4.2 8.2-8.2"}));t.a=r},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t){!function(){e.exports=this.wp.keycodes}()},22:function(e,t,A){"use strict";var n=A(36);var o=A(37);function r(e,t){return Object(n.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var A=[],n=!0,o=!1,r=void 0;try{for(var c,i=e[Symbol.iterator]();!(n=(c=i.next()).done)&&(A.push(c.value),!t||A.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return A}}(e,t)||Object(o.a)()}A.d(t,"a",(function(){return r}))},273:function(e,t){!function(){e.exports=this.wp.blockLibrary}()},28:function(e,t){!function(){e.exports=this.wp.url}()},282:function(e,t,A){"use strict";var n=A(0),o=A(9),r=Object(n.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(n.createElement)(o.Path,{d:"M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));t.a=r},29:function(e,t){!function(){e.exports=this.wp.editor}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t){!function(){e.exports=this.wp.hooks}()},32:function(e,t,A){"use strict";function n(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}A.d(t,"a",(function(){return n}))},34:function(e,t,A){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}A.d(t,"a",(function(){return n}))},36:function(e,t,A){"use strict";function n(e){if(Array.isArray(e))return e}A.d(t,"a",(function(){return n}))},37:function(e,t,A){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}A.d(t,"a",(function(){return n}))},38:function(e,t,A){"use strict";var n,o;function r(e){return[e]}function c(){var e={clear:function(){e.head=null}};return e}function i(e,t,A){var n;if(e.length!==t.length)return!1;for(n=A;n=0||(o[A]=e[A]);return o}A.d(t,"a",(function(){return n}))},421:function(e,t,A){"use strict";A.r(t);var n={};A.r(n),A.d(n,"openGeneralSidebar",(function(){return W})),A.d(n,"closeGeneralSidebar",(function(){return z})),A.d(n,"openModal",(function(){return K})),A.d(n,"closeModal",(function(){return _})),A.d(n,"openPublishSidebar",(function(){return $})),A.d(n,"closePublishSidebar",(function(){return ee})),A.d(n,"togglePublishSidebar",(function(){return te})),A.d(n,"toggleEditorPanelEnabled",(function(){return Ae})),A.d(n,"toggleEditorPanelOpened",(function(){return ne})),A.d(n,"removeEditorPanel",(function(){return oe})),A.d(n,"toggleFeature",(function(){return re})),A.d(n,"switchEditorMode",(function(){return ce})),A.d(n,"togglePinnedPluginItem",(function(){return ie})),A.d(n,"hideBlockTypes",(function(){return ae})),A.d(n,"updatePreferredStyleVariations",(function(){return le})),A.d(n,"__experimentalUpdateLocalAutosaveInterval",(function(){return Ee})),A.d(n,"showBlockTypes",(function(){return se})),A.d(n,"setAvailableMetaBoxesPerLocation",(function(){return ue})),A.d(n,"requestMetaBoxUpdates",(function(){return Qe})),A.d(n,"metaBoxUpdatesSuccess",(function(){return de}));var o={};A.r(o),A.d(o,"getEditorMode",(function(){return ge})),A.d(o,"isEditorSidebarOpened",(function(){return be})),A.d(o,"isPluginSidebarOpened",(function(){return pe})),A.d(o,"getActiveGeneralSidebarName",(function(){return Ce})),A.d(o,"getPreferences",(function(){return me})),A.d(o,"getPreference",(function(){return Ie})),A.d(o,"isPublishSidebarOpened",(function(){return Oe})),A.d(o,"isEditorPanelRemoved",(function(){return fe})),A.d(o,"isEditorPanelEnabled",(function(){return he})),A.d(o,"isEditorPanelOpened",(function(){return je})),A.d(o,"isModalActive",(function(){return ve})),A.d(o,"isFeatureActive",(function(){return ke})),A.d(o,"isPluginItemPinned",(function(){return ye})),A.d(o,"getActiveMetaBoxLocations",(function(){return we})),A.d(o,"isMetaBoxLocationVisible",(function(){return Pe})),A.d(o,"isMetaBoxLocationActive",(function(){return Se})),A.d(o,"getMetaBoxesPerLocation",(function(){return Te})),A.d(o,"getAllMetaBoxes",(function(){return De})),A.d(o,"hasMetaBoxes",(function(){return xe})),A.d(o,"isSavingMetaBoxes",(function(){return Ve}));var r=A(0),c=(A(73),A(6)),i=A(29),a=A(46),l=A(54),E=(A(177),A(273)),s=A(30),u=A(125);Object(s.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return u.MediaUpload}));var Q=A(12),d=A(19),B=A(2),g=A(10),b=A(3),p=A(4),C=A(1),m=A(8),I=Object(m.compose)(Object(p.withSelect)((function(e,t){if(Object(g.hasBlockSupport)(t.name,"multiple",!0))return{};var A=e("core/block-editor").getBlocks(),n=Object(B.find)(A,(function(e){var A=e.name;return t.name===A}));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),Object(p.withDispatch)((function(e,t){var A=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(A)}}}))),O=Object(m.createHigherOrderComponent)((function(e){return I((function(t){var A=t.originalBlockClientId,n=t.selectFirst,o=Object(d.a)(t,["originalBlockClientId","selectFirst"]);if(!A)return Object(r.createElement)(e,o);var i=Object(g.getBlockType)(o.name),a=function(e){var t=Object(g.findTransform)(Object(g.getBlockTransforms)("to",e),(function(e){var t=e.type,A=e.blocks;return"block"===t&&1===A.length}));if(!t)return null;return Object(g.getBlockType)(t.blocks[0])}(o.name);return[Object(r.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(r.createElement)(e,Object(Q.a)({key:"block-edit"},o))),Object(r.createElement)(c.Warning,{key:"multiple-use-warning",actions:[Object(r.createElement)(b.Button,{key:"find-original",isSecondary:!0,onClick:n},Object(C.__)("Find original")),Object(r.createElement)(b.Button,{key:"remove",isSecondary:!0,onClick:function(){return o.onReplace([])}},Object(C.__)("Remove")),a&&Object(r.createElement)(b.Button,{key:"transform",isSecondary:!0,onClick:function(){return o.onReplace(Object(g.createBlock)(a.name,o.attributes))}},Object(C.__)("Transform into:")," ",a.title)]},Object(r.createElement)("strong",null,i.title,": "),Object(C.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(s.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",O);var f=A(53),h=A(28);var j=Object(m.compose)(Object(p.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(p.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(m.withState)({hasCopied:!1}))((function(e){var t=e.createNotice,A=e.editedPostContent,n=e.hasCopied,o=e.setState;return A.length>0&&Object(r.createElement)(b.ClipboardButton,{text:A,role:"menuitem",className:"components-menu-item__button",onCopy:function(){o({hasCopied:!0}),t("info",Object(C.__)("All content copied."),{isDismissible:!0,type:"snackbar"})},onFinishCopy:function(){return o({hasCopied:!1})}},n?Object(C.__)("Copied!"):Object(C.__)("Copy all content"))}));var v=Object(p.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(r.createElement)(b.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(C.__)("Block Manager"))})),k=A(21);var y=Object(p.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(r.createElement)(b.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:k.displayShortcut.access("h")},Object(C.__)("Keyboard shortcuts"))})),w=Object(b.createSlotFill)("ToolsMoreMenuGroup"),P=w.Fill,S=w.Slot;P.Slot=function(e){var t=e.fillProps;return Object(r.createElement)(S,{fillProps:t},(function(e){return!Object(B.isEmpty)(e)&&Object(r.createElement)(b.MenuGroup,{label:Object(C.__)("Tools")},e)}))};var T=P;function D(){var e=Object(p.useDispatch)("core/edit-post").toggleFeature;return Object(r.createElement)(b.MenuItem,{onClick:function(){return e("welcomeGuide")}},Object(C.__)("Welcome Guide"))}Object(f.registerPlugin)("edit-post",{render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(T,null,(function(e){var t=e.onClose;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(v,{onSelect:t}),Object(r.createElement)(b.MenuItem,{role:"menuitem",href:Object(h.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(C.__)("Manage all reusable blocks")),Object(r.createElement)(y,{onSelect:t}),Object(r.createElement)(D,null),Object(r.createElement)(j,null),Object(r.createElement)(b.MenuItem,{role:"menuitem",href:Object(C.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_new"},Object(C.__)("Help")))})))}});var x=A(18),V=A(5);function M(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function R(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:H,A=arguments.length>1?arguments[1]:void 0;return e(t,A)}})])({isGeneralSidebarDismissed:function(e,t){switch(t.type){case"OPEN_GENERAL_SIDEBAR":case"CLOSE_GENERAL_SIDEBAR":return"CLOSE_GENERAL_SIDEBAR"===t.type}return e},panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var A=t.panelName;return R({},e,Object(V.a)({},A,R({},e[A],{enabled:!Object(B.get)(e,[A,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,o=!0===e[n]||Object(B.get)(e,[n,"opened"],!1);return R({},e,Object(V.a)({},n,R({},e[n],{opened:!o})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?R({},e,Object(V.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},pinnedPluginItems:function(e,t){return"TOGGLE_PINNED_PLUGIN_ITEM"===t.type?R({},e,Object(V.a)({},t.pluginName,!Object(B.get)(e,[t.pluginName],!0))):e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return B.without.apply(void 0,[e].concat(Object(x.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(B.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?R({},e,Object(V.a)({},t.blockName,t.blockStyle)):Object(B.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var L=Object(p.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),F=Object(p.combineReducers)({activeGeneralSidebar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_GENERAL_SIDEBAR":return t.name}return e},activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:L,preferences:N,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(B.includes)(e,t.panelName))return[].concat(Object(x.a)(e),[t.panelName])}return e}}),U=A(87),J=A.n(U),X=A(22),Z=A(48),G=A(40),Y=A.n(G);function W(e){return{type:"OPEN_GENERAL_SIDEBAR",name:e}}function z(){return{type:"CLOSE_GENERAL_SIDEBAR"}}function K(e){return{type:"OPEN_MODAL",name:e}}function _(){return{type:"CLOSE_MODAL"}}function $(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ee(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function te(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function Ae(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function ne(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function oe(e){return{type:"REMOVE_PANEL",panelName:e}}function re(e){return{type:"TOGGLE_FEATURE",feature:e}}function ce(e){return{type:"SWITCH_MODE",mode:e}}function ie(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function ae(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(B.castArray)(e)}}function le(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ee(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function se(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(B.castArray)(e)}}function ue(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function Qe(){return{type:"REQUEST_META_BOX_UPDATES"}}function de(){return{type:"META_BOX_UPDATES_SUCCESS"}}var Be=A(38);function ge(e){return Ie(e,"editorMode","visual")}function be(e){var t=Ce(e);return Object(B.includes)(["edit-post/document","edit-post/block"],t)}function pe(e){return!!Ce(e)&&!be(e)}function Ce(e){return Ie(e,"isGeneralSidebarDismissed",!1)?null:e.activeGeneralSidebar}function me(e){return e.preferences}function Ie(e,t,A){var n=me(e)[t];return void 0===n?A:n}function Oe(e){return e.publishSidebarActive}function fe(e,t){return Object(B.includes)(e.removedPanels,t)}function he(e,t){var A=Ie(e,"panels");return!fe(e,t)&&Object(B.get)(A,[t,"enabled"],!0)}function je(e,t){var A=Ie(e,"panels");return!0===Object(B.get)(A,[t])||!0===Object(B.get)(A,[t,"opened"])}function ve(e,t){return e.activeModal===t}function ke(e,t){return Object(B.get)(e.preferences.features,[t],!1)}function ye(e,t){var A=Ie(e,"pinnedPluginItems",{});return Object(B.get)(A,[t],!0)}var we=Object(Be.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return Se(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Pe(e,t){return Se(e,t)&&Object(B.some)(Te(e,t),(function(t){var A=t.id;return he(e,"meta-box-".concat(A))}))}function Se(e,t){var A=Te(e,t);return!!A&&0!==A.length}function Te(e,t){return e.metaBoxes.locations[t]}var De=Object(Be.a)((function(e){return Object(B.flatten)(Object(B.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function xe(e){return we(e).length>0}function Ve(e){return e.metaBoxes.isSaving}var Me,Re={SET_META_BOXES_PER_LOCATIONS:function(e,t){setTimeout((function(){var e=Object(p.select)("core/editor").getCurrentPostType();window.postboxes.page!==e&&window.postboxes.add_postbox_toggles(e)}));var A=Object(p.select)("core/editor").isSavingPost(),n=Object(p.select)("core/editor").isAutosavingPost(),o=Object(p.select)("core/edit-post").hasMetaBoxes();Me&&Me(),Me=Object(p.subscribe)((function(){var e=Object(p.select)("core/editor").isSavingPost(),r=Object(p.select)("core/editor").isAutosavingPost(),c=o&&A&&!e&&!n;A=e,n=r,c&&t.dispatch({type:"REQUEST_META_BOX_UPDATES"})}))},REQUEST_META_BOX_UPDATES:function(e,t){window.tinyMCE&&window.tinyMCE.triggerSave();var A=t.getState(),n=Object(p.select)("core/editor").getCurrentPost(A),o=[!!n.comment_status&&["comment_status",n.comment_status],!!n.ping_status&&["ping_status",n.ping_status],!!n.sticky&&["sticky",n.sticky],!!n.author&&["post_author",n.author]].filter(Boolean),r=[new window.FormData(document.querySelector(".metabox-base-form"))].concat(Object(x.a)(we(A).map((function(e){return new window.FormData(function(e){var t=document.querySelector(".edit-post-meta-boxes-area.is-".concat(e," .metabox-location-").concat(e));return t||document.querySelector("#metaboxes .metabox-location-"+e)}(e))})))),c=Object(B.reduce)(r,(function(e,t){var A=!0,n=!1,o=void 0;try{for(var r,c=t[Symbol.iterator]();!(A=(r=c.next()).done);A=!0){var i=Object(X.a)(r.value,2),a=i[0],l=i[1];e.append(a,l)}}catch(e){n=!0,o=e}finally{try{A||null==c.return||c.return()}finally{if(n)throw o}}return e}),new window.FormData);o.forEach((function(e){var t=Object(X.a)(e,2),A=t[0],n=t[1];return c.append(A,n)})),Y()({url:window._wpMetaBoxUrl,method:"POST",body:c,parse:!1}).then((function(){return t.dispatch({type:"META_BOX_UPDATES_SUCCESS"})}))},SWITCH_MODE:function(e){"visual"!==e.mode&&Object(p.dispatch)("core/block-editor").clearSelectedBlock();var t="visual"===e.mode?Object(C.__)("Visual editor selected"):Object(C.__)("Code editor selected");Object(Z.speak)(t,"assertive")}};var He=function(e){var t,A=[J()(Re)],n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return n.apply(void 0,arguments)}};return t=A.map((function(e){return e(o)})),n=B.flowRight.apply(void 0,Object(x.a)(t))(e.dispatch),e.dispatch=n,e};var qe={SELECT:Object(p.createRegistryControl)((function(e){return function(t){var A,n=t.storeName,o=t.selectorName,r=t.args;return(A=e.select(n))[o].apply(A,Object(x.a)(r))}}))},Ne="core/edit-post",Le=Object(p.registerStore)(Ne,{reducer:F,actions:n,selectors:o,controls:qe,persist:["preferences"]});He(Le);var Fe=A(14),Ue=A(13),Je=A(15),Xe=A(16),Ze=A(17),Ge=A(44),Ye=A.n(Ge),We={"t a l e s o f g u t e n b e r g":function(e){(document.activeElement.classList.contains("edit-post-visual-editor")||document.activeElement===document.body)&&(e.preventDefault(),window.wp.data.dispatch("core/block-editor").insertBlock(window.wp.blocks.createBlock("core/paragraph",{content:"🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️"})))}},ze=A(11),Ke=A.n(ze),_e=A(115);var $e=Object(m.compose)(Object(p.withSelect)((function(e){return{isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled}})),Object(p.withDispatch)((function(e){return{onExit:function(){e("core/edit-post").switchEditorMode("visual")}}})))((function(e){var t=e.onExit,A=e.isRichEditingEnabled;return Object(r.createElement)("div",{className:"edit-post-text-editor"},A&&Object(r.createElement)("div",{className:"edit-post-text-editor__toolbar"},Object(r.createElement)("h2",null,Object(C.__)("Editing Code")),Object(r.createElement)(b.Button,{onClick:t,icon:_e.a,shortcut:k.displayShortcut.secondary("m")},Object(C.__)("Exit Code Editor")),Object(r.createElement)(i.TextEditorGlobalKeyboardShortcuts,null)),Object(r.createElement)("div",{className:"edit-post-text-editor__body"},Object(r.createElement)(i.PostTitle,null),Object(r.createElement)(i.PostTextEditor,null)))})),et=A(9),tt=Object(r.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(et.Path,{d:"M18 12h-2.18c-.17.7-.44 1.35-.81 1.93l1.54 1.54-2.1 2.1-1.54-1.54c-.58.36-1.23.63-1.91.79V19H8v-2.18c-.68-.16-1.33-.43-1.91-.79l-1.54 1.54-2.12-2.12 1.54-1.54c-.36-.58-.63-1.23-.79-1.91H1V9.03h2.17c.16-.7.44-1.35.8-1.94L2.43 5.55l2.1-2.1 1.54 1.54c.58-.37 1.24-.64 1.93-.81V2h3v2.18c.68.16 1.33.43 1.91.79l1.54-1.54 2.12 2.12-1.54 1.54c.36.59.64 1.24.8 1.94H18V12zm-8.5 1.5c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z"}));var At=Object(b.withSpokenMessages)((function(e){var t=e.onClick,A=void 0===t?B.noop:t,n=e.small,o=void 0!==n&&n,c=e.speak,i=Object(p.useSelect)((function(e){return{shortcut:e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-sidebar"),areAdvancedSettingsOpened:"edit-post/block"===e("core/edit-post").getActiveGeneralSidebarName()}}),[]),a=i.shortcut,l=i.areAdvancedSettingsOpened,E=Object(p.useDispatch)("core/edit-post"),s=E.openGeneralSidebar,u=E.closeGeneralSidebar,Q=l?Object(C.__)("Hide Block Settings"):Object(C.__)("Show Block Settings");return Object(r.createElement)(b.MenuItem,{onClick:function(){l?u():(s("edit-post/block"),c(l?Object(C.__)("Block settings closed"):Object(C.__)("Additional settings are now available in the Editor block settings sidebar")),A())},icon:tt,shortcut:a},!o&&Q)}));function nt(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}function ot(e){for(var t=1;t0?"mixed":"false",Object(r.createElement)("div",{role:"group","aria-labelledby":u,className:"edit-post-manage-blocks-modal__category"},Object(r.createElement)(b.CheckboxControl,{checked:Q,onChange:i,className:"edit-post-manage-blocks-modal__category-title","aria-checked":E,label:Object(r.createElement)("span",{id:u},A.title)}),Object(r.createElement)(mt,{blockTypes:l,value:s,onItemChange:c}))}));var ft=Object(m.compose)([Object(m.withState)({search:""}),Object(p.withSelect)((function(e){var t=e("core/blocks"),A=t.getBlockTypes,n=t.getCategories,o=t.hasBlockSupport,r=t.isMatchingSearchTerm,c=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),i=Object(B.isArray)(c)&&c.length;return{blockTypes:A(),categories:n(),hasBlockSupport:o,isMatchingSearchTerm:r,numberOfHiddenBlocks:i}}))])((function(e){var t=e.search,A=e.setState,n=e.blockTypes,o=e.categories,c=e.hasBlockSupport,i=e.isMatchingSearchTerm,a=e.numberOfHiddenBlocks;return n=n.filter((function(e){return c(e,"inserter",!0)&&(!t||i(e,t))&&(!e.parent||Object(B.includes)(e.parent,"core/post-content"))})),Object(r.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(r.createElement)(b.TextControl,{type:"search",label:Object(C.__)("Search for a block"),value:t,onChange:function(e){return A({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!a&&Object(r.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(C.sprintf)(Object(C._n)("%1$d block is disabled.","%1$d blocks are disabled.",a),a)),Object(r.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(C.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===n.length&&Object(r.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(C.__)("No blocks found.")),o.map((function(e){return Object(r.createElement)(Ot,{key:e.slug,category:e,blockTypes:Object(B.filter)(n,{category:e.slug})})}))))}));var ht=Object(m.compose)([Object(p.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(p.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,A=e.closeModal;return t?Object(r.createElement)(b.Modal,{className:"edit-post-manage-blocks-modal",title:Object(C.__)("Block Manager"),closeLabel:Object(C.__)("Close"),onRequestClose:A},Object(r.createElement)(ft,null)):null})),jt=function(e){var t=e.title,A=e.children;return Object(r.createElement)("section",{className:"edit-post-options-modal__section"},Object(r.createElement)("h2",{className:"edit-post-options-modal__section-title"},t),A)};var vt=function(e){var t=e.label,A=e.isChecked,n=e.onChange,o=e.children;return Object(r.createElement)("div",{className:"edit-post-options-modal__option"},Object(r.createElement)(b.CheckboxControl,{label:t,checked:A,onChange:n}),o)};function kt(e){var t=e.willEnable,A=Object(r.useState)(!1),n=Object(X.a)(A,2),o=n[0],c=n[1];return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",{className:"edit-post-options-modal__custom-fields-confirmation-message"},Object(C.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(r.createElement)(b.Button,{className:"edit-post-options-modal__custom-fields-confirmation-button",isSecondary:!0,isBusy:o,disabled:o,onClick:function(){c(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(C.__)("Enable & Reload"):Object(C.__)("Disable & Reload")))}var yt=Object(p.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,A=e.areCustomFieldsEnabled,n=Object(r.useState)(A),o=Object(X.a)(n,2),c=o[0],i=o[1];return Object(r.createElement)(vt,{label:t,isChecked:c,onChange:i},c!==A&&Object(r.createElement)(kt,{willEnable:c}))})),wt=Object(m.compose)(Object(p.withSelect)((function(e,t){var A=t.panelName,n=e("core/edit-post"),o=n.isEditorPanelEnabled;return{isRemoved:(0,n.isEditorPanelRemoved)(A),isChecked:o(A)}})),Object(m.ifCondition)((function(e){return!e.isRemoved})),Object(p.withDispatch)((function(e,t){var A=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(A)}}})))(vt),Pt=Object(b.createSlotFill)("EnablePluginDocumentSettingPanelOption"),St=Pt.Fill,Tt=Pt.Slot,Dt=function(e){var t=e.label,A=e.panelName;return Object(r.createElement)(St,null,Object(r.createElement)(wt,{label:t,panelName:A}))};Dt.Slot=Tt;var xt=Dt,Vt=Object(m.compose)(Object(p.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),A=t.enablePublishSidebar,n=t.disablePublishSidebar;return{onChange:function(e){return e?A():n()}}})),Object(l.ifViewportMatches)("medium"))(vt),Mt=Object(m.compose)(Object(p.withSelect)((function(e,t){var A=t.feature;return{isChecked:e("core/edit-post").isFeatureActive(A)}})),Object(p.withDispatch)((function(e,t){var A=t.feature,n=e("core/edit-post").toggleFeature;return{onChange:function(){n(A)}}})))(vt);var Rt=Object(p.withSelect)((function(e){var t=e("core/editor").getEditorSettings,A=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:A()}}))((function(e){var t=e.areCustomFieldsRegistered,A=e.metaBoxes,n=Object(d.a)(e,["areCustomFieldsRegistered","metaBoxes"]),o=Object(B.filter)(A,(function(e){return"postcustom"!==e.id}));return t||0!==o.length?Object(r.createElement)(jt,n,t&&Object(r.createElement)(yt,{label:Object(C.__)("Custom fields")}),Object(B.map)(o,(function(e){var t=e.id,A=e.title;return Object(r.createElement)(wt,{key:t,label:A,panelName:"meta-box-".concat(t)})}))):null}));var Ht=Object(m.compose)(Object(p.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,A=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/options"),isViewable:Object(B.get)(A,["viewable"],!1)}})),Object(p.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,A=e.isViewable,n=e.closeModal;return t?Object(r.createElement)(b.Modal,{className:"edit-post-options-modal",title:Object(C.__)("Options"),closeLabel:Object(C.__)("Close"),onRequestClose:n},Object(r.createElement)(jt,{title:Object(C.__)("General")},Object(r.createElement)(Vt,{label:Object(C.__)("Pre-publish checks")}),Object(r.createElement)(Mt,{feature:"showInserterHelpPanel",label:Object(C.__)("Inserter help panel")})),Object(r.createElement)(jt,{title:Object(C.__)("Document panels")},Object(r.createElement)(xt.Slot,null),A&&Object(r.createElement)(wt,{label:Object(C.__)("Permalink"),panelName:"post-link"}),Object(r.createElement)(i.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(r.createElement)(wt,{label:Object(B.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(r.createElement)(i.PostFeaturedImageCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Featured image"),panelName:"featured-image"})),Object(r.createElement)(i.PostExcerptCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Excerpt"),panelName:"post-excerpt"})),Object(r.createElement)(i.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(r.createElement)(wt,{label:Object(C.__)("Discussion"),panelName:"discussion-panel"})),Object(r.createElement)(i.PageAttributesCheck,null,Object(r.createElement)(wt,{label:Object(C.__)("Page attributes"),panelName:"page-attributes"}))),Object(r.createElement)(Rt,{title:Object(C.__)("Advanced panels")})):null})),qt=function(e){function t(){return Object(Fe.a)(this,t),Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidMount",value:function(){this.isSticky=!1,this.sync(),document.body.classList.contains("sticky-menu")&&(this.isSticky=!0,document.body.classList.remove("sticky-menu"))}},{key:"componentWillUnmount",value:function(){this.isSticky&&document.body.classList.add("sticky-menu")}},{key:"componentDidUpdate",value:function(e){this.props.isActive!==e.isActive&&this.sync()}},{key:"sync",value:function(){this.props.isActive?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode")}},{key:"render",value:function(){return null}}]),t}(r.Component),Nt=Object(p.withSelect)((function(e){return{isActive:e("core/edit-post").isFeatureActive("fullscreenMode")}}))(qt);var Lt=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))).state={historyId:null},e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,A=t.postId,n=t.postStatus,o=t.postType,r=t.isSavingPost,c=this.state.historyId;"trash"!==n||r?A===e.postId&&A===c||"auto-draft"===n||this.setBrowserURL(A):this.setTrashURL(A,o)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(h.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(h.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),t}(r.Component),Ft=Object(p.withSelect)((function(e){var t=e("core/editor"),A=t.getCurrentPost,n=t.isSavingPost,o=A();return{postId:o.id,postStatus:o.status,postType:o.type,isSavingPost:n()}}))(Lt),Ut=Object(r.createElement)(et.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(et.Path,{d:"M14 5l-5 5 5 5-1 2-7-7 7-7z"}));var Jt=Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPostType,A=e("core/edit-post").isFeatureActive,n=e("core").getPostType;return{isActive:A("fullscreenMode"),postType:n(t())}}))((function(e){var t=e.isActive,A=e.postType;return t&&A?Object(r.createElement)(b.Toolbar,{className:"edit-post-fullscreen-mode-close__toolbar"},Object(r.createElement)(b.Button,{icon:Ut,href:Object(h.addQueryArgs)("edit.php",{post_type:A.slug}),label:Object(B.get)(A,["labels","view_items"],Object(C.__)("Back"))})):null}));var Xt=function(){var e=Object(p.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),showInserter:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled,isTextModeEnabled:"text"===e("core/edit-post").getEditorMode()}}),[]),t=e.hasFixedToolbar,A=e.showInserter,n=e.isTextModeEnabled,o=Object(m.useViewportMatch)("medium"),a=t?Object(C.__)("Document and block tools"):Object(C.__)("Document tools");return Object(r.createElement)(c.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":a},Object(r.createElement)(c.Inserter,{disabled:!A,position:"bottom right",showInserterHelpPanel:!0}),Object(r.createElement)(i.EditorHistoryUndo,null),Object(r.createElement)(i.EditorHistoryRedo,null),Object(r.createElement)(i.TableOfContents,{hasOutlineItemsDisabled:n}),Object(r.createElement)(c.BlockNavigationDropdown,{isDisabled:n}),Object(r.createElement)(c.ToolSelector,null),(t||!o)&&Object(r.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(r.createElement)(c.BlockToolbar,{hideDragHandle:!0})))},Zt=A(282);function Gt(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}var Yt=[{value:"visual",label:Object(C.__)("Visual editor")},{value:"text",label:Object(C.__)("Code editor")}];var Wt=function(){var e=Object(p.useSelect)((function(e){return{shortcut:e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e("core/editor").getEditorSettings().codeEditingEnabled,mode:e("core/edit-post").getEditorMode()}}),[]),t=e.shortcut,A=e.isRichEditingEnabled,n=e.isCodeEditingEnabled,o=e.mode,c=Object(p.useDispatch)("core/edit-post").switchEditorMode,i=Yt.map((function(e){return e.value!==o?function(e){for(var t=1;t icon."),{InserterIconImage:Object(r.createElement)(mn,{className:"edit-post-welcome-guide__inserter-icon"})}))),Object(r.createElement)(b.GuidePage,{className:"edit-post-welcome-guide__page"},Object(r.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(C.__)("Learn how to use the Block Editor")),Object(r.createElement)(Cn,{className:"edit-post-welcome-guide__image"}),Object(r.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(C.__)("New to the Block Editor? Want to learn more about using it? "),Object(r.createElement)(b.ExternalLink,{href:Object(C.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(C.__)("Here's a detailed guide."))))):null}var On=function(){var e=Object(m.useViewportMatch)("small","<"),t=Object(p.useDispatch)("core/edit-post"),A=t.closePublishSidebar,n=t.openGeneralSidebar,o=t.togglePublishSidebar,a=Object(p.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),editorSidebarOpened:e("core/edit-post").isEditorSidebarOpened(),pluginSidebarOpened:e("core/edit-post").isPluginSidebarOpened(),publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),mode:e("core/edit-post").getEditorMode(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSaving:e("core/edit-post").isSavingMetaBoxes(),previousShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/previous-region"),nextShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/next-region"),hasBlockSelected:e("core/block-editor").getBlockSelectionStart()}}),[]),l=a.mode,E=a.isRichEditingEnabled,s=a.editorSidebarOpened,u=a.pluginSidebarOpened,Q=a.publishSidebarOpened,d=a.hasActiveMetaboxes,B=a.isSaving,g=a.hasFixedToolbar,I=a.previousShortcut,O=a.nextShortcut,h=a.hasBlockSelected,j=Object(c.__experimentalUsePageTemplatePickerVisible)(),v=s||u||Q,k=Ke()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":v,"has-fixed-toolbar":g,"has-metaboxes":d});return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Nt,null),Object(r.createElement)(Ft,null),Object(r.createElement)(i.UnsavedChangesWarning,null),Object(r.createElement)(i.AutosaveMonitor,null),Object(r.createElement)(i.LocalAutosaveMonitor,null),Object(r.createElement)(Et,null),Object(r.createElement)(i.EditorKeyboardShortcutsRegister,null),Object(r.createElement)(b.FocusReturnProvider,null,Object(r.createElement)(c.__experimentalEditorSkeleton,{className:k,header:Object(r.createElement)(uA,null),sidebar:Object(r.createElement)(r.Fragment,null,!v&&Object(r.createElement)("div",{className:"edit-post-layout__toogle-sidebar-panel"},Object(r.createElement)(b.Button,{isSecondary:!0,className:"edit-post-layout__toogle-sidebar-panel-button",onClick:function(){return n(h?"edit-post/block":"edit-post/document")},"aria-expanded":!1},h?Object(C.__)("Open block settings"):Object(C.__)("Open document settings"))),Object(r.createElement)(on,null),Object(r.createElement)(pA.Slot,null)),content:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.EditorNotices,null),("text"===l||!E)&&Object(r.createElement)($e,null),E&&"visual"===l&&Object(r.createElement)(lt,null),Object(r.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(r.createElement)(_A,{location:"normal"}),Object(r.createElement)(_A,{location:"advanced"})),e&&v&&Object(r.createElement)(b.ScrollLock,null)),footer:E&&"visual"===l&&Object(r.createElement)("div",{className:"edit-post-layout__footer"},Object(r.createElement)(c.BlockBreadcrumb,null)),publish:Q?Object(r.createElement)(i.PostPublishPanel,{onClose:A,forceIsDirty:d,forceIsSaving:B,PrePublishExtension:Bn.Slot,PostPublishExtension:En.Slot}):Object(r.createElement)("div",{className:"edit-post-layout__toogle-publish-panel"},Object(r.createElement)(b.Button,{isSecondary:!0,className:"edit-post-layout__toogle-publish-panel-button",onClick:o,"aria-expanded":!1},Object(C.__)("Open publish panel"))),shortcuts:{previous:I,next:O}}),Object(r.createElement)(ht,null),Object(r.createElement)(Ht,null),Object(r.createElement)(Ct,null),Object(r.createElement)(In,null),Object(r.createElement)(b.Popover.Slot,null),Object(r.createElement)(f.PluginArea,null),j&&Object(r.createElement)(c.__experimentalPageTemplatePicker,null)))},fn=function(e){var t=e.postId;return function(e){var t=Object(p.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e(Ne).isEditorSidebarOpened()}}),[e]),A=t.hasBlockSelection,n=t.isEditorSidebarOpened,o=Object(p.useDispatch)(Ne).openGeneralSidebar;Object(r.useEffect)((function(){n&&o(A?"edit-post/block":"edit-post/document")}),[A,n])}(t),function(e){var t=Object(p.useSelect)((function(e){return{isSmall:e("core/viewport").isViewportMatch("< medium"),activeGeneralSidebarName:e(Ne).getActiveGeneralSidebarName()}}),[e]),A=t.isSmall,n=t.activeGeneralSidebarName,o=Object(p.useDispatch)(Ne),c=o.openGeneralSidebar,i=o.closeGeneralSidebar,a=Object(r.useRef)(null),l=Object(r.useRef)(null);Object(r.useEffect)((function(){a.current!==A&&(a.current=A,A?(l.current=n,n&&i()):l.current&&!n&&(c(l.current),l.current=null))}),[A,n])}(t),function(e){var t=Object(p.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,A=Object(r.useRef)();Object(r.useEffect)((function(){A.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(r.useEffect)((function(){t&&A.current&&A.current.setAttribute("href",t)}),[t])}(t),null};function hn(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),A.push.apply(A,n)}return A}var jn=function(e){function t(){var e;return Object(Fe.a)(this,t),(e=Object(Je.a)(this,Object(Xe.a)(t).apply(this,arguments))).getEditorSettings=Ye()(e.getEditorSettings,{maxSize:1}),e}return Object(Ze.a)(t,e),Object(Ue.a)(t,[{key:"getEditorSettings",value:function(e,t,A,n,o,r,c,i,a){if(e=function(e){for(var t=1;t0){var l=!0===e.allowedBlockTypes?Object(B.map)(r,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=B.without.apply(void 0,[l].concat(Object(x.a)(o)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,A=e.hasFixedToolbar,n=e.focusMode,o=e.post,c=e.postId,a=e.initialEdits,l=e.onError,E=e.hiddenBlockTypes,s=e.blockTypes,u=e.preferredStyleVariations,B=e.__experimentalLocalAutosaveInterval,g=e.showInserterHelpPanel,p=e.updatePreferredStyleVariations,C=Object(d.a)(e,["settings","hasFixedToolbar","focusMode","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","showInserterHelpPanel","updatePreferredStyleVariations"]);if(!o)return null;var m=this.getEditorSettings(t,A,g,n,E,s,u,B,p);return Object(r.createElement)(r.StrictMode,null,Object(r.createElement)(It.Provider,{value:t},Object(r.createElement)(b.SlotFillProvider,null,Object(r.createElement)(b.DropZoneProvider,null,Object(r.createElement)(i.EditorProvider,Object(Q.a)({settings:m,post:o,initialEdits:a,useSubRegistry:!1},C),Object(r.createElement)(i.ErrorBoundary,{onError:l},Object(r.createElement)(fn,{postId:c}),Object(r.createElement)(On,null),Object(r.createElement)(b.KeyboardShortcuts,{shortcuts:We})),Object(r.createElement)(i.PostLockedModal,null))))))}}]),t}(r.Component),vn=Object(m.compose)([Object(p.withSelect)((function(e,t){var A=t.postId,n=t.postType,o=e("core/edit-post"),r=o.isFeatureActive,c=o.getPreference,i=e("core").getEntityRecord,a=e("core/blocks").getBlockTypes;return{showInserterHelpPanel:r("showInserterHelpPanel"),hasFixedToolbar:r("fixedToolbar"),focusMode:r("focusMode"),post:i("postType",n,A),preferredStyleVariations:c("preferredStyleVariations"),hiddenBlockTypes:c("hiddenBlockTypes"),blockTypes:a(),__experimentalLocalAutosaveInterval:c("localAutosaveInterval")}})),Object(p.withDispatch)((function(e){return{updatePreferredStyleVariations:e("core/edit-post").updatePreferredStyleVariations}}))])(jn),kn=function(e,t){return!Array.isArray(t)||(A=e,n=t,0===Object(B.difference)(A,n).length);var A,n},yn=function(e){var t=e.allowedBlocks,A=e.icon,n=e.label,o=e.onClick,c=e.small,i=e.role;return Object(r.createElement)(at,null,(function(e){var a=e.selectedBlocks,l=e.onClose;return kn(a,t)?Object(r.createElement)(b.MenuItem,{onClick:Object(m.compose)(o,l),icon:A||"admin-plugins",label:c?n:void 0,role:i},!c&&n):null}))},wn=Object(m.compose)(Object(f.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.onClick,A=void 0===t?B.noop:t,n=Object(d.a)(e,["onClick"]);return Object(r.createElement)($t,null,(function(e){return Object(r.createElement)(b.MenuItem,Object(Q.a)({},n,{onClick:Object(m.compose)(A,e.onClose)}))}))}));var Pn=Object(m.compose)(Object(f.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.name)}})),Object(p.withSelect)((function(e,t){var A=t.sidebarName,n=e("core/edit-post"),o=n.getActiveGeneralSidebarName,r=n.isPluginItemPinned;return{isActive:o()===A,isPinned:r(A)}})),Object(p.withDispatch)((function(e,t){var A=t.isActive,n=t.sidebarName,o=e("core/edit-post"),r=o.closeGeneralSidebar,c=o.openGeneralSidebar,i=o.togglePinnedPluginItem;return{togglePin:function(){i(n)},toggleSidebar:function(){A?r():c(n)}}})))((function(e){var t=e.children,A=e.className,n=e.icon,o=e.isActive,c=e.isPinnable,i=void 0===c||c,a=e.isPinned,l=e.sidebarName,E=e.title,s=e.togglePin,u=e.toggleSidebar;return Object(r.createElement)(r.Fragment,null,i&&Object(r.createElement)(EA,null,a&&Object(r.createElement)(b.Button,{icon:n,label:E,onClick:u,isPressed:o,"aria-expanded":o})),Object(r.createElement)(pA,{name:l},Object(r.createElement)(CA,{closeLabel:Object(C.__)("Close plugin")},Object(r.createElement)("strong",null,E),i&&Object(r.createElement)(b.Button,{icon:a?"star-filled":"star-empty",label:a?Object(C.__)("Unpin from toolbar"):Object(C.__)("Pin to toolbar"),onClick:s,isPressed:a,"aria-expanded":a})),Object(r.createElement)(b.Panel,{className:A},t)))})),Sn=Object(m.compose)(Object(f.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,sidebarName:"".concat(e.name,"/").concat(t.target)}})),Object(p.withSelect)((function(e,t){var A=t.sidebarName;return{isSelected:(0,e("core/edit-post").getActiveGeneralSidebarName)()===A}})),Object(p.withDispatch)((function(e,t){var A=t.isSelected,n=t.sidebarName,o=e("core/edit-post"),r=o.closeGeneralSidebar,c=o.openGeneralSidebar;return{onClick:A?r:function(){return c(n)}}})))((function(e){var t=e.children,A=e.icon,n=e.isSelected,o=e.onClick;return Object(r.createElement)(wn,{icon:n?tA.a:A,isSelected:n,role:"menuitemcheckbox",onClick:o},t)}));function Tn(e,t,A,n,o){Object(r.unmountComponentAtNode)(A);var c=Tn.bind(null,e,t,A,n,o);Object(r.render)(Object(r.createElement)(vn,{settings:n,onError:c,postId:t,postType:e,initialEdits:o,recovery:!0}),A)}function Dn(e,t,A,n,o){var c=document.getElementById(e),i=Tn.bind(null,t,A,c,n,o);Object(E.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(function(e){var t=document.getElementsByClassName("block-editor-editor-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),window.scrollTo(0,0))})),Object(r.render)(Object(r.createElement)(vn,{settings:n,onError:i,postId:A,postType:t,initialEdits:o}),c)}A.d(t,"reinitializeEditor",(function(){return Tn})),A.d(t,"initializeEditor",(function(){return Dn})),A.d(t,"PluginBlockSettingsMenuItem",(function(){return yn})),A.d(t,"PluginDocumentSettingPanel",(function(){return nn})),A.d(t,"PluginMoreMenuItem",(function(){return wn})),A.d(t,"PluginPostPublishPanel",(function(){return En})),A.d(t,"PluginPostStatusInfo",(function(){return DA})),A.d(t,"PluginPrePublishPanel",(function(){return Bn})),A.d(t,"PluginSidebar",(function(){return Pn})),A.d(t,"PluginSidebarMoreMenuItem",(function(){return Sn}))},44:function(e,t,A){e.exports=function(e,t){var A,n,o,r=0;function c(){var t,c,i=n,a=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(c=0;c