From 9dcce378a0866f5d00e2fc3e53b6b6409e4578c1 Mon Sep 17 00:00:00 2001 From: isabel_brison Date: Wed, 28 Jun 2023 07:04:13 +0000 Subject: [PATCH] Editor: update npm packages to latest patch versions. Updates the `@wordpress` npm packages to their latest patch versions, including generated PHP files. Props ramonopoly. Fixes #58654. Built from https://develop.svn.wordpress.org/trunk@56086 git-svn-id: http://core.svn.wordpress.org/trunk@55598 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../assets/script-loader-packages.min.php | 2 +- wp-includes/assets/script-loader-packages.php | 2 +- wp-includes/blocks/social-link.php | 4 +- wp-includes/css/dist/components/style-rtl.css | 4 +- .../css/dist/components/style-rtl.min.css | 2 +- wp-includes/css/dist/components/style.css | 4 +- wp-includes/css/dist/components/style.min.css | 2 +- wp-includes/css/dist/edit-post/style-rtl.css | 1 - .../css/dist/edit-post/style-rtl.min.css | 2 +- wp-includes/css/dist/edit-post/style.css | 1 - wp-includes/css/dist/edit-post/style.min.css | 2 +- wp-includes/css/dist/edit-site/style-rtl.css | 6 +- .../css/dist/edit-site/style-rtl.min.css | 2 +- wp-includes/css/dist/edit-site/style.css | 6 +- wp-includes/css/dist/edit-site/style.min.css | 2 +- wp-includes/js/dist/components.js | 10 +- wp-includes/js/dist/core-commands.js | 2 +- wp-includes/js/dist/core-commands.min.js | 2 +- wp-includes/js/dist/core-data.js | 10 +- wp-includes/js/dist/customize-widgets.js | 65 +- wp-includes/js/dist/customize-widgets.min.js | 2 +- wp-includes/js/dist/edit-post.js | 1337 +++++++++-------- wp-includes/js/dist/edit-post.min.js | 2 +- wp-includes/js/dist/edit-site.js | 154 +- wp-includes/js/dist/edit-site.min.js | 4 +- wp-includes/js/dist/edit-widgets.js | 65 +- wp-includes/js/dist/edit-widgets.min.js | 2 +- wp-includes/version.php | 2 +- 28 files changed, 1006 insertions(+), 693 deletions(-) diff --git a/wp-includes/assets/script-loader-packages.min.php b/wp-includes/assets/script-loader-packages.min.php index 26d564f42b..466edb7928 100644 --- a/wp-includes/assets/script-loader-packages.min.php +++ b/wp-includes/assets/script-loader-packages.min.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '7032343a947cfccf5608'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b09221a884f97325ed72'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0fa4dabf8bf2c7adf21a'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dacd785d109317df2707'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a1c5c0acdef3d15657'), 'block-directory.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cf69143cf8a7a08f7e0f'), 'block-editor.min.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'a425609f5b6ae62dad68'), 'block-library.min.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '2291ed97305f0f4dc80c'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30ffd7e7e199f10b2a6d'), 'blocks.min.js' => array('dependencies' => array('wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-shortcode'), 'version' => '379ac25633b7ddbdeb9f'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '4fb8f7a32011c29a7d27'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '187311b3c04c385fb830'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '5efbd9a3068cfc28732f'), 'core-commands.min.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '684b564cda0e5a71f673'), 'core-data.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '6ada842e022c37dab9f9'), 'customize-widgets.min.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'f08d458c8f34e7be78da'), 'data.min.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '508d42bffd7af159abd7'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'fe4ccc8a1782ea8e2cb1'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '239d3ae94042e61d2134'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '73ad3591e7bc95f4777a'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '845eabf47b55af03adfa'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '392bdd43726760d1f3ca'), 'edit-post.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '00139e9b78c513902b2c'), 'edit-site.min.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => '706364921605e4988d64'), 'edit-widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'a9e2acaf781350f2e890'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'bb53a87640068425eedb'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '6ee24e5cc389494275d1'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03e27a7b6ae14f7afaa6'), 'format-library.min.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'f8c3d14a13437c8f2597'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c6aec9a8d4e5a5d543a1'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '36a4a255da7dd2e1bf8e'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e84b68f41a6686234c52'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '20c2b06ecf04afb14fee'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '3b52bcbe392eefb3e478'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3460bd0fac9859d6886c'), 'list-reusable-blocks.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'dfd2345553c85e847ac0'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bcd60e7a2fb568f38015'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '1197329369e882c44795'), 'nux.min.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '038c48e26a91639ae8ab'), 'plugins.min.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '463143a2aeec9687ac69'), 'preferences.min.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'ca088ba0a612bff77aa3'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '2e62a5c063c96ff71aa1'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'b90ba9340ccd8dae04b5'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '422e19e9d48b269c5219'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7dbca6dab5a6454e2194'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '65797a0096e4e54840a2'), 'reusable-blocks.min.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '0d3fc9db5f010d7fd06b'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'e953b4aa3e2e62c144ab'), 'router.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'bc3f04a9045626928db0'), 'server-side-render.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '81299db67c0fa2c65479'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c128a3008a96e820aa86'), 'style-engine.min.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ad8ccfe490aac4ead1a9'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '199103fc7cec3b9eef5a'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8814d23f2d64864d280d'), 'viewport.min.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1fbef8175bb335c5603b'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4acee5fc2fd9a24cefc2'), 'widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '938735ae45e739ac8b70'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '16152365fa1567c1135c')); + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '7032343a947cfccf5608'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b09221a884f97325ed72'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0fa4dabf8bf2c7adf21a'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dacd785d109317df2707'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a1c5c0acdef3d15657'), 'block-directory.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cf69143cf8a7a08f7e0f'), 'block-editor.min.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'a425609f5b6ae62dad68'), 'block-library.min.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '2291ed97305f0f4dc80c'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30ffd7e7e199f10b2a6d'), 'blocks.min.js' => array('dependencies' => array('wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-shortcode'), 'version' => '379ac25633b7ddbdeb9f'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '4fb8f7a32011c29a7d27'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '187311b3c04c385fb830'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '5efbd9a3068cfc28732f'), 'core-commands.min.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '24998176ba3bc5035d16'), 'core-data.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '6ada842e022c37dab9f9'), 'customize-widgets.min.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '0d00f4f84b5a9af823a1'), 'data.min.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '508d42bffd7af159abd7'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'fe4ccc8a1782ea8e2cb1'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '239d3ae94042e61d2134'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '73ad3591e7bc95f4777a'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '845eabf47b55af03adfa'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '392bdd43726760d1f3ca'), 'edit-post.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => 'f6e67412be3fd5feea66'), 'edit-site.min.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'cad4ab8f35c51ce4533a'), 'edit-widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '78111963575facf5b4bd'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'bb53a87640068425eedb'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '6ee24e5cc389494275d1'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03e27a7b6ae14f7afaa6'), 'format-library.min.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'f8c3d14a13437c8f2597'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c6aec9a8d4e5a5d543a1'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '36a4a255da7dd2e1bf8e'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e84b68f41a6686234c52'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '20c2b06ecf04afb14fee'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '3b52bcbe392eefb3e478'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3460bd0fac9859d6886c'), 'list-reusable-blocks.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'dfd2345553c85e847ac0'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bcd60e7a2fb568f38015'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '1197329369e882c44795'), 'nux.min.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '038c48e26a91639ae8ab'), 'plugins.min.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '463143a2aeec9687ac69'), 'preferences.min.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'ca088ba0a612bff77aa3'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '2e62a5c063c96ff71aa1'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'b90ba9340ccd8dae04b5'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '422e19e9d48b269c5219'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7dbca6dab5a6454e2194'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '65797a0096e4e54840a2'), 'reusable-blocks.min.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '0d3fc9db5f010d7fd06b'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'e953b4aa3e2e62c144ab'), 'router.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'bc3f04a9045626928db0'), 'server-side-render.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '81299db67c0fa2c65479'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c128a3008a96e820aa86'), 'style-engine.min.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ad8ccfe490aac4ead1a9'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '199103fc7cec3b9eef5a'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8814d23f2d64864d280d'), 'viewport.min.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1fbef8175bb335c5603b'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4acee5fc2fd9a24cefc2'), 'widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '938735ae45e739ac8b70'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '16152365fa1567c1135c')); diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index eb2d630077..5cf6957c13 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-i18n', 'wp-polyfill'), 'version' => 'f5d24347216c445a8c01'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '75a480a2654dd626c11d'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6922e5e289e31508e9e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b745c6fbf05b78fb082d'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c8cd0ee72e8256295689'), 'block-directory.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9d6194f9b4dec23de6e4'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '351bd41258297a7b5b05'), 'block-library.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'f329a9c5147582a240a3'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '659c02a916d332d198d3'), 'blocks.js' => array('dependencies' => array('wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-shortcode'), 'version' => '36d6e9fc231fe8897bfc'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '5516680ede81f227e36e'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'eca90ce913bf3f44f7e6'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '2896c0b9ae0fba350fa5'), 'core-commands.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '30962924305261c2446f'), 'core-data.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '47cd6b453876e3a7a193'), 'customize-widgets.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'e5314c58d9aa33d95727'), 'data.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '28f25da5453f90527586'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '21350969228d7e012ae4'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '74ec621209ef5f985502'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e7be1e59b3a3f3f2de93'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '2859d23ff0f3c3599c5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7c25017459f1da90355d'), 'edit-post.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => 'f574bc3c29218d72ebca'), 'edit-site.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'ba35407a89a761417d36'), 'edit-widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '04ff99fed093ed6cf535'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '00436d029f7c66c74607'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'b368b38a89162c1a2dd4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cf743ecc1ac531a8ee6'), 'format-library.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'e9c244034e4ceae7bc7e'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cb3553927d7ab6049113'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '87ef261e846b76e5a37b'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '28325ce370dfa8a48974'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6db118482717025592c3'), 'keyboard-shortcuts.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '0dd9d7a2fc055546ac02'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3ea3f757df3faecf5b53'), 'list-reusable-blocks.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '9dbe3ea88ba334a2f0a6'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64f965a73c9014525194'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '89066af3709002b265aa'), 'nux.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'cd90e6b2a9140895480a'), 'plugins.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2c131c2ea4abe95e5138'), 'preferences.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '77e5d89bcb85ec728c47'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6359e081d54254a8095f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '9a5b77281b914496cc3f'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c1d62738f06e87528f62'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5d5be7a4e6be53598a7d'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5864c15205ae69892f05'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'a2cd038efd08a5b543e4'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'bab19e14984a9fb27e0e'), 'router.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '13c8628603afc0d07efe'), 'server-side-render.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '75db96a643c7c526dd9b'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a7e6e9696d74a96cbbc'), 'style-engine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ed586d7be92a16524d2a'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59593bbd84ae7c0d4c03'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8dc9f774df8e318bec4'), 'viewport.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1150a23174cba4f61f67'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa73c6d9a1563e863795'), 'widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4910811297dc0087a579'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => '02aee9969304892b0e50')); + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'f5d24347216c445a8c01'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '75a480a2654dd626c11d'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6922e5e289e31508e9e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b745c6fbf05b78fb082d'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c8cd0ee72e8256295689'), 'block-directory.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9d6194f9b4dec23de6e4'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '351bd41258297a7b5b05'), 'block-library.js' => array('dependencies' => array('lodash', 'wp-a11y', '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-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'f329a9c5147582a240a3'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '659c02a916d332d198d3'), 'blocks.js' => array('dependencies' => array('wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-shortcode'), 'version' => '36d6e9fc231fe8897bfc'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '5516680ede81f227e36e'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'd2f03978c4e4853fbbe7'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '2896c0b9ae0fba350fa5'), 'core-commands.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => 'd2885bf0f9b93fa13cac'), 'core-data.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '8eee6803dbaa22882dfb'), 'customize-widgets.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'eda3ea54b679fff82f38'), 'data.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '28f25da5453f90527586'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '21350969228d7e012ae4'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '74ec621209ef5f985502'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e7be1e59b3a3f3f2de93'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '2859d23ff0f3c3599c5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7c25017459f1da90355d'), 'edit-post.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '4a7e9fced9204affb14f'), 'edit-site.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'c0a3c418f6feb5aa4178'), 'edit-widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '4db5e82bdd0cb8525803'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '00436d029f7c66c74607'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'b368b38a89162c1a2dd4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cf743ecc1ac531a8ee6'), 'format-library.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'e9c244034e4ceae7bc7e'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cb3553927d7ab6049113'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '87ef261e846b76e5a37b'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '28325ce370dfa8a48974'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6db118482717025592c3'), 'keyboard-shortcuts.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '0dd9d7a2fc055546ac02'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3ea3f757df3faecf5b53'), 'list-reusable-blocks.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '9dbe3ea88ba334a2f0a6'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64f965a73c9014525194'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '89066af3709002b265aa'), 'nux.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'cd90e6b2a9140895480a'), 'plugins.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2c131c2ea4abe95e5138'), 'preferences.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '77e5d89bcb85ec728c47'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6359e081d54254a8095f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '9a5b77281b914496cc3f'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c1d62738f06e87528f62'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5d5be7a4e6be53598a7d'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5864c15205ae69892f05'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'a2cd038efd08a5b543e4'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'bab19e14984a9fb27e0e'), 'router.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '13c8628603afc0d07efe'), 'server-side-render.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '75db96a643c7c526dd9b'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a7e6e9696d74a96cbbc'), 'style-engine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ed586d7be92a16524d2a'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59593bbd84ae7c0d4c03'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8dc9f774df8e318bec4'), 'viewport.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1150a23174cba4f61f67'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa73c6d9a1563e863795'), 'widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4910811297dc0087a579'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => '02aee9969304892b0e50')); diff --git a/wp-includes/blocks/social-link.php b/wp-includes/blocks/social-link.php index 51ed9374c9..1e5c4cf5de 100644 --- a/wp-includes/blocks/social-link.php +++ b/wp-includes/blocks/social-link.php @@ -47,8 +47,8 @@ function render_block_core_social_link( $attributes, $content, $block ) { $icon = block_core_social_link_get_icon( $service ); $wrapper_attributes = get_block_wrapper_attributes( array( - 'class' => 'wp-social-link wp-social-link-' . $service . block_core_social_link_get_color_classes( $block->context ), - 'style' => block_core_social_link_get_color_styles( $block->context ), + 'class' => esc_attr( 'wp-social-link wp-social-link-' . $service . block_core_social_link_get_color_classes( $block->context ) ), + 'style' => esc_attr( block_core_social_link_get_color_styles( $block->context ) ), ) ); diff --git a/wp-includes/css/dist/components/style-rtl.css b/wp-includes/css/dist/components/style-rtl.css index 0c02ebe495..8e385247a1 100644 --- a/wp-includes/css/dist/components/style-rtl.css +++ b/wp-includes/css/dist/components/style-rtl.css @@ -1729,7 +1729,7 @@ body.is-dragging-components-draggable{ flex-direction:row; height:72px; justify-content:space-between; - padding:24px 32px 12px; + padding:24px 32px 8px; position:absolute; right:0; top:0; @@ -1776,7 +1776,7 @@ body.is-dragging-components-draggable{ flex:1; margin-top:72px; overflow:auto; - padding:0 32px 32px; + padding:4px 32px 32px; } .components-modal__content.hide-header{ margin-top:0; diff --git a/wp-includes/css/dist/components/style-rtl.min.css b/wp-includes/css/dist/components/style-rtl.min.css index 505fa137b8..b6b264ed2b 100644 --- a/wp-includes/css/dist/components/style-rtl.min.css +++ b/wp-includes/css/dist/components/style-rtl.min.css @@ -1 +1 @@ -@charset "UTF-8";:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-delay:0s;animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-delay:0s;animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:220px;padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{align-items:center;-webkit-appearance:none;background:none;border:0;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,#1e1e1e);cursor:pointer;display:inline-flex;font-family:inherit;font-size:13px;font-weight:400;height:36px;margin:0;padding:6px 12px;text-decoration:none;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button{transition-delay:0s;transition-duration:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:3px solid transparent}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff);outline:1px solid transparent;text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4);opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;box-shadow:none;color:#949494;opacity:1;outline:none;transform:none}.components-button.is-secondary{background:transparent;box-shadow:inset 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:1px solid transparent;white-space:nowrap}.components-button.is-secondary:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-right:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){box-shadow:inset 0 0 0 1px #cc1818;color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled){background:#ccc}.components-button.is-link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));height:auto;margin:0;outline:none;padding:0;text-align:right;text-decoration:underline;transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-delay:0s;transition-duration:0s}}.components-button.is-link:focus{border-radius:2px}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,#1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;background-image:linear-gradient(45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%;opacity:1}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0;width:32px}.components-button.is-small{font-size:11px;height:24px;line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0;width:24px}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:initial;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:12px;padding-right:8px}.components-button.is-pressed{background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:right 200px top 0}}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 0 0 transparent;clear:none;color:#1e1e1e;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;line-height:0;margin:0 0 0 4px;outline:0;padding:6px 8px;padding:0!important;text-align:center;transition:box-shadow .1s linear;transition:none;transition:border-color .1s ease-in-out;vertical-align:top;width:24px}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-delay:0s;transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{display:inline-block;height:24px;margin-left:12px;position:relative;vertical-align:middle;width:24px}@media (min-width:600px){.components-checkbox-control__input-container{height:20px;width:20px}}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{fill:#fff;cursor:pointer;height:24px;pointer-events:none;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;width:24px}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);transition:transform .1s ease;vertical-align:top;width:28px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;cursor:pointer;display:inline-block;height:100%;transition:box-shadow .1s ease;vertical-align:top;width:100%}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option.is-pressed+svg{border-radius:50%;pointer-events:none;position:absolute;right:2px;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:32px;position:absolute;right:-2px;top:-2px;width:32px}.components-circular-option-picker__option.components-button:focus{background-color:initial;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:280px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{border:none;box-shadow:none;font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{align-items:flex-start;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;content:"";height:100%;position:absolute;right:0;top:0;width:100%;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,#1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker:not(.is-next-has-no-margin){margin-bottom:24px;margin-top:12px}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;outline:2px solid transparent;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-custom-select-control{font-size:13px;position:relative}.components-custom-select-control__button{outline:0;position:relative;text-align:right}.components-custom-select-control__hint{color:#949494;margin-right:10px}.components-custom-select-control__menu{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:400px;min-width:100%;outline:none;overflow:auto;padding:0;position:absolute;transition:none;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;cursor:default;display:grid;grid-template-columns:auto auto;line-height:28px;list-style-type:none;padding:8px 16px}.components-custom-select-control__item:not(.is-next-36px-default-size){padding:8px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#949494;padding-left:4px;text-align:left}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-right:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.block-editor-dimension-control .components-base-control__field{align-items:center;display:flex}.block-editor-dimension-control .components-base-control__label{align-items:center;display:flex;margin-bottom:0;margin-left:1em}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{height:50px;position:fixed;right:-1000px;width:50px}.components-draggable__clone{background:transparent;padding:0;pointer-events:none;position:fixed;z-index:1000000000}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__menu{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:pointer;outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:#ddd;box-sizing:initial;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;height:24px;width:24px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:36px;padding-left:8px;padding-right:8px;text-align:right}.components-dropdown-menu__menu .components-menu-group{margin:0 -8px;padding:8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-top:1px solid #ccc;margin-top:0;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-form-toggle{display:inline-block;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #1e1e1e;border-radius:9px;box-sizing:border-box;content:"";display:inline-block;height:18px;transition:background .2s ease;vertical-align:top;width:36px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:5px solid #1e1e1e;border-radius:50%;box-sizing:border-box;display:block;height:12px;position:absolute;right:3px;top:3px;transition:transform .1s ease;width:12px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-delay:0s;transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;cursor:text;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:#1e1e1e;display:inline-block;flex:1;font-family:inherit;font-size:16px;margin-right:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{padding:0 0 0 24px;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;left:0;padding:0;position:absolute;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{border-radius:0 4px 4px 0;color:#cc1818;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;line-height:24px;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.components-form-token-field__token-text{border-radius:0 2px 2px 0;overflow:hidden;padding:0 8px 0 0;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:2px 0 0 2px;color:#1e1e1e;cursor:pointer;line-height:10px;overflow:initial;padding:0 2px}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{border-top:1px solid var(--wp-components-color-gray-600,#949494);flex:1 0 100%;list-style:none;margin:0;max-height:9em;min-width:100%;overflow-y:auto;padding:0;transition:all .15s ease-in-out}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-delay:0s;transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;cursor:pointer;display:block;font-size:13px;margin:0;padding:4px 8px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{border-radius:2px;margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:60px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;margin:-6px 0;min-width:20px}.components-modal__frame.components-guide{border:none;height:80vh;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__forward-button{color:#1386bf;font-weight:700;left:32px}.components-button.components-guide__finish-button{left:32px}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .edit-post-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{outline:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:-4px}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;margin-top:8px;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-left:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:-2px;margin-right:24px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:8px;margin-right:-2px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-left:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-left:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-left:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:0;margin-right:auto;padding-right:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-delay:0s;animation-duration:1ms}}.components-modal__frame{animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),-.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);display:flex;margin:40px 0 0;overflow:hidden;width:100%}@media (prefers-reduced-motion:reduce){.components-modal__frame{animation-delay:0s;animation-duration:1ms}}@media (min-width:600px){.components-modal__frame{border-radius:4px;margin:auto;max-height:calc(100% - 120px);max-width:calc(100% - 32px);min-width:350px;width:auto}}@media (min-width:600px) and (min-width:600px){.components-modal__frame.is-full-screen{height:calc(100% - 32px);max-height:none;width:calc(100% - 32px)}}@media (min-width:600px) and (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{align-items:center;border-bottom:1px solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;padding:24px 32px 12px;position:absolute;right:0;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:right}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:0 32px 32px}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-notice{align-items:center;background-color:#fff;border-right:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{background-color:#eff9f1;border-right-color:#4ab866}.components-notice.is-warning{background-color:#fef8ee;border-right-color:#f0b849}.components-notice.is-error{background-color:#f4a2a2;border-right-color:#cc1818}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-left:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{align-self:flex-start;color:#757575;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:initial;color:#1e1e1e}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;max-width:100vw}.components-notice-list .components-notice__content{line-height:2;margin-bottom:12px;margin-top:12px}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:initial;display:flex;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-delay:0s;transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{border:none;box-shadow:none;color:#1e1e1e;font-weight:500;height:auto;outline:none;padding:16px 16px 16px 48px;position:relative;text-align:right;transition:background .1s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-delay:0s;transition-duration:0s}}.components-panel__body-toggle.components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-panel__body-toggle.components-button .components-panel__arrow{fill:currentColor;color:#1e1e1e;left:16px;position:absolute;top:50%;transform:translateY(-50%);transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-delay:0s;transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{-ms-filter:fliph;filter:FlipH;margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-left:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;color:#1e1e1e;margin:0;min-height:200px;outline:1px solid transparent;padding:1em;position:relative;text-align:right;width:100%}@supports (position:sticky){.components-placeholder.components-placeholder{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{align-items:center;display:flex;font-weight:600;margin-bottom:16px}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:12px}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.components-placeholder__fieldset{border:none;padding:0}.components-placeholder__fieldset.components-placeholder__fieldset .components-placeholder__instructions{font-size:1em;font-weight:400;padding:0}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex:1 1 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0 0 0 8px;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__fieldset .components-button{margin-bottom:12px;margin-left:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-placeholder.has-illustration{-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);backface-visibility:hidden;background-color:initial;border-radius:2px;box-shadow:none;color:inherit;display:flex;min-width:100px;overflow:hidden}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0;width:auto}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition-delay:0s;transition-duration:0s}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{stroke:currentColor;box-sizing:initial;height:100%;opacity:.25;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:100%}.components-popover{will-change:transform;z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:2px;box-shadow:0 0 0 1px #ccc,0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1);box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 16px 0 8px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control__input[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-left:6px;margin-top:0;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(-7px,7px);width:8px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(-5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));content:"";cursor:inherit;display:block;height:15px;left:calc(50% - 8px);outline:2px solid transparent;position:absolute;top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:2px;content:"";cursor:inherit;display:block;height:3px;left:calc(50% - 1px);opacity:0;position:absolute;top:calc(50% - 1px);transition:transform .1s ease-in;width:3px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-delay:0s;transition-duration:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;right:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-delay:0s;animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-delay:0s;animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-search-control{position:relative}.components-search-control input[type=search].components-search-control__input{background:#f0f0f0;border:none;border-radius:2px;box-shadow:0 0 0 transparent;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:48px;line-height:normal;margin-left:0;margin-right:0;padding:16px 16px 16px 48px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-search-control input[type=search].components-search-control__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}.components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-search-control input[type=search].components-search-control__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px}}.components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}.components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}.components-search-control__icon{align-items:center;bottom:0;display:flex;justify-content:center;left:12px;position:absolute;top:0;width:24px}.components-search-control__icon>svg{margin:8px 0}.components-search-control__input-wrapper{position:relative}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;outline:0}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:16px 24px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-right:24px}.components-snackbar .components-snackbar__icon{position:absolute;right:28px;top:24px}.components-snackbar .components-snackbar__dismiss-button{cursor:pointer;margin-right:32px}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-right:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:initial;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:after{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:before{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-tip{color:#757575;display:flex}.components-tip svg{fill:#f0b849;align-self:center;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-delay:0s;animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;left:8px;line-height:12px;position:absolute}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-left:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:initial;content:"";display:inline-block;height:20px;position:absolute;right:-3px;top:8px;width:1px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:min-content}.components-tooltip .components-popover__content{background:#000;border-radius:2px;border-width:0;box-shadow:none;color:#f0f0f0;font-size:12px;line-height:1.4;outline:none;padding:4px 8px;text-align:center;white-space:nowrap}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.disabled-element-wrapper{position:relative}.disabled-element-wrapper .event-catcher{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:100002} \ No newline at end of file +@charset "UTF-8";:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-delay:0s;animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top right}.components-animate__appear.is-from-top.is-from-right{transform-origin:top left}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom right}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom left}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-delay:0s;animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(-100%)}.components-animate__slide-in.is-from-right{transform:translateX(100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:220px;padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:right;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-right:-1px}.components-button-group .components-button:first-child{border-radius:0 2px 2px 0}.components-button-group .components-button:last-child{border-radius:2px 0 0 2px}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{align-items:center;-webkit-appearance:none;background:none;border:0;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,#1e1e1e);cursor:pointer;display:inline-flex;font-family:inherit;font-size:13px;font-weight:400;height:36px;margin:0;padding:6px 12px;text-decoration:none;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button{transition-delay:0s;transition-duration:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:3px solid transparent}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff);outline:1px solid transparent;text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4);opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;box-shadow:none;color:#949494;opacity:1;outline:none;transform:none}.components-button.is-secondary{background:transparent;box-shadow:inset 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:1px solid transparent;white-space:nowrap}.components-button.is-secondary:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-right:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){box-shadow:inset 0 0 0 1px #cc1818;color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled){background:#ccc}.components-button.is-link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));height:auto;margin:0;outline:none;padding:0;text-align:right;text-decoration:underline;transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-delay:0s;transition-duration:0s}}.components-button.is-link:focus{border-radius:2px}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,#1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;background-image:linear-gradient(45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%;opacity:1}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0;width:32px}.components-button.is-small{font-size:11px;height:24px;line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0;width:24px}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:initial;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:12px;padding-right:8px}.components-button.is-pressed{background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:right 200px top 0}}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 0 0 transparent;clear:none;color:#1e1e1e;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;line-height:0;margin:0 0 0 4px;outline:0;padding:6px 8px;padding:0!important;text-align:center;transition:box-shadow .1s linear;transition:none;transition:border-color .1s ease-in-out;vertical-align:top;width:24px}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px -5px 0 0}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"";display:inline-block;float:right;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-delay:0s;transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{display:inline-block;height:24px;margin-left:12px;position:relative;vertical-align:middle;width:24px}@media (min-width:600px){.components-checkbox-control__input-container{height:20px;width:20px}}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{fill:#fff;cursor:pointer;height:24px;pointer-events:none;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;width:24px}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{right:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);transition:transform .1s ease;vertical-align:top;width:28px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;cursor:pointer;display:inline-block;height:100%;transition:box-shadow .1s ease;vertical-align:top;width:100%}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option.is-pressed+svg{border-radius:50%;pointer-events:none;position:absolute;right:2px;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:32px;position:absolute;right:-2px;top:-2px;width:32px}.components-circular-option-picker__option.components-button:focus{background-color:initial;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-left:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:280px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{border:none;box-shadow:none;font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{align-items:flex-start;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;content:"";height:100%;position:absolute;right:0;top:0;width:100%;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,#1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker:not(.is-next-has-no-margin){margin-bottom:24px;margin-top:12px}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;outline:2px solid transparent;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-right:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-custom-select-control{font-size:13px;position:relative}.components-custom-select-control__button{outline:0;position:relative;text-align:right}.components-custom-select-control__hint{color:#949494;margin-right:10px}.components-custom-select-control__menu{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:400px;min-width:100%;outline:none;overflow:auto;padding:0;position:absolute;transition:none;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;cursor:default;display:grid;grid-template-columns:auto auto;line-height:28px;list-style-type:none;padding:8px 16px}.components-custom-select-control__item:not(.is-next-36px-default-size){padding:8px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#949494;padding-left:4px;text-align:left}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-right:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.block-editor-dimension-control .components-base-control__field{align-items:center;display:flex}.block-editor-dimension-control .components-base-control__label{align-items:center;display:flex;margin-bottom:0;margin-left:1em}.block-editor-dimension-control .components-base-control__label .dashicon{margin-left:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{height:50px;position:fixed;right:-1000px;width:50px}.components-draggable__clone{background:transparent;padding:0;pointer-events:none;position:fixed;z-index:1000000000}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__menu{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:pointer;outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:#ddd;box-sizing:initial;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;height:24px;width:24px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:36px;padding-left:8px;padding-right:8px;text-align:right}.components-dropdown-menu__menu .components-menu-group{margin:0 -8px;padding:8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-top:1px solid #ccc;margin-top:0;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-form-toggle{display:inline-block;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #1e1e1e;border-radius:9px;box-sizing:border-box;content:"";display:inline-block;height:18px;transition:background .2s ease;vertical-align:top;width:36px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:5px solid #1e1e1e;border-radius:50%;box-sizing:border-box;display:block;height:12px;position:absolute;right:3px;top:3px;transition:transform .1s ease;width:12px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-delay:0s;transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(-18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;cursor:text;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:#1e1e1e;display:inline-block;flex:1;font-family:inherit;font-size:16px;margin-right:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{padding:0 0 0 24px;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;left:0;padding:0;position:absolute;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{border-radius:0 4px 4px 0;color:#cc1818;padding:0 6px 0 4px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;line-height:24px;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.components-form-token-field__token-text{border-radius:0 2px 2px 0;overflow:hidden;padding:0 8px 0 0;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:2px 0 0 2px;color:#1e1e1e;cursor:pointer;line-height:10px;overflow:initial;padding:0 2px}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{border-top:1px solid var(--wp-components-color-gray-600,#949494);flex:1 0 100%;list-style:none;margin:0;max-height:9em;min-width:100%;overflow-y:auto;padding:0;transition:all .15s ease-in-out}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-delay:0s;transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;cursor:pointer;display:block;font-size:13px;margin:0;padding:4px 8px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{border-radius:2px;margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:60px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 0 0 8px;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;margin:-6px 0;min-width:20px}.components-modal__frame.components-guide{border:none;height:80vh;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{right:32px}.components-button.components-guide__forward-button{color:#1386bf;font-weight:700;left:32px}.components-button.components-guide__finish-button{left:32px}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .edit-post-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{outline:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:-4px}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;margin-top:8px;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-left:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:-2px;margin-right:24px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-right:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:8px;margin-right:-2px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-left:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-left:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-left:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:0;margin-right:auto;padding-right:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-left:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-right:12px}.components-modal__screen-overlay{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-delay:0s;animation-duration:1ms}}.components-modal__frame{animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),-.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);display:flex;margin:40px 0 0;overflow:hidden;width:100%}@media (prefers-reduced-motion:reduce){.components-modal__frame{animation-delay:0s;animation-duration:1ms}}@media (min-width:600px){.components-modal__frame{border-radius:4px;margin:auto;max-height:calc(100% - 120px);max-width:calc(100% - 32px);min-width:350px;width:auto}}@media (min-width:600px) and (min-width:600px){.components-modal__frame.is-full-screen{height:calc(100% - 32px);max-height:none;width:calc(100% - 32px)}}@media (min-width:600px) and (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{align-items:center;border-bottom:1px solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;padding:24px 32px 8px;position:absolute;right:0;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{position:relative;right:8px}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:right}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 32px 32px}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-notice{align-items:center;background-color:#fff;border-right:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-left:36px;position:relative}.components-notice.is-success{background-color:#eff9f1;border-right-color:#4ab866}.components-notice.is-warning{background-color:#fef8ee;border-right-color:#f0b849}.components-notice.is-error{background-color:#f4a2a2;border-right-color:#cc1818}.components-notice__content{flex-grow:1;margin:4px 0 4px 25px}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-left:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-right:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{align-self:flex-start;color:#757575;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:initial;color:#1e1e1e}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;max-width:100vw}.components-notice-list .components-notice__content{line-height:2;margin-bottom:12px;margin-top:12px}.components-notice-list .components-notice__action.components-button{display:block;margin-right:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:initial;display:flex;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-delay:0s;transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{border:none;box-shadow:none;color:#1e1e1e;font-weight:500;height:auto;outline:none;padding:16px 16px 16px 48px;position:relative;text-align:right;transition:background .1s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-delay:0s;transition-duration:0s}}.components-panel__body-toggle.components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-panel__body-toggle.components-button .components-panel__arrow{fill:currentColor;color:#1e1e1e;left:16px;position:absolute;top:50%;transform:translateY(-50%);transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-delay:0s;transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{-ms-filter:fliph;filter:FlipH;margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 6px -2px 0}.components-panel__body-toggle-icon{margin-left:-5px}.components-panel__color-title{float:right;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-left:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;color:#1e1e1e;margin:0;min-height:200px;outline:1px solid transparent;padding:1em;position:relative;text-align:right;width:100%}@supports (position:sticky){.components-placeholder.components-placeholder{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{align-items:center;display:flex;font-weight:600;margin-bottom:16px}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-left:12px}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.components-placeholder__fieldset{border:none;padding:0}.components-placeholder__fieldset.components-placeholder__fieldset .components-placeholder__instructions{font-size:1em;font-weight:400;padding:0}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex:1 1 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0 0 0 8px;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__fieldset .components-button{margin-bottom:12px;margin-left:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-left:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-left:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-left:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-placeholder.has-illustration{-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);backface-visibility:hidden;background-color:initial;border-radius:2px;box-shadow:none;color:inherit;display:flex;min-width:100px;overflow:hidden}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0;width:auto}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition-delay:0s;transition-duration:0s}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{stroke:currentColor;box-sizing:initial;height:100%;opacity:.25;position:absolute;right:50%;top:50%;transform:translate(50%,-50%);width:100%}.components-popover{will-change:transform;z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:2px;box-shadow:0 0 0 1px #ccc,0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1);box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 16px 0 8px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control__input[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-left:6px;margin-top:0;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(-7px,7px);width:8px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(-5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));content:"";cursor:inherit;display:block;height:15px;left:calc(50% - 8px);outline:2px solid transparent;position:absolute;top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:2px;content:"";cursor:inherit;display:block;height:3px;left:calc(50% - 1px);opacity:0;position:absolute;top:calc(50% - 1px);transition:transform .1s ease-in;width:3px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-delay:0s;transition-duration:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;right:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-delay:0s;animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-delay:0s;animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px}.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-search-control{position:relative}.components-search-control input[type=search].components-search-control__input{background:#f0f0f0;border:none;border-radius:2px;box-shadow:0 0 0 transparent;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:48px;line-height:normal;margin-left:0;margin-right:0;padding:16px 16px 16px 48px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-search-control input[type=search].components-search-control__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}.components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-search-control input[type=search].components-search-control__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px}}.components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}.components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}.components-search-control__icon{align-items:center;bottom:0;display:flex;justify-content:center;left:12px;position:absolute;top:0;width:24px}.components-search-control__icon>svg{margin:8px 0}.components-search-control__input-wrapper{position:relative}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;outline:0}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:16px 24px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-right:24px}.components-snackbar .components-snackbar__icon{position:absolute;right:28px;top:24px}.components-snackbar .components-snackbar__dismiss-button{cursor:pointer;margin-right:32px}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-right:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:initial;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:after{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:before{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-tip{color:#757575;display:flex}.components-tip svg{fill:#f0b849;align-self:center;flex-shrink:0;margin-left:16px}.components-tip p{margin:0}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-left:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-delay:0s;animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 0 5px 10px}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;left:8px;line-height:12px;position:absolute}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-left:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-right:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:initial;content:"";display:inline-block;height:20px;position:absolute;right:-3px;top:8px;width:1px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:min-content}.components-tooltip .components-popover__content{background:#000;border-radius:2px;border-width:0;box-shadow:none;color:#f0f0f0;font-size:12px;line-height:1.4;outline:none;padding:4px 8px;text-align:center;white-space:nowrap}.components-tooltip__shortcut{display:inline-block;margin-right:8px}.disabled-element-wrapper{position:relative}.disabled-element-wrapper .event-catcher{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:100002} \ No newline at end of file diff --git a/wp-includes/css/dist/components/style.css b/wp-includes/css/dist/components/style.css index 93e123b4b1..599767d4a9 100644 --- a/wp-includes/css/dist/components/style.css +++ b/wp-includes/css/dist/components/style.css @@ -1730,7 +1730,7 @@ body.is-dragging-components-draggable{ height:72px; justify-content:space-between; left:0; - padding:24px 32px 12px; + padding:24px 32px 8px; position:absolute; top:0; width:100%; @@ -1776,7 +1776,7 @@ body.is-dragging-components-draggable{ flex:1; margin-top:72px; overflow:auto; - padding:0 32px 32px; + padding:4px 32px 32px; } .components-modal__content.hide-header{ margin-top:0; diff --git a/wp-includes/css/dist/components/style.min.css b/wp-includes/css/dist/components/style.min.css index f92369d1f0..6de3432134 100644 --- a/wp-includes/css/dist/components/style.min.css +++ b/wp-includes/css/dist/components/style.min.css @@ -1,4 +1,4 @@ -@charset "UTF-8";:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-delay:0s;animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-delay:0s;animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:220px;padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{align-items:center;-webkit-appearance:none;background:none;border:0;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,#1e1e1e);cursor:pointer;display:inline-flex;font-family:inherit;font-size:13px;font-weight:400;height:36px;margin:0;padding:6px 12px;text-decoration:none;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button{transition-delay:0s;transition-duration:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:3px solid transparent}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff);outline:1px solid transparent;text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4);opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;box-shadow:none;color:#949494;opacity:1;outline:none;transform:none}.components-button.is-secondary{background:transparent;box-shadow:inset 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:1px solid transparent;white-space:nowrap}.components-button.is-secondary:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){box-shadow:inset 0 0 0 1px #cc1818;color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled){background:#ccc}.components-button.is-link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));height:auto;margin:0;outline:none;padding:0;text-align:left;text-decoration:underline;transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-delay:0s;transition-duration:0s}}.components-button.is-link:focus{border-radius:2px}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,#1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%;opacity:1}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0;width:32px}.components-button.is-small{font-size:11px;height:24px;line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0;width:24px}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:initial;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:8px;padding-right:12px}.components-button.is-pressed{background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 0 0 transparent;clear:none;color:#1e1e1e;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;line-height:0;margin:0 4px 0 0;outline:0;padding:6px 8px;padding:0!important;text-align:center;transition:box-shadow .1s linear;transition:none;transition:border-color .1s ease-in-out;vertical-align:top;width:24px}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-delay:0s;transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{display:inline-block;height:24px;margin-right:12px;position:relative;vertical-align:middle;width:24px}@media (min-width:600px){.components-checkbox-control__input-container{height:20px;width:20px}}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{fill:#fff;cursor:pointer;height:24px;left:0;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:24px}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);transition:transform .1s ease;vertical-align:top;width:28px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;cursor:pointer;display:inline-block;height:100%;transition:box-shadow .1s ease;vertical-align:top;width:100%}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option.is-pressed+svg{border-radius:50%;left:2px;pointer-events:none;position:absolute;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:32px;left:-2px;position:absolute;top:-2px;width:32px}.components-circular-option-picker__option.components-button:focus{background-color:initial;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:280px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{border:none;box-shadow:none;font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{align-items:flex-start;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,#1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker:not(.is-next-has-no-margin){margin-bottom:24px;margin-top:12px}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;outline:2px solid transparent;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-custom-select-control{font-size:13px;position:relative}.components-custom-select-control__button{outline:0;position:relative;text-align:left}.components-custom-select-control__hint{color:#949494;margin-left:10px}.components-custom-select-control__menu{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:400px;min-width:100%;outline:none;overflow:auto;padding:0;position:absolute;transition:none;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;cursor:default;display:grid;grid-template-columns:auto auto;line-height:28px;list-style-type:none;padding:8px 16px}.components-custom-select-control__item:not(.is-next-36px-default-size){padding:8px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#949494;padding-right:4px;text-align:right}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-left:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.block-editor-dimension-control .components-base-control__field{align-items:center;display:flex}.block-editor-dimension-control .components-base-control__label{align-items:center;display:flex;margin-bottom:0;margin-right:1em}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{height:50px;left:-1000px;position:fixed;width:50px}.components-draggable__clone{background:transparent;padding:0;pointer-events:none;position:fixed;z-index:1000000000}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__menu{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:pointer;outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:#ddd;box-sizing:initial;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;height:24px;width:24px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:36px;padding-left:8px;padding-right:8px;text-align:left}.components-dropdown-menu__menu .components-menu-group{margin:0 -8px;padding:8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-top:1px solid #ccc;margin-top:0;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-form-toggle{display:inline-block;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #1e1e1e;border-radius:9px;box-sizing:border-box;content:"";display:inline-block;height:18px;transition:background .2s ease;vertical-align:top;width:36px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:5px solid #1e1e1e;border-radius:50%;box-sizing:border-box;display:block;height:12px;left:3px;position:absolute;top:3px;transition:transform .1s ease;width:12px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-delay:0s;transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;cursor:text;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:#1e1e1e;display:inline-block;flex:1;font-family:inherit;font-size:16px;margin-left:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{padding:0 24px 0 0;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;padding:0;position:absolute;right:0;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{border-radius:4px 0 0 4px;color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;line-height:24px;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.components-form-token-field__token-text{border-radius:2px 0 0 2px;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:0 2px 2px 0;color:#1e1e1e;cursor:pointer;line-height:10px;overflow:initial;padding:0 2px}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{border-top:1px solid var(--wp-components-color-gray-600,#949494);flex:1 0 100%;list-style:none;margin:0;max-height:9em;min-width:100%;overflow-y:auto;padding:0;transition:all .15s ease-in-out}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-delay:0s;transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;cursor:pointer;display:block;font-size:13px;margin:0;padding:4px 8px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{border-radius:2px;margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:60px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;margin:-6px 0;min-width:20px}.components-modal__frame.components-guide{border:none;height:80vh;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button{color:#1386bf;font-weight:700;right:32px}.components-button.components-guide__finish-button{right:32px}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .edit-post-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{outline:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:-4px}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;margin-top:8px;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-right:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:24px;margin-right:-2px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-right:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:auto;margin-right:0;padding-left:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-delay:0s;animation-duration:1ms}}.components-modal__frame{animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);display:flex;margin:40px 0 0;overflow:hidden;width:100%}@media (prefers-reduced-motion:reduce){.components-modal__frame{animation-delay:0s;animation-duration:1ms}}@media (min-width:600px){.components-modal__frame{border-radius:4px;margin:auto;max-height:calc(100% - 120px);max-width:calc(100% - 32px);min-width:350px;width:auto}}@media (min-width:600px) and (min-width:600px){.components-modal__frame.is-full-screen{height:calc(100% - 32px);max-height:none;width:calc(100% - 32px)}}@media (min-width:600px) and (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{align-items:center;border-bottom:1px solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;left:0;padding:24px 32px 12px;position:absolute;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{left:8px;position:relative}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:0 32px 32px}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-notice{align-items:center;background-color:#fff;border-left:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{background-color:#eff9f1;border-left-color:#4ab866}.components-notice.is-warning{background-color:#fef8ee;border-left-color:#f0b849}.components-notice.is-error{background-color:#f4a2a2;border-left-color:#cc1818}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-right:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{align-self:flex-start;color:#757575;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:initial;color:#1e1e1e}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;max-width:100vw}.components-notice-list .components-notice__content{line-height:2;margin-bottom:12px;margin-top:12px}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:initial;display:flex;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-delay:0s;transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{border:none;box-shadow:none;color:#1e1e1e;font-weight:500;height:auto;outline:none;padding:16px 48px 16px 16px;position:relative;text-align:left;transition:background .1s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-delay:0s;transition-duration:0s}}.components-panel__body-toggle.components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-panel__body-toggle.components-button .components-panel__arrow{fill:currentColor;color:#1e1e1e;position:absolute;right:16px;top:50%;transform:translateY(-50%);transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-delay:0s;transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{-ms-filter:fliph;filter:FlipH;margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-right:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;color:#1e1e1e;margin:0;min-height:200px;outline:1px solid transparent;padding:1em;position:relative;text-align:left;width:100%}@supports (position:sticky){.components-placeholder.components-placeholder{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{align-items:center;display:flex;font-weight:600;margin-bottom:16px}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:12px}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.components-placeholder__fieldset{border:none;padding:0}.components-placeholder__fieldset.components-placeholder__fieldset .components-placeholder__instructions{font-size:1em;font-weight:400;padding:0}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex:1 1 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0 8px 0 0;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__fieldset .components-button{margin-bottom:12px;margin-right:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-right:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-right:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-placeholder.has-illustration{-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);backface-visibility:hidden;background-color:initial;border-radius:2px;box-shadow:none;color:inherit;display:flex;min-width:100px;overflow:hidden}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0;width:auto}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition-delay:0s;transition-duration:0s}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{stroke:currentColor;box-sizing:initial;height:100%;left:50%;opacity:.25;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.components-popover{will-change:transform;z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:2px;box-shadow:0 0 0 1px #ccc,0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1);box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control__input[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-right:6px;margin-top:0;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(7px,7px);width:8px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));content:"";cursor:inherit;display:block;height:15px;outline:2px solid transparent;position:absolute;right:calc(50% - 8px);top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:2px;content:"";cursor:inherit;display:block;height:3px;opacity:0;position:absolute;right:calc(50% - 1px);top:calc(50% - 1px);transition:transform .1s ease-in;width:3px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-delay:0s;transition-duration:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;left:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-delay:0s;animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-delay:0s;animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}} +@charset "UTF-8";:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__appear{animation-delay:0s;animation-duration:1ms}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-animate__slide-in{animation-delay:0s;animation-duration:1ms}}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:220px;padding:16px}.components-autocomplete__result.components-button{display:flex;height:auto;min-height:36px;text-align:left;width:100%}.components-autocomplete__result.components-button.is-selected{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button-group{display:inline-block}.components-button-group .components-button{border-radius:0;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button-group .components-button.is-primary{box-shadow:inset 0 0 0 1px #1e1e1e}.components-button{align-items:center;-webkit-appearance:none;background:none;border:0;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,#1e1e1e);cursor:pointer;display:inline-flex;font-family:inherit;font-size:13px;font-weight:400;height:36px;margin:0;padding:6px 12px;text-decoration:none;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-button{transition-delay:0s;transition-duration:0s}}.components-button.is-next-40px-default-size{height:40px}.components-button:hover,.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button[aria-disabled=true]:hover{color:initial}.components-button:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:3px solid transparent}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff);outline:1px solid transparent;text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-primary:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4);opacity:1;outline:none}.components-button.is-primary:disabled:active:enabled:focus:enabled,.components-button.is-primary:disabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:active:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:enabled:focus:enabled,.components-button.is-primary[aria-disabled=true]:focus:enabled{box-shadow:0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent-inverted,#fff)}.components-button.is-secondary,.components-button.is-tertiary{outline:1px solid transparent}.components-button.is-secondary:active:not(:disabled),.components-button.is-tertiary:active:not(:disabled){box-shadow:none}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;box-shadow:none;color:#949494;opacity:1;outline:none;transform:none}.components-button.is-secondary{background:transparent;box-shadow:inset 0 0 0 1px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:1px solid transparent;white-space:nowrap}.components-button.is-secondary:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(var(--wp-admin-theme-color--rgb),.08)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){box-shadow:inset 0 0 0 1px #cc1818;color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) #cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled){background:#ccc}.components-button.is-link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));height:auto;margin:0;outline:none;padding:0;text-align:left;text-decoration:underline;transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}@media (prefers-reduced-motion:reduce){.components-button.is-link{transition-delay:0s;transition-duration:0s}}.components-button.is-link:focus{border-radius:2px}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,#1e1e1e)}.components-button:disabled,.components-button[aria-disabled=true]{cursor:default;opacity:.3}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite;background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%;opacity:1}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0;width:32px}.components-button.is-small{font-size:11px;height:24px;line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:24px;padding:0;width:24px}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:initial;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:8px;padding-right:12px}.components-button.is-pressed{background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button.is-pressed:focus:not(:disabled){box-shadow:inset 0 0 0 1px var(--wp-components-color-background,#fff),0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-button.is-pressed:hover:not(:disabled){background:var(--wp-components-color-foreground,#1e1e1e);color:var(--wp-components-color-foreground-inverted,#fff)}.components-button svg{fill:currentColor;outline:none}@media (forced-colors:active){.components-button svg{fill:CanvasText}}.components-button .components-visually-hidden{height:auto}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control__input[type=checkbox]{-webkit-appearance:none;appearance:none;background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:0 0 0 transparent;clear:none;color:#1e1e1e;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;line-height:0;margin:0 4px 0 0;outline:0;padding:6px 8px;padding:0!important;text-align:center;transition:box-shadow .1s linear;transition:none;transition:border-color .1s ease-in-out;vertical-align:top;width:24px}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-checkbox-control__input[type=checkbox]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox]:checked::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:#fff;margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"";display:inline-block;float:left;font:normal 30px/1 dashicons;vertical-align:middle;width:16px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{height:20px;width:20px}}@media (prefers-reduced-motion:reduce){.components-checkbox-control__input[type=checkbox]{transition-delay:0s;transition-duration:0s}}.components-checkbox-control__input[type=checkbox]:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.components-checkbox-control__input[type=checkbox]:checked,.components-checkbox-control__input[type=checkbox]:indeterminate{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:checked::-ms-check,.components-checkbox-control__input[type=checkbox]:indeterminate::-ms-check{opacity:0}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input-container{display:inline-block;height:24px;margin-right:12px;position:relative;vertical-align:middle;width:24px}@media (min-width:600px){.components-checkbox-control__input-container{height:20px;width:20px}}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{fill:#fff;cursor:pointer;height:24px;left:0;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:24px}@media (min-width:600px){svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{left:-2px;top:-2px}}.components-circular-option-picker{display:inline-block;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);transition:transform .1s ease;vertical-align:top;width:28px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option-wrapper{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.2)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8V6H4v2h2zm2 0V6h2v2H8zm2 8H8v-2h2v2zm2 0v-2h2v2h-2zm0 2v-2h-2v2H8v2h2v-2h2zm2 0v2h-2v-2h2zm2 0h-2v-2h2v2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2v2zm-2-4v-2h2v2h-2z' fill='%23555D65'/%3E%3Cpath d='M18 18v2h-2v-2h2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2H8zm0 2v-2H6v2h2zm2 0v-2h2v2h-2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2h-2z' fill='%23555D65'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4V0zm0 4V2H2v2h2zm2 0V2h2v2H6zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2H6z' fill='%23555D65'/%3E%3C/svg%3E");border-radius:50%;bottom:1px;content:"";left:1px;position:absolute;right:1px;top:1px;z-index:-1}.components-circular-option-picker__option{background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;cursor:pointer;display:inline-block;height:100%;transition:box-shadow .1s ease;vertical-align:top;width:100%}@media (prefers-reduced-motion:reduce){.components-circular-option-picker__option{transition-delay:0s;transition-duration:0s}}.components-circular-option-picker__option:hover{box-shadow:inset 0 0 0 14px!important}.components-circular-option-picker__option.is-pressed{box-shadow:inset 0 0 0 4px;overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option.is-pressed+svg{border-radius:50%;left:2px;pointer-events:none;position:absolute;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;bottom:-1px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:inherit;content:"";left:-1px;position:absolute;right:-1px;top:-1px}.components-circular-option-picker__option:focus:after{border:2px solid #757575;border-radius:50%;box-shadow:inset 0 0 0 2px #fff;content:"";height:32px;left:-2px;position:absolute;top:-2px;width:32px}.components-circular-option-picker__option.components-button:focus{background-color:initial;box-shadow:inset 0 0 0 14px;outline:none}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-gradient-picker{padding:8px;width:280px}.components-dropdown-menu__menu .components-palette-edit__menu-button{width:100%}.component-color-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{border:none;box-shadow:none;font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{align-items:flex-start;border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-combobox-control__suggestions-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__suggestions-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-combobox-control__suggestions-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container:focus-within{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-combobox-control__reset.components-button{display:flex;height:16px;min-width:16px;padding:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-width:2px}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,#1e1e1e);margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker:not(.is-next-has-no-margin){margin-bottom:24px;margin-top:12px}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px;padding:2px;position:relative;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;outline:2px solid transparent;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25);outline:1.5px solid transparent}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar{border:none}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar>div+div{margin-left:1px}.components-custom-gradient-picker .components-custom-gradient-picker__toolbar button.is-pressed>svg{background:#fff;border:1px solid #949494;border-radius:2px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-custom-select-control{font-size:13px;position:relative}.components-custom-select-control__button{outline:0;position:relative;text-align:left}.components-custom-select-control__hint{color:#949494;margin-left:10px}.components-custom-select-control__menu{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;max-height:400px;min-width:100%;outline:none;overflow:auto;padding:0;position:absolute;transition:none;z-index:1000000}.components-custom-select-control__menu[aria-hidden=true]{display:none}.components-custom-select-control__item{align-items:center;cursor:default;display:grid;grid-template-columns:auto auto;line-height:28px;list-style-type:none;padding:8px 16px}.components-custom-select-control__item:not(.is-next-36px-default-size){padding:8px}.components-custom-select-control__item.has-hint{grid-template-columns:auto auto 30px}.components-custom-select-control__item.is-highlighted{background:#ddd}.components-custom-select-control__item .components-custom-select-control__item-hint{color:#949494;padding-right:4px;text-align:right}.components-custom-select-control__item .components-custom-select-control__item-icon{margin-left:auto}.components-custom-select-control__item:last-child{margin-bottom:0}.block-editor-dimension-control .components-base-control__field{align-items:center;display:flex}.block-editor-dimension-control .components-base-control__label{align-items:center;display:flex;margin-bottom:0;margin-right:1em}.block-editor-dimension-control .components-base-control__label .dashicon{margin-right:.5em}.block-editor-dimension-control.is-manual .components-base-control__label{width:10em}body.is-dragging-components-draggable{cursor:move;cursor:grabbing!important}.components-draggable__invisible-drag-image{height:50px;left:-1000px;position:fixed;width:50px}.components-draggable__clone{background:transparent;padding:0;pointer-events:none;position:fixed;z-index:1000000000}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown-menu__menu{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:pointer;outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:#ddd;box-sizing:initial;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item>svg,.components-dropdown-menu__menu .components-menu-item>svg{border-radius:2px;height:24px;width:24px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:36px;padding-left:8px;padding-right:8px;text-align:left}.components-dropdown-menu__menu .components-menu-group{margin:0 -8px;padding:8px}.components-dropdown-menu__menu .components-menu-group:first-child{margin-top:-8px}.components-dropdown-menu__menu .components-menu-group:last-child{margin-bottom:-8px}.components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-top:1px solid #ccc;margin-top:0;padding:8px}.is-alternate .components-dropdown-menu__menu .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-button{padding:6px}.components-color-list-picker__swatch-color{margin:2px}.components-form-toggle{display:inline-block;position:relative}.components-form-toggle .components-form-toggle__track{background-color:#fff;border:1px solid #1e1e1e;border-radius:9px;box-sizing:border-box;content:"";display:inline-block;height:18px;transition:background .2s ease;vertical-align:top;width:36px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__track{transition-delay:0s;transition-duration:0s}}.components-form-toggle .components-form-toggle__thumb{background-color:#1e1e1e;border:5px solid #1e1e1e;border-radius:50%;box-sizing:border-box;display:block;height:12px;left:3px;position:absolute;top:3px;transition:transform .1s ease;width:12px}@media (prefers-reduced-motion:reduce){.components-form-toggle .components-form-toggle__thumb{transition-delay:0s;transition-duration:0s}}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border:9px solid transparent}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent;outline-offset:2px}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:#fff;border-width:0;transform:translateX(18px)}.components-disabled .components-form-toggle,.components-form-toggle.is-disabled{opacity:.3}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-token-field__input-container{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;cursor:text;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:0;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-form-token-field__input-container{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-form-token-field__input-container:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container.is-disabled{background:#ddd;border-color:#ddd}.components-form-token-field__input-container.is-active{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:#1e1e1e;display:inline-block;flex:1;font-family:inherit;font-size:16px;margin-left:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-borderless{padding:0 24px 0 0;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;padding:0;position:absolute;right:0;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{border-radius:4px 0 0 4px;color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token{cursor:default}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;line-height:24px;min-width:unset;transition:all .2s cubic-bezier(.4,1,.4,1)}@media (prefers-reduced-motion:reduce){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.components-form-token-field__token-text{border-radius:2px 0 0 2px;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:0 2px 2px 0;color:#1e1e1e;cursor:pointer;line-height:10px;overflow:initial;padding:0 2px}.components-form-token-field__remove-token.components-button:hover{color:#1e1e1e}.components-form-token-field__suggestions-list{border-top:1px solid var(--wp-components-color-gray-600,#949494);flex:1 0 100%;list-style:none;margin:0;max-height:9em;min-width:100%;overflow-y:auto;padding:0;transition:all .15s ease-in-out}@media (prefers-reduced-motion:reduce){.components-form-token-field__suggestions-list{transition-delay:0s;transition-duration:0s}}.components-form-token-field__suggestion{color:#757575;cursor:pointer;display:block;font-size:13px;margin:0;padding:4px 8px}.components-form-token-field__suggestion.is-selected{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:#fff}.components-form-token-field__suggestion-match{text-decoration:underline}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{border-radius:2px;margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:60px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-modal__header .components-button:hover svg{fill:#fff}.components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-60px;min-height:100%}.components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide__page{min-height:300px}}.components-guide__footer{align-content:center;display:flex;height:30px;justify-content:center;margin:0 0 24px;padding:0 32px;position:relative;width:100%}.components-guide__page-control{margin:0;text-align:center}.components-guide__page-control li{display:inline-block;margin:0}.components-guide__page-control .components-button{height:30px;margin:-6px 0;min-width:20px}.components-modal__frame.components-guide{border:none;height:80vh;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{height:30px;position:absolute}.components-button.components-guide__back-button,.components-button.components-guide__forward-button{font-size:13px;padding:4px 2px}.components-button.components-guide__back-button.has-text svg,.components-button.components-guide__forward-button.has-text svg{margin:0}.components-button.components-guide__back-button:hover,.components-button.components-guide__forward-button:hover{text-decoration:underline}.components-button.components-guide__back-button{left:32px}.components-button.components-guide__forward-button{color:#1386bf;font-weight:700;right:32px}.components-button.components-guide__finish-button{right:32px}[role=region]{position:relative}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions .edit-post-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .edit-post-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{outline:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline-offset:-4px}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;margin-top:8px;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group__label{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button,.components-menu-item__button.components-button{width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-right:48px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:24px;margin-right:-2px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{color:#757575;font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-right:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:auto;margin-right:0;padding-left:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}.components-modal__screen-overlay{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@media (prefers-reduced-motion:reduce){.components-modal__screen-overlay{animation-delay:0s;animation-duration:1ms}}.components-modal__frame{animation:components-modal__appear-animation .1s ease-out;animation-fill-mode:forwards;background:#fff;border-radius:4px 4px 0 0;box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);display:flex;margin:40px 0 0;overflow:hidden;width:100%}@media (prefers-reduced-motion:reduce){.components-modal__frame{animation-delay:0s;animation-duration:1ms}}@media (min-width:600px){.components-modal__frame{border-radius:4px;margin:auto;max-height:calc(100% - 120px);max-width:calc(100% - 32px);min-width:350px;width:auto}}@media (min-width:600px) and (min-width:600px){.components-modal__frame.is-full-screen{height:calc(100% - 32px);max-height:none;width:calc(100% - 32px)}}@media (min-width:600px) and (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - 80px);max-width:none;width:calc(100% - 80px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}@keyframes components-modal__appear-animation{0%{transform:translateY(32px)}to{transform:translateY(0)}}.components-modal__header{align-items:center;border-bottom:1px solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:72px;justify-content:space-between;left:0;padding:24px 32px 8px;position:absolute;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:1.2rem;font-weight:600}.components-modal__header h1{line-height:1;margin:0}.components-modal__header .components-button{left:8px;position:relative}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:#ddd}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:left}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:8px}.components-modal__content{flex:1;margin-top:72px;overflow:auto;padding:4px 32px 32px}.components-modal__content.hide-header{margin-top:0;padding-top:32px}.components-modal__content.is-scrollable:focus-visible{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.components-notice{align-items:center;background-color:#fff;border-left:4px solid var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:5px 15px 2px;padding:8px 12px}.components-notice.is-dismissible{padding-right:36px;position:relative}.components-notice.is-success{background-color:#eff9f1;border-left-color:#4ab866}.components-notice.is-warning{background-color:#fef8ee;border-left-color:#f0b849}.components-notice.is-error{background-color:#f4a2a2;border-left-color:#cc1818}.components-notice__content{flex-grow:1;margin:4px 25px 4px 0}.components-notice__actions{display:flex;flex-wrap:wrap}.components-notice__action.components-button{margin-right:8px}.components-notice__action.components-button,.components-notice__action.components-button.is-link{margin-left:12px}.components-notice__action.components-button.is-secondary{vertical-align:initial}.components-notice__dismiss{align-self:flex-start;color:#757575;flex-shrink:0}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{background-color:initial;color:#1e1e1e}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{box-shadow:none}.components-notice-list{box-sizing:border-box;max-width:100vw}.components-notice-list .components-notice__content{line-height:2;margin-bottom:12px;margin-top:12px}.components-notice-list .components-notice__action.components-button{display:block;margin-left:0;margin-top:8px}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:initial;display:flex;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0;transition:background .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body>.components-panel__body-title{transition-delay:0s;transition-duration:0s}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{border:none;box-shadow:none;color:#1e1e1e;font-weight:500;height:auto;outline:none;padding:16px 48px 16px 16px;position:relative;text-align:left;transition:background .1s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button{transition-delay:0s;transition-duration:0s}}.components-panel__body-toggle.components-button:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-panel__body-toggle.components-button .components-panel__arrow{fill:currentColor;color:#1e1e1e;position:absolute;right:16px;top:50%;transform:translateY(-50%);transition:color .1s ease-in-out}@media (prefers-reduced-motion:reduce){.components-panel__body-toggle.components-button .components-panel__arrow{transition-delay:0s;transition-duration:0s}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{-ms-filter:fliph;filter:FlipH;margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-right:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;box-sizing:border-box;color:#1e1e1e;margin:0;min-height:200px;outline:1px solid transparent;padding:1em;position:relative;text-align:left;width:100%}@supports (position:sticky){.components-placeholder.components-placeholder{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__label{align-items:center;display:flex;font-weight:600;margin-bottom:16px}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:12px}@media (forced-colors:active){.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:CanvasText}}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.components-placeholder__fieldset{border:none;padding:0}.components-placeholder__fieldset.components-placeholder__fieldset .components-placeholder__instructions{font-size:1em;font-weight:400;padding:0}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;flex:1 1 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin:0 8px 0 0;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder__input[type=url]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-placeholder__input[type=url]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-placeholder__input[type=url]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-placeholder__instructions{margin-bottom:1em}.components-placeholder__error{margin-top:1em;width:100%}.components-placeholder__fieldset .components-button{margin-bottom:12px;margin-right:12px}.components-placeholder__fieldset .components-button:last-child{margin-bottom:0;margin-right:0}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-large .components-placeholder__label{font-size:18pt;font-weight:400}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-placeholder__fieldset .components-button,.components-placeholder.is-small .components-placeholder__fieldset .components-button{margin-right:auto}.components-placeholder.is-small .components-button{padding:0 8px 2px}.components-placeholder.has-illustration{-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);backface-visibility:hidden;background-color:initial;border-radius:2px;box-shadow:none;color:inherit;display:flex;min-width:100px;overflow:hidden}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0;width:auto}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition-delay:0s;transition-duration:0s}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{stroke:currentColor;box-sizing:initial;height:100%;left:50%;opacity:.25;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.components-popover{will-change:transform;z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:#fff;border-radius:2px;box-shadow:0 0 0 1px #ccc,0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1);box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 -1px 0 0 #ccc;height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}.components-popover__header{align-items:center;background:#fff;display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__close.components-button{z-index:5}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:#fff;content:"";height:2px;left:1px;position:absolute;right:1px;top:-1px}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:#fff}.components-popover__triangle-border{fill:transparent;stroke-width:1px;stroke:#ccc}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}.components-radio-control__input[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-right:6px;margin-top:0;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.components-radio-control__input[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-radio-control__input[type=radio]{font-size:13px;line-height:normal}}.components-radio-control__input[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.components-radio-control__input[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-radio-control__input[type=radio]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-radio-control__input[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-radio-control__input[type=radio]{height:20px;width:20px}}.components-radio-control__input[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(7px,7px);width:8px}@media (min-width:600px){.components-radio-control__input[type=radio]:checked:before{transform:translate(5px,5px)}}.components-radio-control__input[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.components-radio-control__input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));content:"";cursor:inherit;display:block;height:15px;outline:2px solid transparent;position:absolute;right:calc(50% - 8px);top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:2px;content:"";cursor:inherit;display:block;height:3px;opacity:0;position:absolute;right:calc(50% - 1px);top:calc(50% - 1px);transition:transform .1s ease-in;width:3px;will-change:transform}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle:before{transition-delay:0s;transition-duration:0s}}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;left:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation-delay:0s;animation-duration:1ms}}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation-delay:0s;animation-duration:1ms}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}} /*!rtl:begin:ignore*/.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px} /*!rtl:end:ignore*/.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-search-control{position:relative}.components-search-control input[type=search].components-search-control__input{background:#f0f0f0;border:none;border-radius:2px;box-shadow:0 0 0 transparent;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:48px;line-height:normal;margin-left:0;margin-right:0;padding:16px 48px 16px 16px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-search-control input[type=search].components-search-control__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px;line-height:normal}}.components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-search-control input[type=search].components-search-control__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-search-control input[type=search].components-search-control__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-search-control input[type=search].components-search-control__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.components-search-control input[type=search].components-search-control__input{font-size:13px}}.components-search-control input[type=search].components-search-control__input:focus{background:#fff;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-search-control input[type=search].components-search-control__input::placeholder{color:#757575}.components-search-control input[type=search].components-search-control__input::-webkit-search-cancel-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-decoration,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-button,.components-search-control input[type=search].components-search-control__input::-webkit-search-results-decoration{-webkit-appearance:none}.components-search-control__icon{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:12px;top:0;width:24px}.components-search-control__icon>svg{margin:8px 0}.components-search-control__input-wrapper{position:relative}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;outline:0}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:16px 24px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-left:24px}.components-snackbar .components-snackbar__icon{left:28px;position:absolute;top:24px}.components-snackbar .components-snackbar__dismiss-button{cursor:pointer;margin-left:32px}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-left:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:initial;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#fff;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-tab-panel__tabs-item:after{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:after{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-tab-panel__tabs-item:before{transition-delay:0s;transition-duration:0s}}.components-tab-panel__tabs-item:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));outline:2px solid transparent}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.components-tip{color:#757575;display:flex}.components-tip svg{fill:#f0b849;align-self:center;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-delay:0s;animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-right:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:24px}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:initial;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:min-content}.components-tooltip .components-popover__content{background:#000;border-radius:2px;border-width:0;box-shadow:none;color:#f0f0f0;font-size:12px;line-height:1.4;outline:none;padding:4px 8px;text-align:center;white-space:nowrap}.components-tooltip__shortcut{display:inline-block;margin-left:8px}.disabled-element-wrapper{position:relative}.disabled-element-wrapper .event-catcher{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:100002} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-post/style-rtl.css b/wp-includes/css/dist/edit-post/style-rtl.css index c19718470e..ca21fb149e 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.css +++ b/wp-includes/css/dist/edit-post/style-rtl.css @@ -1660,7 +1660,6 @@ h2.edit-post-template-summary__title{ .edit-post-start-page-options__modal-content .block-editor-block-patterns-list{ column-count:2; column-gap:24px; - padding-top:2px; } @media (min-width:782px){ .edit-post-start-page-options__modal-content .block-editor-block-patterns-list{ diff --git a/wp-includes/css/dist/edit-post/style-rtl.min.css b/wp-includes/css/dist/edit-post/style-rtl.min.css index 196e14906a..c448bf0a32 100644 --- a/wp-includes/css/dist/edit-post/style-rtl.min.css +++ b/wp-includes/css/dist/edit-post/style-rtl.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports (position:sticky){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__document-title{display:flex;flex-grow:1;justify-content:center}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{gap:8px;padding-left:10px}}.edit-post-header-preview__grouping-external{display:flex;padding-bottom:0;position:relative}.edit-post-header-preview__button-external{display:flex;justify-content:flex-start;margin-left:auto;padding-right:8px;width:100%}.edit-post-header-preview__button-external svg{margin-right:auto}.edit-post-post-preview-dropdown .components-popover__content{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 40px 6px 6px;text-align:right;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 8px 6px 6px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background-color:hsla(0,0%,100%,.9);border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-post-preview{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.block-editor-post-preview__dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__document-overview-toggle,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__inserter-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-header-toolbar{align-items:center;border:none;display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-post-header-toolbar .block-editor-list-view{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-list-view{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}@media (min-width:600px){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{opacity:0}}.edit-post-header-toolbar__left{align-items:center;display:inline-flex;padding-right:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-right:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-left:8px}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px;padding:0 8px;width:auto}.show-icon-labels .edit-post-header-toolbar__left>*+*{margin-right:8px}.edit-post-document-title{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.edit-post-document-title:hover{background:#e0e0e0;color:currentColor}.edit-post-document-title__title.components-button{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-post-document-title__title.components-button:hover{color:var(--wp-block-synced-color)}.edit-post-document-title__title.components-button h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-post-document-title__shortcut{color:#757575;flex-shrink:0;padding:0 12px}.edit-post-document-title__shortcut:hover{color:#757575}.edit-post-document-title__left{flex-shrink:0;min-width:36px}.edit-post-document-title__left .components-button.has-icon.has-text{color:#757575;gap:0}.edit-post-document-title__left .components-button.has-icon.has-text:hover{color:currentColor}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:fixed}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-right:1px solid #ddd;right:auto;top:32px;transform:translateX(-100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:0;padding:24px;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}@media (min-width:782px){.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-post-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-block-manager__search{margin:16px 0}.edit-post-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:32px 0 0 0 #fff,-32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-1px;z-index:2}.edit-post-block-manager__disabled-blocks-count~.edit-post-block-manager__results .edit-post-block-manager__category-title{top:35px}.edit-post-block-manager__disabled-blocks-count .is-link{margin-right:12px}.edit-post-block-manager__category{margin:0 0 24px}.edit-post-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:0;z-index:1}.edit-post-block-manager__category-title .components-checkbox-control__label{font-weight:600}.edit-post-block-manager__checklist{margin-top:0}.edit-post-block-manager__category-title,.edit-post-block-manager__checklist-item{border-bottom:1px solid #ddd}.edit-post-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 16px 8px 0}.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-left:10px}.edit-post-block-manager__results{border-top:1px solid #ddd}.edit-post-block-manager__disabled-blocks-count+.edit-post-block-manager__results{border-top-width:0}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:initial}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{left:20px;position:absolute;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-editor__document-overview-panel,.edit-post-editor__inserter-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-post-editor__document-overview-panel{width:350px}}.edit-post-editor__document-overview-panel .edit-post-editor__document-overview-panel__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-post-editor__document-overview-panel .components-tab-panel__tabs{border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;padding-left:56px;width:100%}.edit-post-editor__document-overview-panel .components-tab-panel__tabs .edit-post-sidebar__panel-tab{width:50%}.edit-post-editor__document-overview-panel .components-tab-panel__tab-content{height:calc(100% - 48px)}.edit-post-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-post-editor__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-editor__inserter-panel-content{height:100%}}.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar,.edit-post-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-track,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-post-editor__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-post-editor__list-view-container>.document-outline:focus,.edit-post-editor__list-view-container>.document-outline:focus-within,.edit-post-editor__list-view-container>.document-outline:hover,.edit-post-editor__list-view-empty-headings:focus,.edit-post-editor__list-view-empty-headings:focus-within,.edit-post-editor__list-view-empty-headings:hover,.edit-post-editor__list-view-panel-content:focus,.edit-post-editor__list-view-panel-content:focus-within,.edit-post-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-post-editor__list-view-empty-headings{color:#757575;text-align:center}.edit-post-editor__list-view-empty-headings>svg{margin-top:28px}.edit-post-editor__list-view-empty-headings>p{padding-left:32px;padding-right:32px}.edit-post-editor__list-view-overview{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.edit-post-editor__list-view-overview>div>span:first-child{display:inline-block;width:90px}.edit-post-editor__list-view-overview>div>span{color:#757575;font-size:12px;line-height:1.4}.edit-post-editor__list-view-container{display:flex;flex-direction:column;height:100%}.edit-post-editor__document-overview-panel__tab-panel{height:100%}.components-panel__header.edit-post-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:16px;padding-right:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 auto 0 0;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{height:48px;padding:0}.editor-post-last-revision__title.components-button{padding:16px}.edit-post-post-author,.edit-post-post-format{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-schedule{justify-content:flex-start;position:relative;width:100%}.edit-post-post-schedule span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:right;white-space:normal}.components-button.edit-post-post-schedule__toggle span{width:0}.edit-post-post-schedule__dialog .block-editor-publish-date-time-picker{margin:8px}.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;text-align:center;width:100%}.edit-post-post-template{justify-content:flex-start;width:100%}.edit-post-post-template span{display:block;padding:6px 0;width:45%}.edit-post-post-template__dropdown{max-width:55%}.components-button.edit-post-post-template__toggle{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.edit-post-post-template__dialog{z-index:99999}.edit-post-post-template__form{margin:8px;min-width:248px}@media (min-width:782px){.edit-post-post-template__create-form{width:320px}}.edit-post-post-url{align-items:flex-start;justify-content:flex-start;width:100%}.edit-post-post-url span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-url__toggle{height:auto;text-align:right;white-space:normal;word-break:break-word}.edit-post-post-url__dialog .editor-post-url{margin:8px;min-width:248px}.edit-post-post-visibility{justify-content:flex-start;width:100%}.edit-post-post-visibility span{display:block;padding:6px 0;width:45%}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-post-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-post-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title{border:1px solid #949494;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title{padding:24px}}.edit-post-text-editor .editor-post-title:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{background-color:#1e1e1e;display:flex;flex:1 0 auto;flex-flow:column;overflow:hidden;position:relative}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}.edit-post-visual-editor__post-title-wrapper{margin-bottom:var(--wp--style--block-gap);margin-top:4rem}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-right:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.block-editor-page ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.components-popover,.edit-post-editor__inserter-panel,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-editor__inserter-panel *,.edit-post-editor__inserter-panel :after,.edit-post-editor__inserter-panel :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}@supports (scrollbar-gutter:stable){.interface-interface-skeleton__header .edit-post-header{overflow:hidden;scrollbar-gutter:stable}}.interface-interface-skeleton__sidebar{border-right:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0;overflow:hidden scroll}} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports (position:sticky){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__document-title{display:flex;flex-grow:1;justify-content:center}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{gap:8px;padding-left:10px}}.edit-post-header-preview__grouping-external{display:flex;padding-bottom:0;position:relative}.edit-post-header-preview__button-external{display:flex;justify-content:flex-start;margin-left:auto;padding-right:8px;width:100%}.edit-post-header-preview__button-external svg{margin-right:auto}.edit-post-post-preview-dropdown .components-popover__content{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 40px 6px 6px;text-align:right;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 8px 6px 6px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background-color:hsla(0,0%,100%,.9);border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-post-preview{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.block-editor-post-preview__dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__document-overview-toggle,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__inserter-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-header-toolbar{align-items:center;border:none;display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-post-header-toolbar .block-editor-list-view{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-list-view{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}@media (min-width:600px){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{opacity:0}}.edit-post-header-toolbar__left{align-items:center;display:inline-flex;padding-right:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-right:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-left:8px}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px;padding:0 8px;width:auto}.show-icon-labels .edit-post-header-toolbar__left>*+*{margin-right:8px}.edit-post-document-title{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.edit-post-document-title:hover{background:#e0e0e0;color:currentColor}.edit-post-document-title__title.components-button{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-post-document-title__title.components-button:hover{color:var(--wp-block-synced-color)}.edit-post-document-title__title.components-button h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-post-document-title__shortcut{color:#757575;flex-shrink:0;padding:0 12px}.edit-post-document-title__shortcut:hover{color:#757575}.edit-post-document-title__left{flex-shrink:0;min-width:36px}.edit-post-document-title__left .components-button.has-icon.has-text{color:#757575;gap:0}.edit-post-document-title__left .components-button.has-icon.has-text:hover{color:currentColor}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:fixed}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-right:1px solid #ddd;right:auto;top:32px;transform:translateX(-100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:0;padding:24px;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}@media (min-width:782px){.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-post-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-block-manager__search{margin:16px 0}.edit-post-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:32px 0 0 0 #fff,-32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-1px;z-index:2}.edit-post-block-manager__disabled-blocks-count~.edit-post-block-manager__results .edit-post-block-manager__category-title{top:35px}.edit-post-block-manager__disabled-blocks-count .is-link{margin-right:12px}.edit-post-block-manager__category{margin:0 0 24px}.edit-post-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:0;z-index:1}.edit-post-block-manager__category-title .components-checkbox-control__label{font-weight:600}.edit-post-block-manager__checklist{margin-top:0}.edit-post-block-manager__category-title,.edit-post-block-manager__checklist-item{border-bottom:1px solid #ddd}.edit-post-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 16px 8px 0}.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-left:10px}.edit-post-block-manager__results{border-top:1px solid #ddd}.edit-post-block-manager__disabled-blocks-count+.edit-post-block-manager__results{border-top-width:0}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:initial}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{left:20px;position:absolute;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-editor__document-overview-panel,.edit-post-editor__inserter-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-post-editor__document-overview-panel{width:350px}}.edit-post-editor__document-overview-panel .edit-post-editor__document-overview-panel__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-post-editor__document-overview-panel .components-tab-panel__tabs{border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;padding-left:56px;width:100%}.edit-post-editor__document-overview-panel .components-tab-panel__tabs .edit-post-sidebar__panel-tab{width:50%}.edit-post-editor__document-overview-panel .components-tab-panel__tab-content{height:calc(100% - 48px)}.edit-post-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-post-editor__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-editor__inserter-panel-content{height:100%}}.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar,.edit-post-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-track,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-post-editor__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-post-editor__list-view-container>.document-outline:focus,.edit-post-editor__list-view-container>.document-outline:focus-within,.edit-post-editor__list-view-container>.document-outline:hover,.edit-post-editor__list-view-empty-headings:focus,.edit-post-editor__list-view-empty-headings:focus-within,.edit-post-editor__list-view-empty-headings:hover,.edit-post-editor__list-view-panel-content:focus,.edit-post-editor__list-view-panel-content:focus-within,.edit-post-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-post-editor__list-view-empty-headings{color:#757575;text-align:center}.edit-post-editor__list-view-empty-headings>svg{margin-top:28px}.edit-post-editor__list-view-empty-headings>p{padding-left:32px;padding-right:32px}.edit-post-editor__list-view-overview{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.edit-post-editor__list-view-overview>div>span:first-child{display:inline-block;width:90px}.edit-post-editor__list-view-overview>div>span{color:#757575;font-size:12px;line-height:1.4}.edit-post-editor__list-view-container{display:flex;flex-direction:column;height:100%}.edit-post-editor__document-overview-panel__tab-panel{height:100%}.components-panel__header.edit-post-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:16px;padding-right:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 auto 0 0;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{height:48px;padding:0}.editor-post-last-revision__title.components-button{padding:16px}.edit-post-post-author,.edit-post-post-format{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-schedule{justify-content:flex-start;position:relative;width:100%}.edit-post-post-schedule span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:right;white-space:normal}.components-button.edit-post-post-schedule__toggle span{width:0}.edit-post-post-schedule__dialog .block-editor-publish-date-time-picker{margin:8px}.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;text-align:center;width:100%}.edit-post-post-template{justify-content:flex-start;width:100%}.edit-post-post-template span{display:block;padding:6px 0;width:45%}.edit-post-post-template__dropdown{max-width:55%}.components-button.edit-post-post-template__toggle{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.edit-post-post-template__dialog{z-index:99999}.edit-post-post-template__form{margin:8px;min-width:248px}@media (min-width:782px){.edit-post-post-template__create-form{width:320px}}.edit-post-post-url{align-items:flex-start;justify-content:flex-start;width:100%}.edit-post-post-url span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-url__toggle{height:auto;text-align:right;white-space:normal;word-break:break-word}.edit-post-post-url__dialog .editor-post-url{margin:8px;min-width:248px}.edit-post-post-visibility{justify-content:flex-start;width:100%}.edit-post-post-visibility span{display:block;padding:6px 0;width:45%}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-post-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-post-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title{border:1px solid #949494;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title{padding:24px}}.edit-post-text-editor .editor-post-title:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{background-color:#1e1e1e;display:flex;flex:1 0 auto;flex-flow:column;overflow:hidden;position:relative}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}.edit-post-visual-editor__post-title-wrapper{margin-bottom:var(--wp--style--block-gap);margin-top:4rem}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-right:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.block-editor-page ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.components-popover,.edit-post-editor__inserter-panel,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-editor__inserter-panel *,.edit-post-editor__inserter-panel :after,.edit-post-editor__inserter-panel :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}@supports (scrollbar-gutter:stable){.interface-interface-skeleton__header .edit-post-header{overflow:hidden;scrollbar-gutter:stable}}.interface-interface-skeleton__sidebar{border-right:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0;overflow:hidden scroll}} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-post/style.css b/wp-includes/css/dist/edit-post/style.css index e34f1ce515..042bc0cecb 100644 --- a/wp-includes/css/dist/edit-post/style.css +++ b/wp-includes/css/dist/edit-post/style.css @@ -1660,7 +1660,6 @@ h2.edit-post-template-summary__title{ .edit-post-start-page-options__modal-content .block-editor-block-patterns-list{ column-count:2; column-gap:24px; - padding-top:2px; } @media (min-width:782px){ .edit-post-start-page-options__modal-content .block-editor-block-patterns-list{ diff --git a/wp-includes/css/dist/edit-post/style.min.css b/wp-includes/css/dist/edit-post/style.min.css index 0eb79b3cb0..4d83675863 100644 --- a/wp-includes/css/dist/edit-post/style.min.css +++ b/wp-includes/css/dist/edit-post/style.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports (position:sticky){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__document-title{display:flex;flex-grow:1;justify-content:center}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{gap:8px;padding-right:10px}}.edit-post-header-preview__grouping-external{display:flex;padding-bottom:0;position:relative}.edit-post-header-preview__button-external{display:flex;justify-content:flex-start;margin-right:auto;padding-left:8px;width:100%}.edit-post-header-preview__button-external svg{margin-left:auto}.edit-post-post-preview-dropdown .components-popover__content{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 6px 6px 40px;text-align:left;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 6px 6px 8px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background-color:hsla(0,0%,100%,.9);border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-post-preview{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.block-editor-post-preview__dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__document-overview-toggle,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__inserter-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-header-toolbar{align-items:center;border:none;display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-post-header-toolbar .block-editor-list-view{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-list-view{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}@media (min-width:600px){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{opacity:0}}.edit-post-header-toolbar__left{align-items:center;display:inline-flex;padding-left:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-left:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-right:8px}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px;padding:0 8px;width:auto}.show-icon-labels .edit-post-header-toolbar__left>*+*{margin-left:8px}.edit-post-document-title{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.edit-post-document-title:hover{background:#e0e0e0;color:currentColor}.edit-post-document-title__title.components-button{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-post-document-title__title.components-button:hover{color:var(--wp-block-synced-color)}.edit-post-document-title__title.components-button h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-post-document-title__shortcut{color:#757575;flex-shrink:0;padding:0 12px}.edit-post-document-title__shortcut:hover{color:#757575}.edit-post-document-title__left{flex-shrink:0;min-width:36px}.edit-post-document-title__left .components-button.has-icon.has-text{color:#757575;gap:0}.edit-post-document-title__left .components-button.has-icon.has-text:hover{color:currentColor}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;padding-left:16px;padding-right:16px;position:fixed;right:0}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-left:1px solid #ddd;left:auto;top:32px;transform:translateX(100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:auto;padding:24px;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}@media (min-width:782px){.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-post-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-block-manager__search{margin:16px 0}.edit-post-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 0 0 #fff,32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-1px;z-index:2}.edit-post-block-manager__disabled-blocks-count~.edit-post-block-manager__results .edit-post-block-manager__category-title{top:35px}.edit-post-block-manager__disabled-blocks-count .is-link{margin-left:12px}.edit-post-block-manager__category{margin:0 0 24px}.edit-post-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:0;z-index:1}.edit-post-block-manager__category-title .components-checkbox-control__label{font-weight:600}.edit-post-block-manager__checklist{margin-top:0}.edit-post-block-manager__category-title,.edit-post-block-manager__checklist-item{border-bottom:1px solid #ddd}.edit-post-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-right:10px}.edit-post-block-manager__results{border-top:1px solid #ddd}.edit-post-block-manager__disabled-blocks-count+.edit-post-block-manager__results{border-top-width:0}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:initial}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;right:20px;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-editor__document-overview-panel,.edit-post-editor__inserter-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-post-editor__document-overview-panel{width:350px}}.edit-post-editor__document-overview-panel .edit-post-editor__document-overview-panel__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-post-editor__document-overview-panel .components-tab-panel__tabs{border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;padding-right:56px;width:100%}.edit-post-editor__document-overview-panel .components-tab-panel__tabs .edit-post-sidebar__panel-tab{width:50%}.edit-post-editor__document-overview-panel .components-tab-panel__tab-content{height:calc(100% - 48px)}.edit-post-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-post-editor__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-editor__inserter-panel-content{height:100%}}.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar,.edit-post-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-track,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-post-editor__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-post-editor__list-view-container>.document-outline:focus,.edit-post-editor__list-view-container>.document-outline:focus-within,.edit-post-editor__list-view-container>.document-outline:hover,.edit-post-editor__list-view-empty-headings:focus,.edit-post-editor__list-view-empty-headings:focus-within,.edit-post-editor__list-view-empty-headings:hover,.edit-post-editor__list-view-panel-content:focus,.edit-post-editor__list-view-panel-content:focus-within,.edit-post-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-post-editor__list-view-empty-headings{color:#757575;text-align:center}.edit-post-editor__list-view-empty-headings>svg{margin-top:28px}.edit-post-editor__list-view-empty-headings>p{padding-left:32px;padding-right:32px}.edit-post-editor__list-view-overview{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.edit-post-editor__list-view-overview>div>span:first-child{display:inline-block;width:90px}.edit-post-editor__list-view-overview>div>span{color:#757575;font-size:12px;line-height:1.4}.edit-post-editor__list-view-container{display:flex;flex-direction:column;height:100%}.edit-post-editor__document-overview-panel__tab-panel{height:100%}.components-panel__header.edit-post-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:16px}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 0 0 auto;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{height:48px;padding:0}.editor-post-last-revision__title.components-button{padding:16px}.edit-post-post-author,.edit-post-post-format{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-schedule{justify-content:flex-start;position:relative;width:100%}.edit-post-post-schedule span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:left;white-space:normal}.components-button.edit-post-post-schedule__toggle span{width:0}.edit-post-post-schedule__dialog .block-editor-publish-date-time-picker{margin:8px}.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;text-align:center;width:100%}.edit-post-post-template{justify-content:flex-start;width:100%}.edit-post-post-template span{display:block;padding:6px 0;width:45%}.edit-post-post-template__dropdown{max-width:55%}.components-button.edit-post-post-template__toggle{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.edit-post-post-template__dialog{z-index:99999}.edit-post-post-template__form{margin:8px;min-width:248px}@media (min-width:782px){.edit-post-post-template__create-form{width:320px}}.edit-post-post-url{align-items:flex-start;justify-content:flex-start;width:100%}.edit-post-post-url span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-url__toggle{height:auto;text-align:left;white-space:normal;word-break:break-word}.edit-post-post-url__dialog .editor-post-url{margin:8px;min-width:248px}.edit-post-post-visibility{justify-content:flex-start;width:100%}.edit-post-post-visibility span{display:block;padding:6px 0;width:45%}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-post-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-post-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title{border:1px solid #949494;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title{padding:24px}}.edit-post-text-editor .editor-post-title:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{background-color:#1e1e1e;display:flex;flex:1 0 auto;flex-flow:column;overflow:hidden;position:relative}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}.edit-post-visual-editor__post-title-wrapper{margin-bottom:var(--wp--style--block-gap);margin-top:4rem}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-left:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.block-editor-page ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.components-popover,.edit-post-editor__inserter-panel,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-editor__inserter-panel *,.edit-post-editor__inserter-panel :after,.edit-post-editor__inserter-panel :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}@supports (scrollbar-gutter:stable){.interface-interface-skeleton__header .edit-post-header{overflow:hidden;scrollbar-gutter:stable}}.interface-interface-skeleton__sidebar{border-left:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0;overflow:hidden scroll}} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports (position:sticky){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__document-title{display:flex;flex-grow:1;justify-content:center}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{gap:8px;padding-right:10px}}.edit-post-header-preview__grouping-external{display:flex;padding-bottom:0;position:relative}.edit-post-header-preview__button-external{display:flex;justify-content:flex-start;margin-right:auto;padding-left:8px;width:100%}.edit-post-header-preview__button-external svg{margin-left:auto}.edit-post-post-preview-dropdown .components-popover__content{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 6px 6px 40px;text-align:left;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 6px 6px 8px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background-color:hsla(0,0%,100%,.9);border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-post-preview{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.block-editor-post-preview__dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__document-overview-toggle,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__inserter-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-header-toolbar{align-items:center;border:none;display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-post-header-toolbar .block-editor-list-view{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-list-view{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}@media (min-width:600px){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{opacity:0}}.edit-post-header-toolbar__left{align-items:center;display:inline-flex;padding-left:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-left:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-right:8px}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px;padding:0 8px;width:auto}.show-icon-labels .edit-post-header-toolbar__left>*+*{margin-left:8px}.edit-post-document-title{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.edit-post-document-title:hover{background:#e0e0e0;color:currentColor}.edit-post-document-title__title.components-button{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-post-document-title__title.components-button:hover{color:var(--wp-block-synced-color)}.edit-post-document-title__title.components-button h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-post-document-title__shortcut{color:#757575;flex-shrink:0;padding:0 12px}.edit-post-document-title__shortcut:hover{color:#757575}.edit-post-document-title__left{flex-shrink:0;min-width:36px}.edit-post-document-title__left .components-button.has-icon.has-text{color:#757575;gap:0}.edit-post-document-title__left .components-button.has-icon.has-text:hover{color:currentColor}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;padding-left:16px;padding-right:16px;position:fixed;right:0}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-left:1px solid #ddd;left:auto;top:32px;transform:translateX(100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:auto;padding:24px;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}@media (min-width:782px){.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-post-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-block-manager__search{margin:16px 0}.edit-post-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 0 0 #fff,32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-1px;z-index:2}.edit-post-block-manager__disabled-blocks-count~.edit-post-block-manager__results .edit-post-block-manager__category-title{top:35px}.edit-post-block-manager__disabled-blocks-count .is-link{margin-left:12px}.edit-post-block-manager__category{margin:0 0 24px}.edit-post-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:0;z-index:1}.edit-post-block-manager__category-title .components-checkbox-control__label{font-weight:600}.edit-post-block-manager__checklist{margin-top:0}.edit-post-block-manager__category-title,.edit-post-block-manager__checklist-item{border-bottom:1px solid #ddd}.edit-post-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-right:10px}.edit-post-block-manager__results{border-top:1px solid #ddd}.edit-post-block-manager__disabled-blocks-count+.edit-post-block-manager__results{border-top-width:0}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:initial}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;right:20px;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-editor__document-overview-panel,.edit-post-editor__inserter-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-post-editor__document-overview-panel{width:350px}}.edit-post-editor__document-overview-panel .edit-post-editor__document-overview-panel__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-post-editor__document-overview-panel .components-tab-panel__tabs{border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;padding-right:56px;width:100%}.edit-post-editor__document-overview-panel .components-tab-panel__tabs .edit-post-sidebar__panel-tab{width:50%}.edit-post-editor__document-overview-panel .components-tab-panel__tab-content{height:calc(100% - 48px)}.edit-post-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-post-editor__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-editor__inserter-panel-content{height:100%}}.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar,.edit-post-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-track,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-post-editor__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-post-editor__list-view-container>.document-outline:focus,.edit-post-editor__list-view-container>.document-outline:focus-within,.edit-post-editor__list-view-container>.document-outline:hover,.edit-post-editor__list-view-empty-headings:focus,.edit-post-editor__list-view-empty-headings:focus-within,.edit-post-editor__list-view-empty-headings:hover,.edit-post-editor__list-view-panel-content:focus,.edit-post-editor__list-view-panel-content:focus-within,.edit-post-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-post-editor__list-view-empty-headings{color:#757575;text-align:center}.edit-post-editor__list-view-empty-headings>svg{margin-top:28px}.edit-post-editor__list-view-empty-headings>p{padding-left:32px;padding-right:32px}.edit-post-editor__list-view-overview{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.edit-post-editor__list-view-overview>div>span:first-child{display:inline-block;width:90px}.edit-post-editor__list-view-overview>div>span{color:#757575;font-size:12px;line-height:1.4}.edit-post-editor__list-view-container{display:flex;flex-direction:column;height:100%}.edit-post-editor__document-overview-panel__tab-panel{height:100%}.components-panel__header.edit-post-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:16px}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 0 0 auto;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{height:48px;padding:0}.editor-post-last-revision__title.components-button{padding:16px}.edit-post-post-author,.edit-post-post-format{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-schedule{justify-content:flex-start;position:relative;width:100%}.edit-post-post-schedule span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:left;white-space:normal}.components-button.edit-post-post-schedule__toggle span{width:0}.edit-post-post-schedule__dialog .block-editor-publish-date-time-picker{margin:8px}.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;text-align:center;width:100%}.edit-post-post-template{justify-content:flex-start;width:100%}.edit-post-post-template span{display:block;padding:6px 0;width:45%}.edit-post-post-template__dropdown{max-width:55%}.components-button.edit-post-post-template__toggle{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.edit-post-post-template__dialog{z-index:99999}.edit-post-post-template__form{margin:8px;min-width:248px}@media (min-width:782px){.edit-post-post-template__create-form{width:320px}}.edit-post-post-url{align-items:flex-start;justify-content:flex-start;width:100%}.edit-post-post-url span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-url__toggle{height:auto;text-align:left;white-space:normal;word-break:break-word}.edit-post-post-url__dialog .editor-post-url{margin:8px;min-width:248px}.edit-post-post-visibility{justify-content:flex-start;width:100%}.edit-post-post-visibility span{display:block;padding:6px 0;width:45%}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-post-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-post-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title{border:1px solid #949494;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title{padding:24px}}.edit-post-text-editor .editor-post-title:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{background-color:#1e1e1e;display:flex;flex:1 0 auto;flex-flow:column;overflow:hidden;position:relative}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}.edit-post-visual-editor__post-title-wrapper{margin-bottom:var(--wp--style--block-gap);margin-top:4rem}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.block-editor-page,html.wp-toolbar{background:#fff}body.block-editor-page #wpcontent{padding-left:0}body.block-editor-page #wpbody-content{padding-bottom:0}body.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.block-editor-page #wpfooter{display:none}body.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.block-editor-page ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.components-popover,.edit-post-editor__inserter-panel,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-editor__inserter-panel *,.edit-post-editor__inserter-panel :after,.edit-post-editor__inserter-panel :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}@supports (scrollbar-gutter:stable){.interface-interface-skeleton__header .edit-post-header{overflow:hidden;scrollbar-gutter:stable}}.interface-interface-skeleton__sidebar{border-left:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0;overflow:hidden scroll}} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-site/style-rtl.css b/wp-includes/css/dist/edit-site/style-rtl.css index 27a24ab964..00415bba2b 100644 --- a/wp-includes/css/dist/edit-site/style-rtl.css +++ b/wp-includes/css/dist/edit-site/style-rtl.css @@ -2252,7 +2252,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list{ column-count:2; column-gap:24px; - padding-top:2px; } @media (min-width:782px){ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list{ @@ -2695,6 +2694,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{ } .edit-site-sidebar-navigation-item.components-item[aria-current]{ background:var(--wp-admin-theme-color); + color:#fff; } .edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{ fill:#757575; @@ -2848,10 +2848,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{ color:#f0f0f0; } -.sidebar-navigation__rename-modal-form{ - padding-top:1px; -} - .edit-site-sidebar-navigation-screen-page__featured-image-wrapper{ background-color:#2f2f2f; border-radius:4px; diff --git a/wp-includes/css/dist/edit-site/style-rtl.min.css b/wp-includes/css/dist/edit-site/style-rtl.min.css index 30e187a557..2dce713c30 100644 --- a/wp-includes/css/dist/edit-site/style-rtl.min.css +++ b/wp-includes/css/dist/edit-site/style-rtl.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input{background:#fff;border:1px solid #ddd}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{overflow:scroll}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:initial}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 transparent;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:50%;transform:translateX(50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-block-editor__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#1e1e1e;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas{height:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8)}.edit-site-visual-editor.is-view-mode .block-editor-block-contextual-toolbar{display:none}.edit-site-visual-editor__back-button{color:#fff;position:absolute;right:8px;top:8px}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;left:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:transparent;border-radius:0;left:0;right:50%;transform:translateX(1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:0;position:absolute;right:4px;top:24px;width:4px}.resizable-editor__drag-handle.is-left{right:-16px}.resizable-editor__drag-handle.is-right{left:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-spinner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-site-code-editor__toolbar .components-button svg{order:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:rgba(30,30,30,.62)}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border:1px solid #e0e0e0;border-radius:2px;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}[class][class].edit-site-global-styles-sidebar__revisions-count-badge{align-items:center;background:#2f2f2f;border-radius:2px;color:#fff;display:inline-flex;justify-content:center;min-height:24px;min-width:24px}.edit-site-global-styles-screen-revisions{margin:16px}.edit-site-global-styles-screen-revisions__revisions-list{list-style:none;margin:0}.edit-site-global-styles-screen-revisions__revisions-list li{border-right:1px solid #ddd;margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{padding:8px 12px 8px 0;position:relative}.edit-site-global-styles-screen-revisions__revision-item:first-child{padding-top:0}.edit-site-global-styles-screen-revisions__revision-item:last-child{padding-bottom:0}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border-radius:50%;content:"\a";display:inline-block;height:8px;position:absolute;right:0;top:50%;transform:translate(50%,-50%);width:8px}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;padding:8px 12px;width:100%}.edit-site-global-styles-screen-revisions__revision-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-button:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.is-selected .edit-site-global-styles-screen-revisions__revision-button{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));opacity:1}.is-selected .edit-site-global-styles-screen-revisions__meta{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__button{justify-content:center;width:100%}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__meta{align-items:center;color:#757575;display:flex;justify-content:space-between;text-align:right;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-right:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 8px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;padding-right:8px}@media (min-width:600px){.edit-site-header-edit-mode__toolbar{padding-right:24px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-left:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;gap:4px;padding-left:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{gap:8px;padding-left:10px}}.edit-site-header-edit-mode__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header-edit-mode__actions .interface-pinned-items{display:inline-flex}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon.is-pressed,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:focus:not(:disabled),.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:before,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-icon{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-text.has-icon{padding:0 8px;width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>*+*{margin-right:8px}.edit-site-document-actions{background:#f0f0f0;border-radius:4px;display:grid;grid-template-columns:1fr 2fr 1fr;height:36px;min-width:0;overflow:hidden;width:min(100%,450px)}.edit-site-document-actions:hover{background:#e0e0e0;color:currentColor}.edit-site-document-actions__command{display:grid;grid-column:1/-1;grid-row:1;grid-template-columns:1fr 2fr 1fr}.edit-site-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;grid-column:2/3;overflow:hidden}.edit-site-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-document-actions.is-page .edit-site-document-actions__title,.edit-site-document-actions.is-page .edit-site-document-actions__title h1{color:#2f2f2f}.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions__back,.edit-site-document-actions__shortcut{color:#2f2f2f}.edit-site-document-actions:hover .edit-site-document-actions__back,.edit-site-document-actions:hover .edit-site-document-actions__shortcut{color:#1e1e1e}.edit-site-document-actions__shortcut{text-align:left}.edit-site-document-actions__back{flex-shrink:0;grid-column:1/2;grid-row:1;min-width:36px;z-index:1}.edit-site-document-actions.is-animated .edit-site-document-actions__back{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__back{animation-delay:0s;animation-duration:1ms}}@keyframes edit-site-document-actions__slide-in-right{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}@keyframes edit-site-document-actions__slide-in-left{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-left:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;margin:0;padding:0;position:absolute;right:0;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8);flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-left:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:right}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-right:360px}.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-left:8px}.edit-site-list-added-by__icon{align-items:center;background:#2f2f2f;border-radius:100%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__avatar{background:#2f2f2f;border-radius:100%;flex-shrink:0;height:32px;overflow:hidden;width:32px}.edit-site-list-added-by__avatar img{height:32px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:32px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;flex-grow:1;margin:60px 0 0;overflow:auto}@media (min-width:782px){.edit-site-page{border-radius:8px;margin:24px 0 24px 24px}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;height:60px;padding:0 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{overflow-x:auto;padding:32px}.edit-site-library{background:rgba(0,0,0,.05);margin:60px 0 0}.edit-site-library .components-text{color:#949494}.edit-site-library .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-library{margin:0}}.edit-site-library__grid{column-gap:24px;margin-bottom:32px;padding-top:2px}@media (min-width:960px){.edit-site-library__grid{column-count:2}}.edit-site-library__grid .edit-site-library__pattern{break-inside:avoid-column;display:flex;flex-direction:column;margin-bottom:48px}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview{border-radius:2px;cursor:pointer;overflow:hidden}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview:focus{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview.is-inactive{cursor:default}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__button,.edit-site-library__grid .edit-site-library__pattern .edit-site-library__footer{color:#949494}.edit-site-library__grid .edit-site-library__pattern.is-placeholder .edit-site-library__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-library__grid .edit-site-library__pattern.is-placeholder .edit-site-library__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-library__grid .edit-site-library__preview{flex:1;margin-bottom:16px}.edit-site-library__search.edit-site-library__search input[type=search]{background:#2f2f2f;color:#e0e0e0}.edit-site-library__search.edit-site-library__search input[type=search]:focus{background:#2f2f2f}.edit-site-library__search svg{fill:#949494}.edit-site-library__pattern-title{color:#949494}.edit-site-library__pattern-title svg{fill:#fff;background:var(--wp-block-synced-color);border-radius:4px}.edit-site-library__no-results{color:#949494}.edit-site-table-wrapper{width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:right}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-right:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-left:0;text-align:left}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-right:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-right:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar-fixed-bottom-slot{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:initial;display:flex;padding:16px;position:sticky}.edit-site-page-panels__edit-template-preview{border:1px solid #e0e0e0;height:200px;max-height:200px;overflow:hidden}.edit-site-page-panels__edit-template-button{justify-content:center}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block;margin-right:26px}.edit-site-summary-field .components-dropdown{flex-grow:1}.edit-site-summary-field .edit-site-summary-field__trigger{width:100%}.edit-site-summary-field .edit-site-summary-field__label{width:30%}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:16px;padding-right:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 auto 0 0;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar-edit-mode__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-site-sidebar-edit-mode__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{margin:0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-left:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}.edit-site-template-revisions{margin-right:-4px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{right:160px}}.folded .edit-site .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{right:0!important}.edit-site-create-pattern-modal__input input{height:40px}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:right;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-right:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-editor__list-view-panel{width:350px}}.edit-site-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:4px;padding-right:16px}.edit-site-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-site-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-site-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-site-editor__list-view-panel-content:focus,.edit-site-editor__list-view-panel-content:focus-within,.edit-site-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-site-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-layout .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 360px)}}.edit-site-layout__hub{height:60px;position:fixed;right:0;top:0;width:calc(100vw - 48px);z-index:3}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub{padding-left:0;width:60px}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-left:16px;width:100vw}@media (min-width:782px){.edit-site-layout.is-full-canvas .edit-site-layout__hub{padding-left:0;width:auto}}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar{width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar>div{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas:has(.edit-site-layout__resizable-frame-oversized){justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:24px;top:24px;width:calc(100% - 24px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid transparent;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}.edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container{z-index:5}.edit-site-layout.has-fixed-toolbar .edit-site-site-hub{z-index:4}}@media (min-width:782px){.edit-site-layout.has-fixed-toolbar .edit-site-layout__header:focus-within{z-index:3}}.is-edit-mode.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header,.is-edit-mode.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.is-edit-mode.is-distraction-free .edit-site-site-hub{z-index:3}.is-edit-mode.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:24px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__content .components-navigator-screen{display:flex;flex-direction:column;height:100%;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__content .components-navigator-screen:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__content .components-navigator-screen:focus,.edit-site-sidebar__content .components-navigator-screen:focus-within,.edit-site-sidebar__content .components-navigator-screen:hover{scrollbar-color:#757575 transparent}@media (hover:none){.edit-site-sidebar__content .components-navigator-screen{scrollbar-color:#757575 transparent}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 24px;padding:24px 0}.edit-site-sidebar__content>div{padding:0 12px}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#757575}.edit-site-sidebar-navigation-item.components-item:is(a){align-items:center;display:flex;text-decoration:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus{box-shadow:none;outline:none}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-right:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow:hidden;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{flex-shrink:0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:transparent}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer{padding-bottom:8px;padding-right:16px;padding-top:8px}.edit-site-sidebar-navigation-screen-global-styles__revisions{border-radius:2px}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover){color:#e0e0e0}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover) .edit-site-sidebar-navigation-screen-global-styles__revisions__label{color:#949494}.edit-site-sidebar-navigation-screen-library__group{margin-bottom:24px}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.sidebar-navigation__rename-modal-form{padding-top:1px}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{fill:#f0b849;height:16px;margin-left:8px;width:16px}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 4px 0 16px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0}@media (min-width:480px){.edit-site-site-hub .edit-site-site-hub__site-view-link{opacity:0;transition:opacity .2s ease-in-out}}.edit-site-site-hub .edit-site-site-hub__site-view-link:focus{box-shadow:none;opacity:1;outline:none}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub:hover .edit-site-site-hub__site-view-link{opacity:1}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1;margin-right:4px}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-right:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu{display:none}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-site-icon__image{background:#333;border-radius:4px;height:auto;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tab-panel .components-tab-panel__tabs{background:#fff;color:#1e1e1e}.edit-site-style-book__tab-panel .components-tab-panel__tab-content{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:hover,.is-resizing .edit-site-resizable-frame__handle{background-color:var(--wp-admin-theme-color)}.edit-site-resizable-frame__handle .edit-site-resizable-frame__handle-label{background:var(--wp-admin-theme-color);border-radius:2px;color:#fff;margin-left:8px;padding:4px 8px}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}html #wpadminbar{display:none}html #wpbody{padding-top:0}html.wp-toolbar{background:#fff;padding-top:0}body.appearance_page_gutenberg-template-parts,body.site-editor-php{background:#fff}body.appearance_page_gutenberg-template-parts #wpcontent,body.site-editor-php #wpcontent{padding-right:0}body.appearance_page_gutenberg-template-parts #wpbody-content,body.site-editor-php #wpbody-content{padding-bottom:0}body.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.appearance_page_gutenberg-template-parts #wpfooter,body.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.site-editor-php #wpfooter{display:none}body.appearance_page_gutenberg-template-parts .a11y-speak-region,body.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input{background:#fff;border:1px solid #ddd}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{overflow:scroll}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:initial}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 transparent;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:50%;transform:translateX(50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-block-editor__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#1e1e1e;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas{height:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8)}.edit-site-visual-editor.is-view-mode .block-editor-block-contextual-toolbar{display:none}.edit-site-visual-editor__back-button{color:#fff;position:absolute;right:8px;top:8px}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;left:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:transparent;border-radius:0;left:0;right:50%;transform:translateX(1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:0;position:absolute;right:4px;top:24px;width:4px}.resizable-editor__drag-handle.is-left{right:-16px}.resizable-editor__drag-handle.is-right{left:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-spinner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-site-code-editor__toolbar .components-button svg{order:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:rgba(30,30,30,.62)}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border:1px solid #e0e0e0;border-radius:2px;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}[class][class].edit-site-global-styles-sidebar__revisions-count-badge{align-items:center;background:#2f2f2f;border-radius:2px;color:#fff;display:inline-flex;justify-content:center;min-height:24px;min-width:24px}.edit-site-global-styles-screen-revisions{margin:16px}.edit-site-global-styles-screen-revisions__revisions-list{list-style:none;margin:0}.edit-site-global-styles-screen-revisions__revisions-list li{border-right:1px solid #ddd;margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{padding:8px 12px 8px 0;position:relative}.edit-site-global-styles-screen-revisions__revision-item:first-child{padding-top:0}.edit-site-global-styles-screen-revisions__revision-item:last-child{padding-bottom:0}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border-radius:50%;content:"\a";display:inline-block;height:8px;position:absolute;right:0;top:50%;transform:translate(50%,-50%);width:8px}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;padding:8px 12px;width:100%}.edit-site-global-styles-screen-revisions__revision-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-button:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.is-selected .edit-site-global-styles-screen-revisions__revision-button{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));opacity:1}.is-selected .edit-site-global-styles-screen-revisions__meta{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__button{justify-content:center;width:100%}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__meta{align-items:center;color:#757575;display:flex;justify-content:space-between;text-align:right;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-right:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 8px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;padding-right:8px}@media (min-width:600px){.edit-site-header-edit-mode__toolbar{padding-right:24px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-left:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;gap:4px;padding-left:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{gap:8px;padding-left:10px}}.edit-site-header-edit-mode__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header-edit-mode__actions .interface-pinned-items{display:inline-flex}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon.is-pressed,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:focus:not(:disabled),.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:before,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-icon{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-text.has-icon{padding:0 8px;width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>*+*{margin-right:8px}.edit-site-document-actions{background:#f0f0f0;border-radius:4px;display:grid;grid-template-columns:1fr 2fr 1fr;height:36px;min-width:0;overflow:hidden;width:min(100%,450px)}.edit-site-document-actions:hover{background:#e0e0e0;color:currentColor}.edit-site-document-actions__command{display:grid;grid-column:1/-1;grid-row:1;grid-template-columns:1fr 2fr 1fr}.edit-site-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;grid-column:2/3;overflow:hidden}.edit-site-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-document-actions.is-page .edit-site-document-actions__title,.edit-site-document-actions.is-page .edit-site-document-actions__title h1{color:#2f2f2f}.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions__back,.edit-site-document-actions__shortcut{color:#2f2f2f}.edit-site-document-actions:hover .edit-site-document-actions__back,.edit-site-document-actions:hover .edit-site-document-actions__shortcut{color:#1e1e1e}.edit-site-document-actions__shortcut{text-align:left}.edit-site-document-actions__back{flex-shrink:0;grid-column:1/2;grid-row:1;min-width:36px;z-index:1}.edit-site-document-actions.is-animated .edit-site-document-actions__back{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__back{animation-delay:0s;animation-duration:1ms}}@keyframes edit-site-document-actions__slide-in-right{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}@keyframes edit-site-document-actions__slide-in-left{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-left:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;margin:0;padding:0;position:absolute;right:0;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8);flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-left:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:right}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-right:360px}.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-left:8px}.edit-site-list-added-by__icon{align-items:center;background:#2f2f2f;border-radius:100%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__avatar{background:#2f2f2f;border-radius:100%;flex-shrink:0;height:32px;overflow:hidden;width:32px}.edit-site-list-added-by__avatar img{height:32px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:32px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;flex-grow:1;margin:60px 0 0;overflow:auto}@media (min-width:782px){.edit-site-page{border-radius:8px;margin:24px 0 24px 24px}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;height:60px;padding:0 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{overflow-x:auto;padding:32px}.edit-site-library{background:rgba(0,0,0,.05);margin:60px 0 0}.edit-site-library .components-text{color:#949494}.edit-site-library .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-library{margin:0}}.edit-site-library__grid{column-gap:24px;margin-bottom:32px;padding-top:2px}@media (min-width:960px){.edit-site-library__grid{column-count:2}}.edit-site-library__grid .edit-site-library__pattern{break-inside:avoid-column;display:flex;flex-direction:column;margin-bottom:48px}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview{border-radius:2px;cursor:pointer;overflow:hidden}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview:focus{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview.is-inactive{cursor:default}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__button,.edit-site-library__grid .edit-site-library__pattern .edit-site-library__footer{color:#949494}.edit-site-library__grid .edit-site-library__pattern.is-placeholder .edit-site-library__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-library__grid .edit-site-library__pattern.is-placeholder .edit-site-library__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-library__grid .edit-site-library__preview{flex:1;margin-bottom:16px}.edit-site-library__search.edit-site-library__search input[type=search]{background:#2f2f2f;color:#e0e0e0}.edit-site-library__search.edit-site-library__search input[type=search]:focus{background:#2f2f2f}.edit-site-library__search svg{fill:#949494}.edit-site-library__pattern-title{color:#949494}.edit-site-library__pattern-title svg{fill:#fff;background:var(--wp-block-synced-color);border-radius:4px}.edit-site-library__no-results{color:#949494}.edit-site-table-wrapper{width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:right}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-right:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-left:0;text-align:left}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-right:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-right:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar-fixed-bottom-slot{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:initial;display:flex;padding:16px;position:sticky}.edit-site-page-panels__edit-template-preview{border:1px solid #e0e0e0;height:200px;max-height:200px;overflow:hidden}.edit-site-page-panels__edit-template-button{justify-content:center}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block;margin-right:26px}.edit-site-summary-field .components-dropdown{flex-grow:1}.edit-site-summary-field .edit-site-summary-field__trigger{width:100%}.edit-site-summary-field .edit-site-summary-field__label{width:30%}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:16px;padding-right:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 auto 0 0;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar-edit-mode__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-site-sidebar-edit-mode__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{margin:0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-left:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}.edit-site-template-revisions{margin-right:-4px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{right:160px}}.folded .edit-site .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{right:0!important}.edit-site-create-pattern-modal__input input{height:40px}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:right;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-right:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-editor__list-view-panel{width:350px}}.edit-site-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:4px;padding-right:16px}.edit-site-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-site-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-site-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-site-editor__list-view-panel-content:focus,.edit-site-editor__list-view-panel-content:focus-within,.edit-site-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-site-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-layout .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 360px)}}.edit-site-layout__hub{height:60px;position:fixed;right:0;top:0;width:calc(100vw - 48px);z-index:3}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub{padding-left:0;width:60px}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-left:16px;width:100vw}@media (min-width:782px){.edit-site-layout.is-full-canvas .edit-site-layout__hub{padding-left:0;width:auto}}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar{width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar>div{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas:has(.edit-site-layout__resizable-frame-oversized){justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:24px;top:24px;width:calc(100% - 24px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid transparent;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}.edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container{z-index:5}.edit-site-layout.has-fixed-toolbar .edit-site-site-hub{z-index:4}}@media (min-width:782px){.edit-site-layout.has-fixed-toolbar .edit-site-layout__header:focus-within{z-index:3}}.is-edit-mode.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header,.is-edit-mode.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.is-edit-mode.is-distraction-free .edit-site-site-hub{z-index:3}.is-edit-mode.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:24px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__content .components-navigator-screen{display:flex;flex-direction:column;height:100%;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__content .components-navigator-screen:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__content .components-navigator-screen:focus,.edit-site-sidebar__content .components-navigator-screen:focus-within,.edit-site-sidebar__content .components-navigator-screen:hover{scrollbar-color:#757575 transparent}@media (hover:none){.edit-site-sidebar__content .components-navigator-screen{scrollbar-color:#757575 transparent}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 24px;padding:24px 0}.edit-site-sidebar__content>div{padding:0 12px}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#757575}.edit-site-sidebar-navigation-item.components-item:is(a){align-items:center;display:flex;text-decoration:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus{box-shadow:none;outline:none}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-right:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow:hidden;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{flex-shrink:0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:transparent}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer{padding-bottom:8px;padding-right:16px;padding-top:8px}.edit-site-sidebar-navigation-screen-global-styles__revisions{border-radius:2px}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover){color:#e0e0e0}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover) .edit-site-sidebar-navigation-screen-global-styles__revisions__label{color:#949494}.edit-site-sidebar-navigation-screen-library__group{margin-bottom:24px}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{fill:#f0b849;height:16px;margin-left:8px;width:16px}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 4px 0 16px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0}@media (min-width:480px){.edit-site-site-hub .edit-site-site-hub__site-view-link{opacity:0;transition:opacity .2s ease-in-out}}.edit-site-site-hub .edit-site-site-hub__site-view-link:focus{box-shadow:none;opacity:1;outline:none}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub:hover .edit-site-site-hub__site-view-link{opacity:1}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1;margin-right:4px}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-right:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu{display:none}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-site-icon__image{background:#333;border-radius:4px;height:auto;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tab-panel .components-tab-panel__tabs{background:#fff;color:#1e1e1e}.edit-site-style-book__tab-panel .components-tab-panel__tab-content{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:hover,.is-resizing .edit-site-resizable-frame__handle{background-color:var(--wp-admin-theme-color)}.edit-site-resizable-frame__handle .edit-site-resizable-frame__handle-label{background:var(--wp-admin-theme-color);border-radius:2px;color:#fff;margin-left:8px;padding:4px 8px}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}html #wpadminbar{display:none}html #wpbody{padding-top:0}html.wp-toolbar{background:#fff;padding-top:0}body.appearance_page_gutenberg-template-parts,body.site-editor-php{background:#fff}body.appearance_page_gutenberg-template-parts #wpcontent,body.site-editor-php #wpcontent{padding-right:0}body.appearance_page_gutenberg-template-parts #wpbody-content,body.site-editor-php #wpbody-content{padding-bottom:0}body.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.appearance_page_gutenberg-template-parts #wpfooter,body.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.site-editor-php #wpfooter{display:none}body.appearance_page_gutenberg-template-parts .a11y-speak-region,body.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file diff --git a/wp-includes/css/dist/edit-site/style.css b/wp-includes/css/dist/edit-site/style.css index 245e3ebf2d..d05b1de744 100644 --- a/wp-includes/css/dist/edit-site/style.css +++ b/wp-includes/css/dist/edit-site/style.css @@ -2252,7 +2252,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list{ column-count:2; column-gap:24px; - padding-top:2px; } @media (min-width:782px){ .edit-site-start-template-options__modal-content .block-editor-block-patterns-list{ @@ -2695,6 +2694,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{ } .edit-site-sidebar-navigation-item.components-item[aria-current]{ background:var(--wp-admin-theme-color); + color:#fff; } .edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{ fill:#757575; @@ -2848,10 +2848,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{ color:#f0f0f0; } -.sidebar-navigation__rename-modal-form{ - padding-top:1px; -} - .edit-site-sidebar-navigation-screen-page__featured-image-wrapper{ background-color:#2f2f2f; border-radius:4px; diff --git a/wp-includes/css/dist/edit-site/style.min.css b/wp-includes/css/dist/edit-site/style.min.css index b4f9e47a54..dbff5b806a 100644 --- a/wp-includes/css/dist/edit-site/style.min.css +++ b/wp-includes/css/dist/edit-site/style.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input{background:#fff;border:1px solid #ddd}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{overflow:scroll}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:initial}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 transparent;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;left:50%;position:absolute;transform:translateX(-50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-block-editor__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#1e1e1e;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas{height:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8)}.edit-site-visual-editor.is-view-mode .block-editor-block-contextual-toolbar{display:none}.edit-site-visual-editor__back-button{color:#fff;left:8px;position:absolute;top:8px}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;right:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:transparent;border-radius:0;left:50%;right:0;transform:translateX(-1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:4px;position:absolute;right:0;top:24px;width:4px}.resizable-editor__drag-handle.is-left{left:-16px}.resizable-editor__drag-handle.is-right{right:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-spinner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-site-code-editor__toolbar .components-button svg{order:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:rgba(30,30,30,.62)}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border:1px solid #e0e0e0;border-radius:2px;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}[class][class].edit-site-global-styles-sidebar__revisions-count-badge{align-items:center;background:#2f2f2f;border-radius:2px;color:#fff;display:inline-flex;justify-content:center;min-height:24px;min-width:24px}.edit-site-global-styles-screen-revisions{margin:16px}.edit-site-global-styles-screen-revisions__revisions-list{list-style:none;margin:0}.edit-site-global-styles-screen-revisions__revisions-list li{border-left:1px solid #ddd;margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{padding:8px 0 8px 12px;position:relative}.edit-site-global-styles-screen-revisions__revision-item:first-child{padding-top:0}.edit-site-global-styles-screen-revisions__revision-item:last-child{padding-bottom:0}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border-radius:50%;content:"\a";display:inline-block;height:8px;left:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;padding:8px 12px;width:100%}.edit-site-global-styles-screen-revisions__revision-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-button:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.is-selected .edit-site-global-styles-screen-revisions__revision-button{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));opacity:1}.is-selected .edit-site-global-styles-screen-revisions__meta{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__button{justify-content:center;width:100%}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__meta{align-items:center;color:#757575;display:flex;justify-content:space-between;text-align:left;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-left:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 8px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;padding-left:8px}@media (min-width:600px){.edit-site-header-edit-mode__toolbar{padding-left:24px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-right:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;gap:4px;padding-right:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{gap:8px;padding-right:10px}}.edit-site-header-edit-mode__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header-edit-mode__actions .interface-pinned-items{display:inline-flex}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon.is-pressed,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:focus:not(:disabled),.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:before,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-icon{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-text.has-icon{padding:0 8px;width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>*+*{margin-left:8px}.edit-site-document-actions{background:#f0f0f0;border-radius:4px;display:grid;grid-template-columns:1fr 2fr 1fr;height:36px;min-width:0;overflow:hidden;width:min(100%,450px)}.edit-site-document-actions:hover{background:#e0e0e0;color:currentColor}.edit-site-document-actions__command{display:grid;grid-column:1/-1;grid-row:1;grid-template-columns:1fr 2fr 1fr}.edit-site-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;grid-column:2/3;overflow:hidden}.edit-site-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-document-actions.is-page .edit-site-document-actions__title,.edit-site-document-actions.is-page .edit-site-document-actions__title h1{color:#2f2f2f}.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions__back,.edit-site-document-actions__shortcut{color:#2f2f2f}.edit-site-document-actions:hover .edit-site-document-actions__back,.edit-site-document-actions:hover .edit-site-document-actions__shortcut{color:#1e1e1e}.edit-site-document-actions__shortcut{text-align:right}.edit-site-document-actions__back{flex-shrink:0;grid-column:1/2;grid-row:1;min-width:36px;z-index:1}.edit-site-document-actions.is-animated .edit-site-document-actions__back{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__back{animation-delay:0s;animation-duration:1ms}}@keyframes edit-site-document-actions__slide-in-right{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}@keyframes edit-site-document-actions__slide-in-left{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-right:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;left:0;margin:0;padding:0;position:absolute;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8);flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-right:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:left}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-left:360px}.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-right:8px}.edit-site-list-added-by__icon{align-items:center;background:#2f2f2f;border-radius:100%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__avatar{background:#2f2f2f;border-radius:100%;flex-shrink:0;height:32px;overflow:hidden;width:32px}.edit-site-list-added-by__avatar img{height:32px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:32px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;flex-grow:1;margin:60px 0 0;overflow:auto}@media (min-width:782px){.edit-site-page{border-radius:8px;margin:24px 24px 24px 0}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;height:60px;padding:0 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{overflow-x:auto;padding:32px}.edit-site-library{background:rgba(0,0,0,.05);margin:60px 0 0}.edit-site-library .components-text{color:#949494}.edit-site-library .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-library{margin:0}}.edit-site-library__grid{column-gap:24px;margin-bottom:32px;padding-top:2px}@media (min-width:960px){.edit-site-library__grid{column-count:2}}.edit-site-library__grid .edit-site-library__pattern{break-inside:avoid-column;display:flex;flex-direction:column;margin-bottom:48px}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview{border-radius:2px;cursor:pointer;overflow:hidden}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview:focus{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview.is-inactive{cursor:default}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__button,.edit-site-library__grid .edit-site-library__pattern .edit-site-library__footer{color:#949494}.edit-site-library__grid .edit-site-library__pattern.is-placeholder .edit-site-library__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-library__grid .edit-site-library__pattern.is-placeholder .edit-site-library__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-library__grid .edit-site-library__preview{flex:1;margin-bottom:16px}.edit-site-library__search.edit-site-library__search input[type=search]{background:#2f2f2f;color:#e0e0e0}.edit-site-library__search.edit-site-library__search input[type=search]:focus{background:#2f2f2f}.edit-site-library__search svg{fill:#949494}.edit-site-library__pattern-title{color:#949494}.edit-site-library__pattern-title svg{fill:#fff;background:var(--wp-block-synced-color);border-radius:4px}.edit-site-library__no-results{color:#949494}.edit-site-table-wrapper{width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:left}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-left:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-right:0;text-align:right}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-left:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-left:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar-fixed-bottom-slot{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:initial;display:flex;padding:16px;position:sticky}.edit-site-page-panels__edit-template-preview{border:1px solid #e0e0e0;height:200px;max-height:200px;overflow:hidden}.edit-site-page-panels__edit-template-button{justify-content:center}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block;margin-left:26px}.edit-site-summary-field .components-dropdown{flex-grow:1}.edit-site-summary-field .edit-site-summary-field__trigger{width:100%}.edit-site-summary-field .edit-site-summary-field__label{width:30%}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:16px}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 0 0 auto;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar-edit-mode__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-site-sidebar-edit-mode__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{margin:0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-right:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}.edit-site-template-revisions{margin-left:-4px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{left:160px}}.folded .edit-site .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{left:0!important}.edit-site-create-pattern-modal__input input{height:40px}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:left;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-editor__list-view-panel{width:350px}}.edit-site-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:4px}.edit-site-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-site-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-site-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-site-editor__list-view-panel-content:focus,.edit-site-editor__list-view-panel-content:focus-within,.edit-site-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-site-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px;padding-top:2px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-layout .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 360px)}}.edit-site-layout__hub{height:60px;left:0;position:fixed;top:0;width:calc(100vw - 48px);z-index:3}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub{padding-right:0;width:60px}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-right:16px;width:100vw}@media (min-width:782px){.edit-site-layout.is-full-canvas .edit-site-layout__hub{padding-right:0;width:auto}}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar{width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar>div{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas:has(.edit-site-layout__resizable-frame-oversized){justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:24px;top:24px;width:calc(100% - 24px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid transparent;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}.edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container{z-index:5}.edit-site-layout.has-fixed-toolbar .edit-site-site-hub{z-index:4}}@media (min-width:782px){.edit-site-layout.has-fixed-toolbar .edit-site-layout__header:focus-within{z-index:3}}.is-edit-mode.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header,.is-edit-mode.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.is-edit-mode.is-distraction-free .edit-site-site-hub{z-index:3}.is-edit-mode.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:24px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__content .components-navigator-screen{display:flex;flex-direction:column;height:100%;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__content .components-navigator-screen:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__content .components-navigator-screen:focus,.edit-site-sidebar__content .components-navigator-screen:focus-within,.edit-site-sidebar__content .components-navigator-screen:hover{scrollbar-color:#757575 transparent}@media (hover:none){.edit-site-sidebar__content .components-navigator-screen{scrollbar-color:#757575 transparent}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 24px;padding:24px 0}.edit-site-sidebar__content>div{padding:0 12px}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#757575}.edit-site-sidebar-navigation-item.components-item:is(a){align-items:center;display:flex;text-decoration:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus{box-shadow:none;outline:none}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-left:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow:hidden;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{flex-shrink:0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:transparent}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer{padding-bottom:8px;padding-left:16px;padding-top:8px}.edit-site-sidebar-navigation-screen-global-styles__revisions{border-radius:2px}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover){color:#e0e0e0}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover) .edit-site-sidebar-navigation-screen-global-styles__revisions__label{color:#949494}.edit-site-sidebar-navigation-screen-library__group{margin-bottom:24px}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.sidebar-navigation__rename-modal-form{padding-top:1px}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{fill:#f0b849;height:16px;margin-right:8px;width:16px}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 16px 0 4px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0}@media (min-width:480px){.edit-site-site-hub .edit-site-site-hub__site-view-link{opacity:0;transition:opacity .2s ease-in-out}}.edit-site-site-hub .edit-site-site-hub__site-view-link:focus{box-shadow:none;opacity:1;outline:none}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub:hover .edit-site-site-hub__site-view-link{opacity:1}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1;margin-left:4px}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-left:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu{display:none}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-site-icon__image{background:#333;border-radius:4px;height:auto;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tab-panel .components-tab-panel__tabs{background:#fff;color:#1e1e1e}.edit-site-style-book__tab-panel .components-tab-panel__tab-content{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:hover,.is-resizing .edit-site-resizable-frame__handle{background-color:var(--wp-admin-theme-color)}.edit-site-resizable-frame__handle .edit-site-resizable-frame__handle-label{background:var(--wp-admin-theme-color);border-radius:2px;color:#fff;margin-right:8px;padding:4px 8px}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}html #wpadminbar{display:none}html #wpbody{padding-top:0}html.wp-toolbar{background:#fff;padding-top:0}body.appearance_page_gutenberg-template-parts,body.site-editor-php{background:#fff}body.appearance_page_gutenberg-template-parts #wpcontent,body.site-editor-php #wpcontent{padding-left:0}body.appearance_page_gutenberg-template-parts #wpbody-content,body.site-editor-php #wpbody-content{padding-bottom:0}body.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.appearance_page_gutenberg-template-parts #wpfooter,body.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.site-editor-php #wpfooter{display:none}body.appearance_page_gutenberg-template-parts .a11y-speak-region,body.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input{background:#fff;border:1px solid #ddd}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{overflow:scroll}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:initial}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 transparent;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;left:50%;position:absolute;transform:translateX(-50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-block-editor__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#1e1e1e;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas{height:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8)}.edit-site-visual-editor.is-view-mode .block-editor-block-contextual-toolbar{display:none}.edit-site-visual-editor__back-button{color:#fff;left:8px;position:absolute;top:8px}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;right:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:transparent;border-radius:0;left:50%;right:0;transform:translateX(-1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:4px;position:absolute;right:0;top:24px;width:4px}.resizable-editor__drag-handle.is-left{left:-16px}.resizable-editor__drag-handle.is-right{right:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-spinner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-site-code-editor__toolbar .components-button svg{order:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:rgba(30,30,30,.62)}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border:1px solid #e0e0e0;border-radius:2px;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}[class][class].edit-site-global-styles-sidebar__revisions-count-badge{align-items:center;background:#2f2f2f;border-radius:2px;color:#fff;display:inline-flex;justify-content:center;min-height:24px;min-width:24px}.edit-site-global-styles-screen-revisions{margin:16px}.edit-site-global-styles-screen-revisions__revisions-list{list-style:none;margin:0}.edit-site-global-styles-screen-revisions__revisions-list li{border-left:1px solid #ddd;margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{padding:8px 0 8px 12px;position:relative}.edit-site-global-styles-screen-revisions__revision-item:first-child{padding-top:0}.edit-site-global-styles-screen-revisions__revision-item:last-child{padding-bottom:0}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border-radius:50%;content:"\a";display:inline-block;height:8px;left:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;padding:8px 12px;width:100%}.edit-site-global-styles-screen-revisions__revision-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-button:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.is-selected .edit-site-global-styles-screen-revisions__revision-button{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));opacity:1}.is-selected .edit-site-global-styles-screen-revisions__meta{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__button{justify-content:center;width:100%}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__meta{align-items:center;color:#757575;display:flex;justify-content:space-between;text-align:left;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-left:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 8px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;padding-left:8px}@media (min-width:600px){.edit-site-header-edit-mode__toolbar{padding-left:24px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-right:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;gap:4px;padding-right:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{gap:8px;padding-right:10px}}.edit-site-header-edit-mode__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header-edit-mode__actions .interface-pinned-items{display:inline-flex}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon.is-pressed,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:focus:not(:disabled),.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:before,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-icon{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-text.has-icon{padding:0 8px;width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:initial}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:initial;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>*+*{margin-left:8px}.edit-site-document-actions{background:#f0f0f0;border-radius:4px;display:grid;grid-template-columns:1fr 2fr 1fr;height:36px;min-width:0;overflow:hidden;width:min(100%,450px)}.edit-site-document-actions:hover{background:#e0e0e0;color:currentColor}.edit-site-document-actions__command{display:grid;grid-column:1/-1;grid-row:1;grid-template-columns:1fr 2fr 1fr}.edit-site-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;grid-column:2/3;overflow:hidden}.edit-site-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-document-actions.is-page .edit-site-document-actions__title,.edit-site-document-actions.is-page .edit-site-document-actions__title h1{color:#2f2f2f}.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions__back,.edit-site-document-actions__shortcut{color:#2f2f2f}.edit-site-document-actions:hover .edit-site-document-actions__back,.edit-site-document-actions:hover .edit-site-document-actions__shortcut{color:#1e1e1e}.edit-site-document-actions__shortcut{text-align:right}.edit-site-document-actions__back{flex-shrink:0;grid-column:1/2;grid-row:1;min-width:36px;z-index:1}.edit-site-document-actions.is-animated .edit-site-document-actions__back{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__back{animation-delay:0s;animation-duration:1ms}}@keyframes edit-site-document-actions__slide-in-right{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}@keyframes edit-site-document-actions__slide-in-left{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-right:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;left:0;margin:0;padding:0;position:absolute;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8);flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-right:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:left}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-left:360px}.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-right:8px}.edit-site-list-added-by__icon{align-items:center;background:#2f2f2f;border-radius:100%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__avatar{background:#2f2f2f;border-radius:100%;flex-shrink:0;height:32px;overflow:hidden;width:32px}.edit-site-list-added-by__avatar img{height:32px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:32px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;flex-grow:1;margin:60px 0 0;overflow:auto}@media (min-width:782px){.edit-site-page{border-radius:8px;margin:24px 24px 24px 0}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;height:60px;padding:0 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{overflow-x:auto;padding:32px}.edit-site-library{background:rgba(0,0,0,.05);margin:60px 0 0}.edit-site-library .components-text{color:#949494}.edit-site-library .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-library{margin:0}}.edit-site-library__grid{column-gap:24px;margin-bottom:32px;padding-top:2px}@media (min-width:960px){.edit-site-library__grid{column-count:2}}.edit-site-library__grid .edit-site-library__pattern{break-inside:avoid-column;display:flex;flex-direction:column;margin-bottom:48px}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview{border-radius:2px;cursor:pointer;overflow:hidden}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview:focus{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__preview.is-inactive{cursor:default}.edit-site-library__grid .edit-site-library__pattern .edit-site-library__button,.edit-site-library__grid .edit-site-library__pattern .edit-site-library__footer{color:#949494}.edit-site-library__grid .edit-site-library__pattern.is-placeholder .edit-site-library__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-library__grid .edit-site-library__pattern.is-placeholder .edit-site-library__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-library__grid .edit-site-library__preview{flex:1;margin-bottom:16px}.edit-site-library__search.edit-site-library__search input[type=search]{background:#2f2f2f;color:#e0e0e0}.edit-site-library__search.edit-site-library__search input[type=search]:focus{background:#2f2f2f}.edit-site-library__search svg{fill:#949494}.edit-site-library__pattern-title{color:#949494}.edit-site-library__pattern-title svg{fill:#fff;background:var(--wp-block-synced-color);border-radius:4px}.edit-site-library__no-results{color:#949494}.edit-site-table-wrapper{width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:left}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-left:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-right:0;text-align:right}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-left:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-left:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar-fixed-bottom-slot{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:initial;display:flex;padding:16px;position:sticky}.edit-site-page-panels__edit-template-preview{border:1px solid #e0e0e0;height:200px;max-height:200px;overflow:hidden}.edit-site-page-panels__edit-template-button{justify-content:center}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block;margin-left:26px}.edit-site-summary-field .components-dropdown{flex-grow:1}.edit-site-summary-field .edit-site-summary-field__trigger{width:100%}.edit-site-summary-field .edit-site-summary-field__label{width:30%}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:16px}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 0 0 auto;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar-edit-mode__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-site-sidebar-edit-mode__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{margin:0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-right:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}.edit-site-template-revisions{margin-left:-4px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{left:160px}}.folded .edit-site .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{left:0!important}.edit-site-create-pattern-modal__input input{height:40px}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:left;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-editor__list-view-panel{width:350px}}.edit-site-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:4px}.edit-site-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-site-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:initial}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-site-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-site-editor__list-view-panel-content:focus,.edit-site-editor__list-view-panel-content:focus-within,.edit-site-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-site-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-layout .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 360px)}}.edit-site-layout__hub{height:60px;left:0;position:fixed;top:0;width:calc(100vw - 48px);z-index:3}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub{padding-right:0;width:60px}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-right:16px;width:100vw}@media (min-width:782px){.edit-site-layout.is-full-canvas .edit-site-layout__hub{padding-right:0;width:auto}}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar{width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar>div{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas:has(.edit-site-layout__resizable-frame-oversized){justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:24px;top:24px;width:calc(100% - 24px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid transparent;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}.edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container{z-index:5}.edit-site-layout.has-fixed-toolbar .edit-site-site-hub{z-index:4}}@media (min-width:782px){.edit-site-layout.has-fixed-toolbar .edit-site-layout__header:focus-within{z-index:3}}.is-edit-mode.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header,.is-edit-mode.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.is-edit-mode.is-distraction-free .edit-site-site-hub{z-index:3}.is-edit-mode.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:24px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__content .components-navigator-screen{display:flex;flex-direction:column;height:100%;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track{background-color:initial}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:initial;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__content .components-navigator-screen:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__content .components-navigator-screen:focus,.edit-site-sidebar__content .components-navigator-screen:focus-within,.edit-site-sidebar__content .components-navigator-screen:hover{scrollbar-color:#757575 transparent}@media (hover:none){.edit-site-sidebar__content .components-navigator-screen{scrollbar-color:#757575 transparent}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 24px;padding:24px 0}.edit-site-sidebar__content>div{padding:0 12px}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#757575}.edit-site-sidebar-navigation-item.components-item:is(a){align-items:center;display:flex;text-decoration:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus{box-shadow:none;outline:none}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-left:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow:hidden;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{flex-shrink:0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:transparent}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer{padding-bottom:8px;padding-left:16px;padding-top:8px}.edit-site-sidebar-navigation-screen-global-styles__revisions{border-radius:2px}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover){color:#e0e0e0}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover) .edit-site-sidebar-navigation-screen-global-styles__revisions__label{color:#949494}.edit-site-sidebar-navigation-screen-library__group{margin-bottom:24px}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{fill:#f0b849;height:16px;margin-right:8px;width:16px}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 16px 0 4px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0}@media (min-width:480px){.edit-site-site-hub .edit-site-site-hub__site-view-link{opacity:0;transition:opacity .2s ease-in-out}}.edit-site-site-hub .edit-site-site-hub__site-view-link:focus{box-shadow:none;opacity:1;outline:none}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub:hover .edit-site-site-hub__site-view-link{opacity:1}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1;margin-left:4px}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-left:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu{display:none}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-site-icon__image{background:#333;border-radius:4px;height:auto;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tab-panel .components-tab-panel__tabs{background:#fff;color:#1e1e1e}.edit-site-style-book__tab-panel .components-tab-panel__tab-content{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:hover,.is-resizing .edit-site-resizable-frame__handle{background-color:var(--wp-admin-theme-color)}.edit-site-resizable-frame__handle .edit-site-resizable-frame__handle-label{background:var(--wp-admin-theme-color);border-radius:2px;color:#fff;margin-right:8px;padding:4px 8px}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}html #wpadminbar{display:none}html #wpbody{padding-top:0}html.wp-toolbar{background:#fff;padding-top:0}body.appearance_page_gutenberg-template-parts,body.site-editor-php{background:#fff}body.appearance_page_gutenberg-template-parts #wpcontent,body.site-editor-php #wpcontent{padding-left:0}body.appearance_page_gutenberg-template-parts #wpbody-content,body.site-editor-php #wpbody-content{padding-bottom:0}body.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.appearance_page_gutenberg-template-parts #wpfooter,body.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.site-editor-php #wpfooter{display:none}body.appearance_page_gutenberg-template-parts .a11y-speak-region,body.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}} \ No newline at end of file diff --git a/wp-includes/js/dist/components.js b/wp-includes/js/dist/components.js index 048f7d633c..45280d6429 100644 --- a/wp-includes/js/dist/components.js +++ b/wp-includes/js/dist/components.js @@ -20785,7 +20785,7 @@ const Slot = props => (0,external_wp_element_namespaceObject.createElement)(cont /* harmony default export */ var slot = (Slot); -;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js // Unique ID creation requires a high quality random # generator. In the browser we therefore // require the crypto API and do not support built-in fallback to lower quality random number // generators (like Math.random()). @@ -20805,9 +20805,9 @@ function rng() { return getRandomValues(rnds8); } -;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/regex.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js /* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i); -;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/validate.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js function validate(uuid) { @@ -20815,7 +20815,7 @@ function validate(uuid) { } /* harmony default export */ var esm_browser_validate = (validate); -;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js /** * Convert array of 16 byte values to UUID string format of the form: @@ -20846,7 +20846,7 @@ function stringify_stringify(arr) { } /* harmony default export */ var esm_browser_stringify = (stringify_stringify); -;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js diff --git a/wp-includes/js/dist/core-commands.js b/wp-includes/js/dist/core-commands.js index c114f7349d..4a64339da9 100644 --- a/wp-includes/js/dist/core-commands.js +++ b/wp-includes/js/dist/core-commands.js @@ -416,7 +416,7 @@ function useSiteEditorBasicNavigationCommands() { close }) => { const args = { - path: '/wp_template_part' + path: '/library' }; const targetUrl = (0,external_wp_url_namespaceObject.addQueryArgs)('site-editor.php', args); diff --git a/wp-includes/js/dist/core-commands.min.js b/wp-includes/js/dist/core-commands.min.js index 510a3350a6..72ec7739e8 100644 --- a/wp-includes/js/dist/core-commands.min.js +++ b/wp-includes/js/dist/core-commands.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -!function(){"use strict";var e={d:function(t,a){for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:function(){return P}});var a=window.wp.commands,o=window.wp.i18n,n=window.wp.element,s=window.wp.primitives;var r=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var i=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));var c=window.wp.data,l=window.wp.coreData;var p=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));var d=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var m=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var w=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));var h=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"}));var u=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),v=window.wp.router,g=window.wp.url,_=window.wp.privateApis;const{lock:b,unlock:y}=(0,_.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/core-commands"),{useHistory:f}=y(v.privateApis),V={post:p,page:d,wp_template:m,wp_template_part:w},k=e=>function({search:t}){const a=f(),s=!["wp_template","wp_template_part"].includes(e),{records:r,isLoading:i}=(0,c.useSelect)((a=>{const{getEntityRecords:o}=a(l.store),n=s?{search:t||void 0,per_page:10,orderby:t?"relevance":"date",status:["publish","future","draft","pending","private"]}:{per_page:-1};return{records:o("postType",e,n),isLoading:!a(l.store).hasFinishedResolution("getEntityRecords",["postType",e,n])}}),[s,t]);return{commands:(0,n.useMemo)((()=>(null!=r?r:[]).slice(0,10).map((t=>{const n=(0,g.getPath)(window.location.href)?.includes("site-editor.php"),s=n?{canvas:(0,g.getQueryArg)(window.location.href,"canvas")}:{};return{name:e+"-"+t.id,searchLabel:t.title?.rendered+" "+t.id,label:t.title?.rendered?t.title?.rendered:(0,o.__)("(no title)"),icon:V[e],callback:({close:o})=>{const r={postType:e,postId:t.id,...s},i=(0,g.addQueryArgs)("site-editor.php",r);n?a.push(r):document.location=i,o()}}}))),[r,a]),isLoading:i}},z=k("page"),x=k("post"),E=k("wp_template"),M=k("wp_template_part");function L(){const e=f(),t=(0,g.getPath)(window.location.href)?.includes("site-editor.php");return{commands:(0,n.useMemo)((()=>{const a=[];return a.push({name:"core/edit-site/open-navigation",label:(0,o.__)("Open navigation"),icon:h,callback:({close:a})=>{const o={path:"/navigation"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a.push({name:"core/edit-site/open-pages",label:(0,o.__)("Open pages"),icon:d,callback:({close:a})=>{const o={path:"/page"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a.push({name:"core/edit-site/open-style-variations",label:(0,o.__)("Open style variations"),icon:u,callback:({close:a})=>{const o={path:"/wp_global_styles"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a.push({name:"core/edit-site/open-templates",label:(0,o.__)("Open templates"),icon:m,callback:({close:a})=>{const o={path:"/wp_template"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a.push({name:"core/edit-site/open-template-parts",label:(0,o.__)("Open library"),icon:w,callback:({close:a})=>{const o={path:"/wp_template_part"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a}),[e,t]),isLoading:!1}}const P={};b(P,{useCommands:function(){(0,a.useCommand)({name:"core/add-new-post",label:(0,o.__)("Add new post"),icon:r,callback:()=>{document.location.href="post-new.php"}}),(0,a.useCommand)({name:"core/add-new-page",label:(0,o.__)("Add new page"),icon:r,callback:()=>{document.location.href="post-new.php?post_type=page"}}),(0,a.useCommand)({name:"core/manage-reusable-blocks",label:(0,o.__)("Manage all custom patterns"),callback:()=>{document.location.href="edit.php?post_type=wp_block"},icon:i}),(0,a.useCommandLoader)({name:"core/edit-site/navigate-pages",hook:z}),(0,a.useCommandLoader)({name:"core/edit-site/navigate-posts",hook:x}),(0,a.useCommandLoader)({name:"core/edit-site/navigate-templates",hook:E}),(0,a.useCommandLoader)({name:"core/edit-site/navigate-template-parts",hook:M}),(0,a.useCommandLoader)({name:"core/edit-site/basic-navigation",hook:L,context:"site-editor"})}}),(window.wp=window.wp||{}).coreCommands=t}(); \ No newline at end of file +!function(){"use strict";var e={d:function(t,a){for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{privateApis:function(){return P}});var a=window.wp.commands,o=window.wp.i18n,n=window.wp.element,s=window.wp.primitives;var r=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var i=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));var c=window.wp.data,l=window.wp.coreData;var p=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));var d=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var m=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var w=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));var h=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"}));var u=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),v=window.wp.router,g=window.wp.url,b=window.wp.privateApis;const{lock:_,unlock:y}=(0,b.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/core-commands"),{useHistory:f}=y(v.privateApis),V={post:p,page:d,wp_template:m,wp_template_part:w},k=e=>function({search:t}){const a=f(),s=!["wp_template","wp_template_part"].includes(e),{records:r,isLoading:i}=(0,c.useSelect)((a=>{const{getEntityRecords:o}=a(l.store),n=s?{search:t||void 0,per_page:10,orderby:t?"relevance":"date",status:["publish","future","draft","pending","private"]}:{per_page:-1};return{records:o("postType",e,n),isLoading:!a(l.store).hasFinishedResolution("getEntityRecords",["postType",e,n])}}),[s,t]);return{commands:(0,n.useMemo)((()=>(null!=r?r:[]).slice(0,10).map((t=>{const n=(0,g.getPath)(window.location.href)?.includes("site-editor.php"),s=n?{canvas:(0,g.getQueryArg)(window.location.href,"canvas")}:{};return{name:e+"-"+t.id,searchLabel:t.title?.rendered+" "+t.id,label:t.title?.rendered?t.title?.rendered:(0,o.__)("(no title)"),icon:V[e],callback:({close:o})=>{const r={postType:e,postId:t.id,...s},i=(0,g.addQueryArgs)("site-editor.php",r);n?a.push(r):document.location=i,o()}}}))),[r,a]),isLoading:i}},z=k("page"),x=k("post"),E=k("wp_template"),M=k("wp_template_part");function L(){const e=f(),t=(0,g.getPath)(window.location.href)?.includes("site-editor.php");return{commands:(0,n.useMemo)((()=>{const a=[];return a.push({name:"core/edit-site/open-navigation",label:(0,o.__)("Open navigation"),icon:h,callback:({close:a})=>{const o={path:"/navigation"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a.push({name:"core/edit-site/open-pages",label:(0,o.__)("Open pages"),icon:d,callback:({close:a})=>{const o={path:"/page"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a.push({name:"core/edit-site/open-style-variations",label:(0,o.__)("Open style variations"),icon:u,callback:({close:a})=>{const o={path:"/wp_global_styles"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a.push({name:"core/edit-site/open-templates",label:(0,o.__)("Open templates"),icon:m,callback:({close:a})=>{const o={path:"/wp_template"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a.push({name:"core/edit-site/open-template-parts",label:(0,o.__)("Open library"),icon:w,callback:({close:a})=>{const o={path:"/library"},n=(0,g.addQueryArgs)("site-editor.php",o);t?e.push(o):document.location=n,a()}}),a}),[e,t]),isLoading:!1}}const P={};_(P,{useCommands:function(){(0,a.useCommand)({name:"core/add-new-post",label:(0,o.__)("Add new post"),icon:r,callback:()=>{document.location.href="post-new.php"}}),(0,a.useCommand)({name:"core/add-new-page",label:(0,o.__)("Add new page"),icon:r,callback:()=>{document.location.href="post-new.php?post_type=page"}}),(0,a.useCommand)({name:"core/manage-reusable-blocks",label:(0,o.__)("Manage all custom patterns"),callback:()=>{document.location.href="edit.php?post_type=wp_block"},icon:i}),(0,a.useCommandLoader)({name:"core/edit-site/navigate-pages",hook:z}),(0,a.useCommandLoader)({name:"core/edit-site/navigate-posts",hook:x}),(0,a.useCommandLoader)({name:"core/edit-site/navigate-templates",hook:E}),(0,a.useCommandLoader)({name:"core/edit-site/navigate-template-parts",hook:M}),(0,a.useCommandLoader)({name:"core/edit-site/basic-navigation",hook:L,context:"site-editor"})}}),(window.wp=window.wp||{}).coreCommands=t}(); \ No newline at end of file diff --git a/wp-includes/js/dist/core-data.js b/wp-includes/js/dist/core-data.js index a41858e8f3..196b97ae65 100644 --- a/wp-includes/js/dist/core-data.js +++ b/wp-includes/js/dist/core-data.js @@ -1225,7 +1225,7 @@ var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"]; var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject); ;// CONCATENATED MODULE: external ["wp","i18n"] var external_wp_i18n_namespaceObject = window["wp"]["i18n"]; -;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/rng.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js // Unique ID creation requires a high quality random # generator. In the browser we therefore // require the crypto API and do not support built-in fallback to lower quality random number // generators (like Math.random()). @@ -1245,9 +1245,9 @@ function rng() { return getRandomValues(rnds8); } -;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/regex.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/regex.js /* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i); -;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/validate.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/validate.js function validate(uuid) { @@ -1255,7 +1255,7 @@ function validate(uuid) { } /* harmony default export */ var esm_browser_validate = (validate); -;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/stringify.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js /** * Convert array of 16 byte values to UUID string format of the form: @@ -1286,7 +1286,7 @@ function stringify(arr) { } /* harmony default export */ var esm_browser_stringify = (stringify); -;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/v4.js +;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js diff --git a/wp-includes/js/dist/customize-widgets.js b/wp-includes/js/dist/customize-widgets.js index da99c64e32..9c098e5561 100644 --- a/wp-includes/js/dist/customize-widgets.js +++ b/wp-includes/js/dist/customize-widgets.js @@ -246,8 +246,10 @@ __webpack_require__.d(actions_namespaceObject, { var store_actions_namespaceObject = {}; __webpack_require__.r(store_actions_namespaceObject); __webpack_require__.d(store_actions_namespaceObject, { + "closeModal": function() { return closeModal; }, "disableComplementaryArea": function() { return disableComplementaryArea; }, "enableComplementaryArea": function() { return enableComplementaryArea; }, + "openModal": function() { return openModal; }, "pinItem": function() { return pinItem; }, "setDefaultComplementaryArea": function() { return setDefaultComplementaryArea; }, "setFeatureDefaults": function() { return setFeatureDefaults; }, @@ -263,7 +265,8 @@ __webpack_require__.d(store_selectors_namespaceObject, { "getActiveComplementaryArea": function() { return getActiveComplementaryArea; }, "isComplementaryAreaLoading": function() { return isComplementaryAreaLoading; }, "isFeatureActive": function() { return isFeatureActive; }, - "isItemPinned": function() { return isItemPinned; } + "isItemPinned": function() { return isItemPinned; }, + "isModalActive": function() { return isModalActive; } }); ;// CONCATENATED MODULE: external ["wp","element"] @@ -878,6 +881,31 @@ function setFeatureDefaults(scope, defaults) { registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults); }; } +/** + * Returns an action object used in signalling that the user opened a modal. + * + * @param {string} name A string that uniquely identifies the modal. + * + * @return {Object} Action object. + */ + +function openModal(name) { + return { + type: 'OPEN_MODAL', + name + }; +} +/** + * Returns an action object signalling that the user closed a modal. + * + * @return {Object} Action object. + */ + +function closeModal() { + return { + type: 'CLOSE_MODAL' + }; +} ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js /** @@ -950,6 +978,18 @@ const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelect }); return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName); }); +/** + * Returns true if a modal is active, or false otherwise. + * + * @param {Object} state Global application state. + * @param {string} modalName A string that uniquely identifies the modal. + * + * @return {boolean} Whether the modal is active. + */ + +function isModalActive(state, modalName) { + return state.activeModal === modalName; +} ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js /** @@ -988,8 +1028,29 @@ function complementaryAreas(state = {}, action) { return state; } +/** + * Reducer for storing the name of the open modal, or null if no modal is open. + * + * @param {Object} state Previous state. + * @param {Object} action Action object containing the `name` of the modal + * + * @return {Object} Updated state + */ + +function activeModal(state = null, action) { + switch (action.type) { + case 'OPEN_MODAL': + return action.name; + + case 'CLOSE_MODAL': + return null; + } + + return state; +} /* harmony default export */ var store_reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ - complementaryAreas + complementaryAreas, + activeModal })); ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js diff --git a/wp-includes/js/dist/customize-widgets.min.js b/wp-includes/js/dist/customize-widgets.min.js index 30003b74aa..1bab013b99 100644 --- a/wp-includes/js/dist/customize-widgets.min.js +++ b/wp-includes/js/dist/customize-widgets.min.js @@ -4,4 +4,4 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;te(g.store).getSelectedBlockClientId()),[]),i=(0,o.useMemo)((()=>document.getElementById(`block-${n}`)),[n]);return(0,o.createElement)(m.MenuItem,{onClick:()=>{e.open({returnFocusWhenClose:i}),t()},...r},(0,p.__)("Show more settings"))},k=r(4403),C=r.n(k),S=window.wp.keycodes,x=window.wp.primitives;var I=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var z=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var A=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var B=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));function W(e){return!!e.blockInserterPanel}function M(e){const{rootClientId:t,insertionIndex:r}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:r}}function T(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}const O={reducer:(0,d.combineReducers)({blockInserterPanel:function(e=!1,t){return"SET_IS_INSERTER_OPENED"===t.type?t.value:e}}),selectors:e,actions:t},N=(0,d.createReduxStore)("core/customize-widgets",O);(0,d.register)(N);var P=function e({setIsOpened:t}){const r=(0,f.useInstanceId)(e,"customize-widget-layout__inserter-panel-title"),n=(0,d.useSelect)((e=>e(N).__experimentalGetInsertionPoint()),[]);return(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel","aria-labelledby":r},(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel-header"},(0,o.createElement)("h2",{id:r,className:"customize-widgets-layout__inserter-panel-header-title"},(0,p.__)("Add a block")),(0,o.createElement)(m.Button,{className:"customize-widgets-layout__inserter-panel-header-close-button",icon:B,onClick:()=>t(!1),"aria-label":(0,p.__)("Close inserter")})),(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel-content"},(0,o.createElement)(g.__experimentalLibrary,{rootClientId:n.rootClientId,__experimentalInsertionIndex:n.insertionIndex,showInserterHelpPanel:!0,onSelect:()=>t(!1)})))};var F=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));var L=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function R({as:e=m.DropdownMenu,className:t,label:r=(0,p.__)("Options"),popoverProps:n,toggleProps:i,children:s}){return(0,o.createElement)(e,{className:C()("interface-more-menu-dropdown",t),icon:L,label:r,popoverProps:{placement:"bottom-end",...n,className:C()("interface-more-menu-dropdown__content",n?.className)},toggleProps:{tooltipPosition:"bottom",...i}},(e=>s(e)))}var D=window.wp.deprecated,H=r.n(D);const V=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),G=(e,t)=>({registry:r,dispatch:n})=>{if(!t)return;r.select(u.store).get(e,"isComplementaryAreaVisible")||r.dispatch(u.store).set(e,"isComplementaryAreaVisible",!0),n({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},U=e=>({registry:t})=>{t.select(u.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(u.store).set(e,"isComplementaryAreaVisible",!1)},$=(e,t)=>({registry:r})=>{if(!t)return;const n=r.select(u.store).get(e,"pinnedItems");!0!==n?.[t]&&r.dispatch(u.store).set(e,"pinnedItems",{...n,[t]:!0})},j=(e,t)=>({registry:r})=>{if(!t)return;const n=r.select(u.store).get(e,"pinnedItems");r.dispatch(u.store).set(e,"pinnedItems",{...n,[t]:!1})};function Y(e,t){return function({registry:r}){H()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(u.store).toggle(e,t)}}function q(e,t,r){return function({registry:n}){H()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),n.dispatch(u.store).set(e,t,!!r)}}function K(e,t){return function({registry:r}){H()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(u.store).setDefaults(e,t)}}const Z=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(u.store).get(r,"isComplementaryAreaVisible");if(void 0!==n)return!1===n?null:t?.complementaryAreas?.[r]})),J=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(u.store).get(r,"isComplementaryAreaVisible"),i=t?.complementaryAreas?.[r];return n&&void 0===i})),Q=(0,d.createRegistrySelector)((e=>(t,r,n)=>{var i;return null===(i=e(u.store).get(r,"pinnedItems")?.[n])||void 0===i||i})),X=(0,d.createRegistrySelector)((e=>(t,r,n)=>(H()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(u.store).get(r,n))));var ee=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:r,area:n}=t;return e[r]?e:{...e,[r]:n}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:r,area:n}=t;return{...e,[r]:n}}}return e}});const te=(0,d.createReduxStore)("core/interface",{reducer:ee,actions:i,selectors:s});(0,d.register)(te);const re=[{keyCombination:{modifier:"primary",character:"b"},description:(0,p.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,p.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,p.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,p.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,p.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,p.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,p.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,p.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,p.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,p.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function ne({keyCombination:e,forceAriaLabel:t}){const r=e.modifier?S.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?S.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,o.createElement)("kbd",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||n},(Array.isArray(r)?r:[r]).map(((e,t)=>"+"===e?(0,o.createElement)(o.Fragment,{key:t},e):(0,o.createElement)("kbd",{key:t,className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key"},e))))}var ie=function({description:e,keyCombination:t,aliases:r=[],ariaLabel:n}){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-description"},e),(0,o.createElement)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-term"},(0,o.createElement)(ne,{keyCombination:t,forceAriaLabel:n}),r.map(((e,t)=>(0,o.createElement)(ne,{keyCombination:e,forceAriaLabel:n,key:t})))))};var se=function({name:e}){const{keyCombination:t,description:r,aliases:n}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:r,getShortcutDescription:n,getShortcutAliases:i}=t(h.store);return{keyCombination:r(e),aliases:i(e),description:n(e)}}),[e]);return t?(0,o.createElement)(ie,{keyCombination:t,description:r,aliases:n}):null};const oe=({shortcuts:e})=>(0,o.createElement)("ul",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,o.createElement)("li",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,o.createElement)(se,{name:e}):(0,o.createElement)(ie,{...e}))))),ae=({title:e,shortcuts:t,className:r})=>(0,o.createElement)("section",{className:C()("customize-widgets-keyboard-shortcut-help-modal__section",r)},!!e&&(0,o.createElement)("h2",{className:"customize-widgets-keyboard-shortcut-help-modal__section-title"},e),(0,o.createElement)(oe,{shortcuts:t})),ce=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{const n=(0,d.useSelect)((e=>e(h.store).getCategoryShortcuts(t)),[t]);return(0,o.createElement)(ae,{title:e,shortcuts:n.concat(r)})};function le({isModalActive:e,toggleModal:t}){const{registerShortcut:r}=(0,d.useDispatch)(h.store);return r({name:"core/customize-widgets/keyboard-shortcuts",category:"main",description:(0,p.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),(0,h.useShortcut)("core/customize-widgets/keyboard-shortcuts",t),e?(0,o.createElement)(m.Modal,{className:"customize-widgets-keyboard-shortcut-help-modal",title:(0,p.__)("Keyboard shortcuts"),onRequestClose:t},(0,o.createElement)(ae,{className:"customize-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/customize-widgets/keyboard-shortcuts"]}),(0,o.createElement)(ce,{title:(0,p.__)("Global shortcuts"),categoryName:"global"}),(0,o.createElement)(ce,{title:(0,p.__)("Selection shortcuts"),categoryName:"selection"}),(0,o.createElement)(ce,{title:(0,p.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,p.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,p.__)("Forward-slash")}]}),(0,o.createElement)(ae,{title:(0,p.__)("Text formatting"),shortcuts:re})):null}function de(){const[e,t]=(0,o.useState)(!1),r=()=>t(!e);return(0,h.useShortcut)("core/customize-widgets/keyboard-shortcuts",r),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(R,{as:m.ToolbarDropdownMenu},(()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(m.MenuGroup,{label:(0,p._x)("View","noun")},(0,o.createElement)(u.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"fixedToolbar",label:(0,p.__)("Top toolbar"),info:(0,p.__)("Access all block and document tools in a single place"),messageActivated:(0,p.__)("Top toolbar activated"),messageDeactivated:(0,p.__)("Top toolbar deactivated")})),(0,o.createElement)(m.MenuGroup,{label:(0,p.__)("Tools")},(0,o.createElement)(m.MenuItem,{onClick:()=>{t(!0)},shortcut:S.displayShortcut.access("h")},(0,p.__)("Keyboard shortcuts")),(0,o.createElement)(u.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"welcomeGuide",label:(0,p.__)("Welcome Guide")}),(0,o.createElement)(m.MenuItem,{role:"menuitem",icon:F,href:(0,p.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,p.__)("Help"),(0,o.createElement)(m.VisuallyHidden,{as:"span"},(0,p.__)("(opens in a new tab)")))),(0,o.createElement)(m.MenuGroup,{label:(0,p.__)("Preferences")},(0,o.createElement)(u.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"keepCaretInsideBlock",label:(0,p.__)("Contain text cursor inside block"),info:(0,p.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,p.__)("Contain text cursor inside block activated"),messageDeactivated:(0,p.__)("Contain text cursor inside block deactivated")}))))),(0,o.createElement)(le,{isModalActive:e,toggleModal:r}))}var ue=function({sidebar:e,inserter:t,isInserterOpened:r,setIsInserterOpened:n,isFixedToolbarActive:i}){const[[s,a],c]=(0,o.useState)([e.hasUndo(),e.hasRedo()]),l=(0,S.isAppleOS)()?S.displayShortcut.primaryShift("z"):S.displayShortcut.primary("y");return(0,o.useEffect)((()=>e.subscribeHistory((()=>{c([e.hasUndo(),e.hasRedo()])}))),[e]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:C()("customize-widgets-header",{"is-fixed-toolbar-active":i})},(0,o.createElement)(g.NavigableToolbar,{className:"customize-widgets-header-toolbar","aria-label":(0,p.__)("Document tools")},(0,o.createElement)(m.ToolbarButton,{icon:(0,p.isRTL)()?z:I,label:(0,p.__)("Undo"),shortcut:S.displayShortcut.primary("z"),"aria-disabled":!s,onClick:e.undo,className:"customize-widgets-editor-history-button undo-button"}),(0,o.createElement)(m.ToolbarButton,{icon:(0,p.isRTL)()?I:z,label:(0,p.__)("Redo"),shortcut:l,"aria-disabled":!a,onClick:e.redo,className:"customize-widgets-editor-history-button redo-button"}),(0,o.createElement)(m.ToolbarButton,{className:"customize-widgets-header-toolbar__inserter-toggle",isPressed:r,variant:"primary",icon:A,label:(0,p._x)("Add block","Generic label for block inserter button"),onClick:()=>{n((e=>!e))}}),(0,o.createElement)(de,null))),(0,o.createPortal)((0,o.createElement)(P,{setIsOpened:n}),t.contentContainer[0]))};var me=r(5619),he=r.n(me),pe=window.wp.isShallowEqual,ge=r.n(pe);function fe(e){const t=e.match(/^widget_(.+)(?:\[(\d+)\])$/);if(t){return`${t[1]}-${parseInt(t[2],10)}`}return e}function be(e,t=null){let r;if("core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance))if(e.attributes.id)r={id:e.attributes.id};else{const{encoded:n,hash:i,raw:s,...o}=e.attributes.instance;r={idBase:e.attributes.idBase,instance:{...t?.instance,is_widget_customizer_js_value:!0,encoded_serialized_instance:n,instance_hash_key:i,raw_instance:s,...o}}}else{r={idBase:"block",widgetClass:"WP_Widget_Block",instance:{raw_instance:{content:(0,l.serialize)(e)}}}}const{form:n,rendered:i,...s}=t||{};return{...s,...r}}function we({id:e,idBase:t,number:r,instance:n}){let i;const{encoded_serialized_instance:s,instance_hash_key:o,raw_instance:a,...d}=n;if("block"===t){var u;const e=(0,l.parse)(null!==(u=a.content)&&void 0!==u?u:"",{__unstableSkipAutop:!0});i=e.length?e[0]:(0,l.createBlock)("core/paragraph",{})}else i=r?(0,l.createBlock)("core/legacy-widget",{idBase:t,instance:{encoded:s,hash:o,raw:a,...d}}):(0,l.createBlock)("core/legacy-widget",{id:e});return(0,c.addWidgetIdToBlock)(i,e)}function _e(e){const[t,r]=(0,o.useState)((()=>e.getWidgets().map((e=>we(e)))));(0,o.useEffect)((()=>e.subscribe(((e,t)=>{r((r=>{const n=new Map(e.map((e=>[e.id,e]))),i=new Map(r.map((e=>[(0,c.getWidgetIdFromBlock)(e),e]))),s=t.map((e=>{const t=n.get(e.id);return t&&t===e?i.get(e.id):we(e)}));return ge()(r,s)?r:s}))}))),[e]);const n=(0,o.useCallback)((t=>{r((r=>{if(ge()(r,t))return r;const n=new Map(r.map((e=>[(0,c.getWidgetIdFromBlock)(e),e]))),i=t.map((t=>{const r=(0,c.getWidgetIdFromBlock)(t);if(r&&n.has(r)){const i=n.get(r),s=e.getWidget(r);return he()(t,i)&&s?s:be(t,s)}return be(t)}));if(ge()(e.getWidgets(),i))return r;const s=e.setWidgets(i);return t.reduce(((e,r,n)=>{const i=s[n];return null!==i&&(e===t&&(e=t.slice()),e[n]=(0,c.addWidgetIdToBlock)(r,i)),e}),t)}))}),[e]);return[t,n,n]}const ye=(0,o.createContext)();function ve({api:e,sidebarControls:t,children:r}){const[n,i]=(0,o.useState)({current:null}),s=(0,o.useCallback)((e=>{for(const r of t){if(r.setting.get().includes(e)){r.sectionInstance.expand({completeCallback(){i({current:e})}});break}}}),[t]);(0,o.useEffect)((()=>{function t(e){const t=fe(e);s(t)}let r=!1;function n(){e.previewer.preview.bind("focus-control-for-setting",t),r=!0}return e.previewer.bind("ready",n),()=>{e.previewer.unbind("ready",n),r&&e.previewer.preview.unbind("focus-control-for-setting",t)}}),[e,s]);const a=(0,o.useMemo)((()=>[n,s]),[n,s]);return(0,o.createElement)(ye.Provider,{value:a},r)}const Ee=()=>(0,o.useContext)(ye);var ke=window.wp.privateApis;const{lock:Ce,unlock:Se}=(0,ke.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/customize-widgets"),{ExperimentalBlockEditorProvider:xe}=Se(g.privateApis);function Ie({sidebar:e,settings:t,children:r}){const[n,i,s]=_e(e);return function(e){const{selectBlock:t}=(0,d.useDispatch)(g.store),[r]=Ee(),n=(0,o.useRef)(e);(0,o.useEffect)((()=>{n.current=e}),[e]),(0,o.useEffect)((()=>{if(r.current){const e=n.current.find((e=>(0,c.getWidgetIdFromBlock)(e)===r.current));e&&(t(e.clientId),document.querySelector(`[data-block="${e.clientId}"]`)?.focus())}}),[r,t])}(n),(0,o.createElement)(xe,{value:n,onInput:i,onChange:s,settings:t,useSubRegistry:!1},r)}function ze({sidebar:e}){const{toggle:t}=(0,d.useDispatch)(u.store),r=e.getWidgets().every((e=>e.id.startsWith("block-")));return(0,o.createElement)("div",{className:"customize-widgets-welcome-guide"},(0,o.createElement)("div",{className:"customize-widgets-welcome-guide__image__wrapper"},(0,o.createElement)("picture",null,(0,o.createElement)("source",{srcSet:"https://s.w.org/images/block-editor/welcome-editor.svg",media:"(prefers-reduced-motion: reduce)"}),(0,o.createElement)("img",{className:"customize-widgets-welcome-guide__image",src:"https://s.w.org/images/block-editor/welcome-editor.gif",width:"312",height:"240",alt:""}))),(0,o.createElement)("h1",{className:"customize-widgets-welcome-guide__heading"},(0,p.__)("Welcome to block Widgets")),(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__text"},r?(0,p.__)("Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site."):(0,p.__)("You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.")),(0,o.createElement)(m.Button,{className:"customize-widgets-welcome-guide__button",variant:"primary",onClick:()=>t("core/customize-widgets","welcomeGuide")},(0,p.__)("Got it")),(0,o.createElement)("hr",{className:"customize-widgets-welcome-guide__separator"}),!r&&(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__more-info"},(0,p.__)("Want to stick with the old widgets?"),(0,o.createElement)("br",null),(0,o.createElement)(m.ExternalLink,{href:(0,p.__)("https://wordpress.org/plugins/classic-widgets/")},(0,p.__)("Get the Classic Widgets plugin."))),(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__more-info"},(0,p.__)("New to the block editor?"),(0,o.createElement)("br",null),(0,o.createElement)(m.ExternalLink,{href:(0,p.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,p.__)("Here's a detailed guide."))))}function Ae({undo:e,redo:t,save:r}){const{replaceBlocks:n}=(0,d.useDispatch)(g.store),{getBlockName:i,getSelectedBlockClientId:s,getBlockAttributes:o}=(0,d.useSelect)(g.store),a=(e,t)=>{e.preventDefault();const r=0===t?"core/paragraph":"core/heading",a=s();if(null===a)return;const c=i(a);if("core/paragraph"!==c&&"core/heading"!==c)return;const d=o(a),u="core/paragraph"===c?"align":"textAlign",m="core/paragraph"===r?"align":"textAlign";n(a,(0,l.createBlock)(r,{level:t,content:d.content,[m]:d[u]}))};return(0,h.useShortcut)("core/customize-widgets/undo",(t=>{e(),t.preventDefault()})),(0,h.useShortcut)("core/customize-widgets/redo",(e=>{t(),e.preventDefault()})),(0,h.useShortcut)("core/customize-widgets/save",(e=>{e.preventDefault(),r()})),(0,h.useShortcut)("core/customize-widgets/transform-heading-to-paragraph",(e=>a(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,h.useShortcut)(`core/customize-widgets/transform-paragraph-to-heading-${e}`,(t=>a(t,e)))})),null}Ae.Register=function(){const{registerShortcut:e,unregisterShortcut:t}=(0,d.useDispatch)(h.store);return(0,o.useEffect)((()=>(e({name:"core/customize-widgets/undo",category:"global",description:(0,p.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/customize-widgets/redo",category:"global",description:(0,p.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,S.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/customize-widgets/save",category:"global",description:(0,p.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/customize-widgets/transform-heading-to-paragraph",category:"block-library",description:(0,p.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/customize-widgets/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,p.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),()=>{t("core/customize-widgets/undo"),t("core/customize-widgets/redo"),t("core/customize-widgets/save")})),[e]),null};var Be=Ae;function We(e){const t=(0,o.useRef)(),r=(0,d.useSelect)((e=>0===e(g.store).getBlockCount()));return(0,o.useEffect)((()=>{if(r&&t.current){const{ownerDocument:e}=t.current;e.activeElement&&e.activeElement!==e.body||t.current.focus()}}),[r]),(0,o.createElement)(g.ButtonBlockAppender,{...e,ref:t})}function Me({blockEditorSettings:e,sidebar:t,inserter:r,inspector:n}){const[i,s]=function(e){const t=(0,d.useSelect)((e=>e(N).isInserterOpened()),[]),{setIsInserterOpened:r}=(0,d.useDispatch)(N);return(0,o.useEffect)((()=>{t?e.open():e.close()}),[e,t]),[t,(0,o.useCallback)((e=>{let t=e;"function"==typeof e&&(t=e((0,d.select)(N).isInserterOpened())),r(t)}),[r])]}(r),{hasUploadPermissions:a,isFixedToolbarActive:c,keepCaretInsideBlock:l,isWelcomeGuideActive:m}=(0,d.useSelect)((e=>{var t;const{get:r}=e(u.store);return{hasUploadPermissions:null===(t=e(y.store).canUser("create","media"))||void 0===t||t,isFixedToolbarActive:!!r("core/customize-widgets","fixedToolbar"),keepCaretInsideBlock:!!r("core/customize-widgets","keepCaretInsideBlock"),isWelcomeGuideActive:!!r("core/customize-widgets","welcomeGuide")}}),[]),h=(0,o.useMemo)((()=>{let t;return a&&(t=({onError:t,...r})=>{(0,v.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...r})}),{...e,__experimentalSetIsInserterOpened:s,mediaUpload:t,hasFixedToolbar:c,keepCaretInsideBlock:l,__unstableHasCustomAppender:!0}}),[a,e,c,l,s]);return m?(0,o.createElement)(ze,{sidebar:t}):(0,o.createElement)(o.Fragment,null,(0,o.createElement)(g.BlockEditorKeyboardShortcuts.Register,null),(0,o.createElement)(Be.Register,null),(0,o.createElement)(Ie,{sidebar:t,settings:h},(0,o.createElement)(Be,{undo:t.undo,redo:t.redo,save:t.save}),(0,o.createElement)(ue,{sidebar:t,inserter:r,isInserterOpened:i,setIsInserterOpened:s,isFixedToolbarActive:c}),(0,o.createElement)(g.CopyHandler,null,(0,o.createElement)(g.BlockTools,null,(0,o.createElement)(g.__unstableEditorStyles,{styles:h.defaultEditorStyles}),(0,o.createElement)(g.BlockSelectionClearer,null,(0,o.createElement)(g.WritingFlow,{className:"editor-styles-wrapper"},(0,o.createElement)(g.ObserveTyping,null,(0,o.createElement)(g.BlockList,{renderAppender:We})))))),(0,o.createPortal)((0,o.createElement)("form",{onSubmit:e=>e.preventDefault()},(0,o.createElement)(g.BlockInspector,null)),n.contentContainer[0])),(0,o.createElement)(g.__unstableBlockSettingsMenuFirstItem,null,(({onClose:e})=>(0,o.createElement)(E,{inspector:n,closeMenu:e}))))}const Te=(0,o.createContext)();function Oe({sidebarControls:e,activeSidebarControl:t,children:r}){const n=(0,o.useMemo)((()=>({sidebarControls:e,activeSidebarControl:t})),[e,t]);return(0,o.createElement)(Te.Provider,{value:n},r)}function Ne({api:e,sidebarControls:t,blockEditorSettings:r}){const[n,i]=(0,o.useState)(null),s=document.getElementById("customize-theme-controls"),a=(0,o.useRef)();!function(e,t){const{hasSelectedBlock:r,hasMultiSelection:n}=(0,d.useSelect)(g.store),{clearSelectedBlock:i}=(0,d.useDispatch)(g.store);(0,o.useEffect)((()=>{if(t.current&&e){const s=e.inspector,o=e.container[0],a=o.ownerDocument,c=a.defaultView;function l(e){!r()&&!n()||!e||!a.contains(e)||o.contains(e)||t.current.contains(e)||e.closest('[role="dialog"]')||s.expanded()||i()}function d(e){l(e.target)}function u(){l(a.activeElement)}return a.addEventListener("mousedown",d),c.addEventListener("blur",u),()=>{a.removeEventListener("mousedown",d),c.removeEventListener("blur",u)}}}),[t,e,r,n,i])}(n,a),(0,o.useEffect)((()=>{const e=t.map((e=>e.subscribe((t=>{t&&i(e)}))));return()=>{e.forEach((e=>e()))}}),[t]);const c=n&&(0,o.createPortal)((0,o.createElement)(_,null,(0,o.createElement)(Me,{key:n.id,blockEditorSettings:r,sidebar:n.sidebarAdapter,inserter:n.inserter,inspector:n.inspector})),n.container[0]),l=s&&(0,o.createPortal)((0,o.createElement)("div",{className:"customize-widgets-popover",ref:a},(0,o.createElement)(m.Popover.Slot,null)),s);return(0,o.createElement)(h.ShortcutProvider,null,(0,o.createElement)(m.SlotFillProvider,null,(0,o.createElement)(Oe,{sidebarControls:t,activeSidebarControl:n},(0,o.createElement)(ve,{api:e,sidebarControls:t},c,l))))}function Pe(){const{wp:{customize:e}}=window,t=window.matchMedia("(prefers-reduced-motion: reduce)");let r=t.matches;return t.addEventListener("change",(e=>{r=e.matches})),class extends e.Section{ready(){const t=function(){const{wp:{customize:e}}=window;return class extends e.Section{constructor(e,t){super(e,t),this.parentSection=t.parentSection,this.returnFocusWhenClose=null,this._isOpen=!1}get isOpen(){return this._isOpen}set isOpen(e){this._isOpen=e,this.triggerActiveCallbacks()}ready(){this.contentContainer[0].classList.add("customize-widgets-layout__inspector")}isContextuallyActive(){return this.isOpen}onChangeExpanded(e,t){super.onChangeExpanded(e,t),this.parentSection&&!t.unchanged&&(e?this.parentSection.collapse({manualTransition:!0}):this.parentSection.expand({manualTransition:!0,completeCallback:()=>{this.returnFocusWhenClose&&!this.contentContainer[0].contains(this.returnFocusWhenClose)&&this.returnFocusWhenClose.focus()}}))}open({returnFocusWhenClose:e}={}){this.isOpen=!0,this.returnFocusWhenClose=e,this.expand({allowMultiple:!0})}close(){this.collapse({allowMultiple:!0})}collapse(e){this.isOpen=!1,super.collapse(e)}triggerActiveCallbacks(){this.active.callbacks.fireWith(this.active,[!1,!0])}}}();this.inspector=new t(`widgets-inspector-${this.id}`,{title:(0,p.__)("Block Settings"),parentSection:this,customizeAction:[(0,p.__)("Customizing"),(0,p.__)("Widgets"),this.params.title].join(" ▸ ")}),e.section.add(this.inspector),this.contentContainer[0].classList.add("customize-widgets__sidebar-section")}hasSubSectionOpened(){return this.inspector.expanded()}onChangeExpanded(e,t){const n=this.controls(),i={...t,completeCallback(){n.forEach((t=>{t.onChangeSectionExpanded?.(e,i)})),t.completeCallback?.()}};if(i.manualTransition){e?(this.contentContainer.addClass(["busy","open"]),this.contentContainer.removeClass("is-sub-section-open"),this.contentContainer.closest(".wp-full-overlay").addClass("section-open")):(this.contentContainer.addClass(["busy","is-sub-section-open"]),this.contentContainer.closest(".wp-full-overlay").addClass("section-open"),this.contentContainer.removeClass("open"));const t=()=>{this.contentContainer.removeClass("busy"),i.completeCallback()};r?t():this.contentContainer.one("transitionend",t)}else super.onChangeExpanded(e,i)}}}const{wp:Fe}=window;function Le(e){const t=e.match(/^(.+)-(\d+)$/);return t?{idBase:t[1],number:parseInt(t[2],10)}:{idBase:e}}function Re(e){const{idBase:t,number:r}=Le(e);return r?`widget_${t}[${r}]`:`widget_${t}`}class De{constructor(e,t){this.setting=e,this.api=t,this.locked=!1,this.widgetsCache=new WeakMap,this.subscribers=new Set,this.history=[this._getWidgetIds().map((e=>this.getWidget(e)))],this.historyIndex=0,this.historySubscribers=new Set,this._debounceSetHistory=function(e,t,r){let n,i=!1;function s(...s){const o=(i?t:e).apply(this,s);return i=!0,clearTimeout(n),n=setTimeout((()=>{i=!1}),r),o}return s.cancel=()=>{i=!1,clearTimeout(n)},s}(this._pushHistory,this._replaceHistory,1e3),this.setting.bind(this._handleSettingChange.bind(this)),this.api.bind("change",this._handleAllSettingsChange.bind(this)),this.undo=this.undo.bind(this),this.redo=this.redo.bind(this),this.save=this.save.bind(this)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}getWidgets(){return this.history[this.historyIndex]}_emit(...e){for(const t of this.subscribers)t(...e)}_getWidgetIds(){return this.setting.get()}_pushHistory(){this.history=[...this.history.slice(0,this.historyIndex+1),this._getWidgetIds().map((e=>this.getWidget(e)))],this.historyIndex+=1,this.historySubscribers.forEach((e=>e()))}_replaceHistory(){this.history[this.historyIndex]=this._getWidgetIds().map((e=>this.getWidget(e)))}_handleSettingChange(){if(this.locked)return;const e=this.getWidgets();this._pushHistory(),this._emit(e,this.getWidgets())}_handleAllSettingsChange(e){if(this.locked)return;if(!e.id.startsWith("widget_"))return;const t=fe(e.id);if(!this.setting.get().includes(t))return;const r=this.getWidgets();this._pushHistory(),this._emit(r,this.getWidgets())}_createWidget(e){const t=Fe.customize.Widgets.availableWidgets.findWhere({id_base:e.idBase});let r=e.number;t.get("is_multi")&&!r&&(t.set("multi_number",t.get("multi_number")+1),r=t.get("multi_number"));const n=r?`widget_${e.idBase}[${r}]`:`widget_${e.idBase}`,i={transport:Fe.customize.Widgets.data.selectiveRefreshableWidgets[t.get("id_base")]?"postMessage":"refresh",previewer:this.setting.previewer};this.api.create(n,n,"",i).set(e.instance);return fe(n)}_removeWidget(e){const t=Re(e.id),r=this.api(t);if(r){const e=r.get();this.widgetsCache.delete(e)}this.api.remove(t)}_updateWidget(e){const t=this.getWidget(e.id);if(t===e)return e.id;if(t.idBase&&e.idBase&&t.idBase===e.idBase){const t=Re(e.id);return this.api(t).set(e.instance),e.id}return this._removeWidget(e),this._createWidget(e)}getWidget(e){if(!e)return null;const{idBase:t,number:r}=Le(e),n=Re(e),i=this.api(n);if(!i)return null;const s=i.get();if(this.widgetsCache.has(s))return this.widgetsCache.get(s);const o={id:e,idBase:t,number:r,instance:s};return this.widgetsCache.set(s,o),o}_updateWidgets(e){this.locked=!0;const t=[],r=e.map((e=>{if(e.id&&this.getWidget(e.id))return t.push(null),this._updateWidget(e);const r=this._createWidget(e);return t.push(r),r}));return this.getWidgets().filter((e=>!r.includes(e.id))).forEach((e=>this._removeWidget(e))),this.setting.set(r),this.locked=!1,t}setWidgets(e){const t=this._updateWidgets(e);return this._debounceSetHistory(),t}hasUndo(){return this.historyIndex>0}hasRedo(){return this.historyIndexe())),this._debounceSetHistory.cancel()}undo(){this.hasUndo()&&this._seek(this.historyIndex-1)}redo(){this.hasRedo()&&this._seek(this.historyIndex+1)}subscribeHistory(e){return this.historySubscribers.add(e),()=>{this.historySubscribers.delete(e)}}save(){this.api.previewer.save()}}var He=window.wp.dom;function Ve(){const{wp:{customize:e}}=window;return class extends e.Control{constructor(...e){super(...e),this.subscribers=new Set}ready(){const t=function(){const{wp:{customize:e}}=window,t=e.OuterSection;return e.OuterSection=class extends t{onChangeExpanded(t,r){return t&&e.section.each((e=>{"outer"===e.params.type&&e.id!==this.id&&e.expanded()&&e.collapse()})),super.onChangeExpanded(t,r)}},e.sectionConstructor.outer=e.OuterSection,class extends e.OuterSection{constructor(...e){super(...e),this.params.type="outer",this.activeElementBeforeExpanded=null,this.contentContainer[0].ownerDocument.defaultView.addEventListener("keydown",(e=>{!this.expanded()||e.keyCode!==S.ESCAPE&&"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),(0,d.dispatch)(N).setIsInserterOpened(!1))}),!0),this.contentContainer.addClass("widgets-inserter"),this.isFromInternalAction=!1,this.expanded.bind((()=>{this.isFromInternalAction||(0,d.dispatch)(N).setIsInserterOpened(this.expanded()),this.isFromInternalAction=!1}))}open(){if(!this.expanded()){const e=this.contentContainer[0];this.activeElementBeforeExpanded=e.ownerDocument.activeElement,this.isFromInternalAction=!0,this.expand({completeCallback(){const t=He.focus.tabbable.find(e)[1];t&&t.focus()}})}}close(){if(this.expanded()){const e=this.contentContainer[0],t=e.ownerDocument.activeElement;this.isFromInternalAction=!0,this.collapse({completeCallback(){e.contains(t)&&this.activeElementBeforeExpanded&&this.activeElementBeforeExpanded.focus()}})}}}}();this.inserter=new t(`widgets-inserter-${this.id}`,{}),e.section.add(this.inserter),this.sectionInstance=e.section(this.section()),this.inspector=this.sectionInstance.inspector,this.sidebarAdapter=new De(this.setting,e)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}onChangeSectionExpanded(e,t){t.unchanged||(e||(0,d.dispatch)(N).setIsInserterOpened(!1),this.subscribers.forEach((r=>r(e,t))))}}}const Ge=(0,f.createHigherOrderComponent)((e=>t=>{let r=(0,c.getWidgetIdFromBlock)(t);const n=function(){const{sidebarControls:e}=(0,o.useContext)(Te);return e}(),i=function(){const{activeSidebarControl:e}=(0,o.useContext)(Te);return e}(),s=n?.length>1,a=t.name,l=t.clientId,u=(0,d.useSelect)((e=>e(g.store).canInsertBlockType(a,"")),[a]),m=(0,d.useSelect)((e=>e(g.store).getBlock(l)),[l]),{removeBlock:h}=(0,d.useDispatch)(g.store),[,p]=Ee();return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(e,{...t}),s&&u&&(0,o.createElement)(g.BlockControls,null,(0,o.createElement)(c.MoveToWidgetArea,{widgetAreas:n.map((e=>({id:e.id,name:e.params.label,description:e.params.description}))),currentWidgetAreaId:i?.id,onSelect:function(e){const t=n.find((t=>t.id===e));if(r){const e=i.setting,n=t.setting;e(e().filter((e=>e!==r))),n([...n(),r])}else{const e=t.sidebarAdapter;h(l);const n=e.setWidgets([...e.getWidgets(),be(m)]);r=n.reverse().find((e=>!!e))}p(r)}})))}),"withMoveToSidebarToolbarItem");(0,b.addFilter)("editor.BlockEdit","core/customize-widgets/block-edit",Ge);(0,b.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",(()=>v.MediaUpload));const{wp:Ue}=window,$e=(0,f.createHigherOrderComponent)((e=>t=>{var r;const{idBase:n}=t.attributes,i=null!==(r=Ue.customize.Widgets.data.availableWidgets.find((e=>e.id_base===n))?.is_wide)&&void 0!==r&&r;return(0,o.createElement)(e,{...t,isWide:i})}),"withWideWidgetDisplay");(0,b.addFilter)("editor.BlockEdit","core/customize-widgets/wide-widget-display",$e);const{wp:je}=window,Ye=["core/more","core/block","core/freeform","core/template-part"];function qe(e,t){(0,d.dispatch)(u.store).setDefaults("core/customize-widgets",{fixedToolbar:!1,welcomeGuide:!0}),(0,d.dispatch)(l.store).__experimentalReapplyBlockTypeFilters();const r=(0,a.__experimentalGetCoreBlocks)().filter((e=>!(Ye.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")||e.name.startsWith("core/navigation"))));(0,a.registerCoreBlocks)(r),(0,c.registerLegacyWidgetBlock)(),(0,c.registerLegacyWidgetVariations)(t),(0,c.registerWidgetGroupBlock)(),(0,l.setFreeformContentHandlerName)("core/html");const n=Ve();je.customize.sectionConstructor.sidebar=Pe(),je.customize.controlConstructor.sidebar_block_editor=n;const i=document.createElement("div");document.body.appendChild(i),je.customize.bind("ready",(()=>{const e=[];je.customize.control.each((t=>{t instanceof n&&e.push(t)})),(0,o.createRoot)(i).render((0,o.createElement)(Ne,{api:je.customize,sidebarControls:e,blockEditorSettings:t}))}))}}(),(window.wp=window.wp||{}).customizeWidgets=n}(); \ No newline at end of file +*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;te(g.store).getSelectedBlockClientId()),[]),i=(0,o.useMemo)((()=>document.getElementById(`block-${n}`)),[n]);return(0,o.createElement)(m.MenuItem,{onClick:()=>{e.open({returnFocusWhenClose:i}),t()},...r},(0,p.__)("Show more settings"))},k=r(4403),C=r.n(k),S=window.wp.keycodes,x=window.wp.primitives;var I=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var z=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var A=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var B=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));function W(e){return!!e.blockInserterPanel}function M(e){const{rootClientId:t,insertionIndex:r}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:r}}function O(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}const T={reducer:(0,d.combineReducers)({blockInserterPanel:function(e=!1,t){return"SET_IS_INSERTER_OPENED"===t.type?t.value:e}}),selectors:e,actions:t},N=(0,d.createReduxStore)("core/customize-widgets",T);(0,d.register)(N);var P=function e({setIsOpened:t}){const r=(0,f.useInstanceId)(e,"customize-widget-layout__inserter-panel-title"),n=(0,d.useSelect)((e=>e(N).__experimentalGetInsertionPoint()),[]);return(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel","aria-labelledby":r},(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel-header"},(0,o.createElement)("h2",{id:r,className:"customize-widgets-layout__inserter-panel-header-title"},(0,p.__)("Add a block")),(0,o.createElement)(m.Button,{className:"customize-widgets-layout__inserter-panel-header-close-button",icon:B,onClick:()=>t(!1),"aria-label":(0,p.__)("Close inserter")})),(0,o.createElement)("div",{className:"customize-widgets-layout__inserter-panel-content"},(0,o.createElement)(g.__experimentalLibrary,{rootClientId:n.rootClientId,__experimentalInsertionIndex:n.insertionIndex,showInserterHelpPanel:!0,onSelect:()=>t(!1)})))};var F=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));var L=(0,o.createElement)(x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(x.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function D({as:e=m.DropdownMenu,className:t,label:r=(0,p.__)("Options"),popoverProps:n,toggleProps:i,children:s}){return(0,o.createElement)(e,{className:C()("interface-more-menu-dropdown",t),icon:L,label:r,popoverProps:{placement:"bottom-end",...n,className:C()("interface-more-menu-dropdown__content",n?.className)},toggleProps:{tooltipPosition:"bottom",...i}},(e=>s(e)))}var R=window.wp.deprecated,H=r.n(R);const V=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),G=(e,t)=>({registry:r,dispatch:n})=>{if(!t)return;r.select(u.store).get(e,"isComplementaryAreaVisible")||r.dispatch(u.store).set(e,"isComplementaryAreaVisible",!0),n({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},U=e=>({registry:t})=>{t.select(u.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(u.store).set(e,"isComplementaryAreaVisible",!1)},$=(e,t)=>({registry:r})=>{if(!t)return;const n=r.select(u.store).get(e,"pinnedItems");!0!==n?.[t]&&r.dispatch(u.store).set(e,"pinnedItems",{...n,[t]:!0})},j=(e,t)=>({registry:r})=>{if(!t)return;const n=r.select(u.store).get(e,"pinnedItems");r.dispatch(u.store).set(e,"pinnedItems",{...n,[t]:!1})};function Y(e,t){return function({registry:r}){H()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(u.store).toggle(e,t)}}function q(e,t,r){return function({registry:n}){H()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),n.dispatch(u.store).set(e,t,!!r)}}function K(e,t){return function({registry:r}){H()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(u.store).setDefaults(e,t)}}function Z(e){return{type:"OPEN_MODAL",name:e}}function J(){return{type:"CLOSE_MODAL"}}const Q=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(u.store).get(r,"isComplementaryAreaVisible");if(void 0!==n)return!1===n?null:t?.complementaryAreas?.[r]})),X=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(u.store).get(r,"isComplementaryAreaVisible"),i=t?.complementaryAreas?.[r];return n&&void 0===i})),ee=(0,d.createRegistrySelector)((e=>(t,r,n)=>{var i;return null===(i=e(u.store).get(r,"pinnedItems")?.[n])||void 0===i||i})),te=(0,d.createRegistrySelector)((e=>(t,r,n)=>(H()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(u.store).get(r,n))));function re(e,t){return e.activeModal===t}var ne=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:r,area:n}=t;return e[r]?e:{...e,[r]:n}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:r,area:n}=t;return{...e,[r]:n}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const ie=(0,d.createReduxStore)("core/interface",{reducer:ne,actions:i,selectors:s});(0,d.register)(ie);const se=[{keyCombination:{modifier:"primary",character:"b"},description:(0,p.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,p.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,p.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,p.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,p.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,p.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,p.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,p.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,p.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,p.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function oe({keyCombination:e,forceAriaLabel:t}){const r=e.modifier?S.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?S.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,o.createElement)("kbd",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||n},(Array.isArray(r)?r:[r]).map(((e,t)=>"+"===e?(0,o.createElement)(o.Fragment,{key:t},e):(0,o.createElement)("kbd",{key:t,className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-key"},e))))}var ae=function({description:e,keyCombination:t,aliases:r=[],ariaLabel:n}){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-description"},e),(0,o.createElement)("div",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-term"},(0,o.createElement)(oe,{keyCombination:t,forceAriaLabel:n}),r.map(((e,t)=>(0,o.createElement)(oe,{keyCombination:e,forceAriaLabel:n,key:t})))))};var ce=function({name:e}){const{keyCombination:t,description:r,aliases:n}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:r,getShortcutDescription:n,getShortcutAliases:i}=t(h.store);return{keyCombination:r(e),aliases:i(e),description:n(e)}}),[e]);return t?(0,o.createElement)(ae,{keyCombination:t,description:r,aliases:n}):null};const le=({shortcuts:e})=>(0,o.createElement)("ul",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,o.createElement)("li",{className:"customize-widgets-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,o.createElement)(ce,{name:e}):(0,o.createElement)(ae,{...e}))))),de=({title:e,shortcuts:t,className:r})=>(0,o.createElement)("section",{className:C()("customize-widgets-keyboard-shortcut-help-modal__section",r)},!!e&&(0,o.createElement)("h2",{className:"customize-widgets-keyboard-shortcut-help-modal__section-title"},e),(0,o.createElement)(le,{shortcuts:t})),ue=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{const n=(0,d.useSelect)((e=>e(h.store).getCategoryShortcuts(t)),[t]);return(0,o.createElement)(de,{title:e,shortcuts:n.concat(r)})};function me({isModalActive:e,toggleModal:t}){const{registerShortcut:r}=(0,d.useDispatch)(h.store);return r({name:"core/customize-widgets/keyboard-shortcuts",category:"main",description:(0,p.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),(0,h.useShortcut)("core/customize-widgets/keyboard-shortcuts",t),e?(0,o.createElement)(m.Modal,{className:"customize-widgets-keyboard-shortcut-help-modal",title:(0,p.__)("Keyboard shortcuts"),onRequestClose:t},(0,o.createElement)(de,{className:"customize-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/customize-widgets/keyboard-shortcuts"]}),(0,o.createElement)(ue,{title:(0,p.__)("Global shortcuts"),categoryName:"global"}),(0,o.createElement)(ue,{title:(0,p.__)("Selection shortcuts"),categoryName:"selection"}),(0,o.createElement)(ue,{title:(0,p.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,p.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,p.__)("Forward-slash")}]}),(0,o.createElement)(de,{title:(0,p.__)("Text formatting"),shortcuts:se})):null}function he(){const[e,t]=(0,o.useState)(!1),r=()=>t(!e);return(0,h.useShortcut)("core/customize-widgets/keyboard-shortcuts",r),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(D,{as:m.ToolbarDropdownMenu},(()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(m.MenuGroup,{label:(0,p._x)("View","noun")},(0,o.createElement)(u.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"fixedToolbar",label:(0,p.__)("Top toolbar"),info:(0,p.__)("Access all block and document tools in a single place"),messageActivated:(0,p.__)("Top toolbar activated"),messageDeactivated:(0,p.__)("Top toolbar deactivated")})),(0,o.createElement)(m.MenuGroup,{label:(0,p.__)("Tools")},(0,o.createElement)(m.MenuItem,{onClick:()=>{t(!0)},shortcut:S.displayShortcut.access("h")},(0,p.__)("Keyboard shortcuts")),(0,o.createElement)(u.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"welcomeGuide",label:(0,p.__)("Welcome Guide")}),(0,o.createElement)(m.MenuItem,{role:"menuitem",icon:F,href:(0,p.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,p.__)("Help"),(0,o.createElement)(m.VisuallyHidden,{as:"span"},(0,p.__)("(opens in a new tab)")))),(0,o.createElement)(m.MenuGroup,{label:(0,p.__)("Preferences")},(0,o.createElement)(u.PreferenceToggleMenuItem,{scope:"core/customize-widgets",name:"keepCaretInsideBlock",label:(0,p.__)("Contain text cursor inside block"),info:(0,p.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,p.__)("Contain text cursor inside block activated"),messageDeactivated:(0,p.__)("Contain text cursor inside block deactivated")}))))),(0,o.createElement)(me,{isModalActive:e,toggleModal:r}))}var pe=function({sidebar:e,inserter:t,isInserterOpened:r,setIsInserterOpened:n,isFixedToolbarActive:i}){const[[s,a],c]=(0,o.useState)([e.hasUndo(),e.hasRedo()]),l=(0,S.isAppleOS)()?S.displayShortcut.primaryShift("z"):S.displayShortcut.primary("y");return(0,o.useEffect)((()=>e.subscribeHistory((()=>{c([e.hasUndo(),e.hasRedo()])}))),[e]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:C()("customize-widgets-header",{"is-fixed-toolbar-active":i})},(0,o.createElement)(g.NavigableToolbar,{className:"customize-widgets-header-toolbar","aria-label":(0,p.__)("Document tools")},(0,o.createElement)(m.ToolbarButton,{icon:(0,p.isRTL)()?z:I,label:(0,p.__)("Undo"),shortcut:S.displayShortcut.primary("z"),"aria-disabled":!s,onClick:e.undo,className:"customize-widgets-editor-history-button undo-button"}),(0,o.createElement)(m.ToolbarButton,{icon:(0,p.isRTL)()?I:z,label:(0,p.__)("Redo"),shortcut:l,"aria-disabled":!a,onClick:e.redo,className:"customize-widgets-editor-history-button redo-button"}),(0,o.createElement)(m.ToolbarButton,{className:"customize-widgets-header-toolbar__inserter-toggle",isPressed:r,variant:"primary",icon:A,label:(0,p._x)("Add block","Generic label for block inserter button"),onClick:()=>{n((e=>!e))}}),(0,o.createElement)(he,null))),(0,o.createPortal)((0,o.createElement)(P,{setIsOpened:n}),t.contentContainer[0]))};var ge=r(5619),fe=r.n(ge),be=window.wp.isShallowEqual,we=r.n(be);function _e(e){const t=e.match(/^widget_(.+)(?:\[(\d+)\])$/);if(t){return`${t[1]}-${parseInt(t[2],10)}`}return e}function ye(e,t=null){let r;if("core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance))if(e.attributes.id)r={id:e.attributes.id};else{const{encoded:n,hash:i,raw:s,...o}=e.attributes.instance;r={idBase:e.attributes.idBase,instance:{...t?.instance,is_widget_customizer_js_value:!0,encoded_serialized_instance:n,instance_hash_key:i,raw_instance:s,...o}}}else{r={idBase:"block",widgetClass:"WP_Widget_Block",instance:{raw_instance:{content:(0,l.serialize)(e)}}}}const{form:n,rendered:i,...s}=t||{};return{...s,...r}}function ve({id:e,idBase:t,number:r,instance:n}){let i;const{encoded_serialized_instance:s,instance_hash_key:o,raw_instance:a,...d}=n;if("block"===t){var u;const e=(0,l.parse)(null!==(u=a.content)&&void 0!==u?u:"",{__unstableSkipAutop:!0});i=e.length?e[0]:(0,l.createBlock)("core/paragraph",{})}else i=r?(0,l.createBlock)("core/legacy-widget",{idBase:t,instance:{encoded:s,hash:o,raw:a,...d}}):(0,l.createBlock)("core/legacy-widget",{id:e});return(0,c.addWidgetIdToBlock)(i,e)}function Ee(e){const[t,r]=(0,o.useState)((()=>e.getWidgets().map((e=>ve(e)))));(0,o.useEffect)((()=>e.subscribe(((e,t)=>{r((r=>{const n=new Map(e.map((e=>[e.id,e]))),i=new Map(r.map((e=>[(0,c.getWidgetIdFromBlock)(e),e]))),s=t.map((e=>{const t=n.get(e.id);return t&&t===e?i.get(e.id):ve(e)}));return we()(r,s)?r:s}))}))),[e]);const n=(0,o.useCallback)((t=>{r((r=>{if(we()(r,t))return r;const n=new Map(r.map((e=>[(0,c.getWidgetIdFromBlock)(e),e]))),i=t.map((t=>{const r=(0,c.getWidgetIdFromBlock)(t);if(r&&n.has(r)){const i=n.get(r),s=e.getWidget(r);return fe()(t,i)&&s?s:ye(t,s)}return ye(t)}));if(we()(e.getWidgets(),i))return r;const s=e.setWidgets(i);return t.reduce(((e,r,n)=>{const i=s[n];return null!==i&&(e===t&&(e=t.slice()),e[n]=(0,c.addWidgetIdToBlock)(r,i)),e}),t)}))}),[e]);return[t,n,n]}const ke=(0,o.createContext)();function Ce({api:e,sidebarControls:t,children:r}){const[n,i]=(0,o.useState)({current:null}),s=(0,o.useCallback)((e=>{for(const r of t){if(r.setting.get().includes(e)){r.sectionInstance.expand({completeCallback(){i({current:e})}});break}}}),[t]);(0,o.useEffect)((()=>{function t(e){const t=_e(e);s(t)}let r=!1;function n(){e.previewer.preview.bind("focus-control-for-setting",t),r=!0}return e.previewer.bind("ready",n),()=>{e.previewer.unbind("ready",n),r&&e.previewer.preview.unbind("focus-control-for-setting",t)}}),[e,s]);const a=(0,o.useMemo)((()=>[n,s]),[n,s]);return(0,o.createElement)(ke.Provider,{value:a},r)}const Se=()=>(0,o.useContext)(ke);var xe=window.wp.privateApis;const{lock:Ie,unlock:ze}=(0,xe.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/customize-widgets"),{ExperimentalBlockEditorProvider:Ae}=ze(g.privateApis);function Be({sidebar:e,settings:t,children:r}){const[n,i,s]=Ee(e);return function(e){const{selectBlock:t}=(0,d.useDispatch)(g.store),[r]=Se(),n=(0,o.useRef)(e);(0,o.useEffect)((()=>{n.current=e}),[e]),(0,o.useEffect)((()=>{if(r.current){const e=n.current.find((e=>(0,c.getWidgetIdFromBlock)(e)===r.current));e&&(t(e.clientId),document.querySelector(`[data-block="${e.clientId}"]`)?.focus())}}),[r,t])}(n),(0,o.createElement)(Ae,{value:n,onInput:i,onChange:s,settings:t,useSubRegistry:!1},r)}function We({sidebar:e}){const{toggle:t}=(0,d.useDispatch)(u.store),r=e.getWidgets().every((e=>e.id.startsWith("block-")));return(0,o.createElement)("div",{className:"customize-widgets-welcome-guide"},(0,o.createElement)("div",{className:"customize-widgets-welcome-guide__image__wrapper"},(0,o.createElement)("picture",null,(0,o.createElement)("source",{srcSet:"https://s.w.org/images/block-editor/welcome-editor.svg",media:"(prefers-reduced-motion: reduce)"}),(0,o.createElement)("img",{className:"customize-widgets-welcome-guide__image",src:"https://s.w.org/images/block-editor/welcome-editor.gif",width:"312",height:"240",alt:""}))),(0,o.createElement)("h1",{className:"customize-widgets-welcome-guide__heading"},(0,p.__)("Welcome to block Widgets")),(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__text"},r?(0,p.__)("Your theme provides different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site."):(0,p.__)("You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.")),(0,o.createElement)(m.Button,{className:"customize-widgets-welcome-guide__button",variant:"primary",onClick:()=>t("core/customize-widgets","welcomeGuide")},(0,p.__)("Got it")),(0,o.createElement)("hr",{className:"customize-widgets-welcome-guide__separator"}),!r&&(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__more-info"},(0,p.__)("Want to stick with the old widgets?"),(0,o.createElement)("br",null),(0,o.createElement)(m.ExternalLink,{href:(0,p.__)("https://wordpress.org/plugins/classic-widgets/")},(0,p.__)("Get the Classic Widgets plugin."))),(0,o.createElement)("p",{className:"customize-widgets-welcome-guide__more-info"},(0,p.__)("New to the block editor?"),(0,o.createElement)("br",null),(0,o.createElement)(m.ExternalLink,{href:(0,p.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,p.__)("Here's a detailed guide."))))}function Me({undo:e,redo:t,save:r}){const{replaceBlocks:n}=(0,d.useDispatch)(g.store),{getBlockName:i,getSelectedBlockClientId:s,getBlockAttributes:o}=(0,d.useSelect)(g.store),a=(e,t)=>{e.preventDefault();const r=0===t?"core/paragraph":"core/heading",a=s();if(null===a)return;const c=i(a);if("core/paragraph"!==c&&"core/heading"!==c)return;const d=o(a),u="core/paragraph"===c?"align":"textAlign",m="core/paragraph"===r?"align":"textAlign";n(a,(0,l.createBlock)(r,{level:t,content:d.content,[m]:d[u]}))};return(0,h.useShortcut)("core/customize-widgets/undo",(t=>{e(),t.preventDefault()})),(0,h.useShortcut)("core/customize-widgets/redo",(e=>{t(),e.preventDefault()})),(0,h.useShortcut)("core/customize-widgets/save",(e=>{e.preventDefault(),r()})),(0,h.useShortcut)("core/customize-widgets/transform-heading-to-paragraph",(e=>a(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,h.useShortcut)(`core/customize-widgets/transform-paragraph-to-heading-${e}`,(t=>a(t,e)))})),null}Me.Register=function(){const{registerShortcut:e,unregisterShortcut:t}=(0,d.useDispatch)(h.store);return(0,o.useEffect)((()=>(e({name:"core/customize-widgets/undo",category:"global",description:(0,p.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/customize-widgets/redo",category:"global",description:(0,p.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,S.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/customize-widgets/save",category:"global",description:(0,p.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/customize-widgets/transform-heading-to-paragraph",category:"block-library",description:(0,p.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/customize-widgets/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,p.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),()=>{t("core/customize-widgets/undo"),t("core/customize-widgets/redo"),t("core/customize-widgets/save")})),[e]),null};var Oe=Me;function Te(e){const t=(0,o.useRef)(),r=(0,d.useSelect)((e=>0===e(g.store).getBlockCount()));return(0,o.useEffect)((()=>{if(r&&t.current){const{ownerDocument:e}=t.current;e.activeElement&&e.activeElement!==e.body||t.current.focus()}}),[r]),(0,o.createElement)(g.ButtonBlockAppender,{...e,ref:t})}function Ne({blockEditorSettings:e,sidebar:t,inserter:r,inspector:n}){const[i,s]=function(e){const t=(0,d.useSelect)((e=>e(N).isInserterOpened()),[]),{setIsInserterOpened:r}=(0,d.useDispatch)(N);return(0,o.useEffect)((()=>{t?e.open():e.close()}),[e,t]),[t,(0,o.useCallback)((e=>{let t=e;"function"==typeof e&&(t=e((0,d.select)(N).isInserterOpened())),r(t)}),[r])]}(r),{hasUploadPermissions:a,isFixedToolbarActive:c,keepCaretInsideBlock:l,isWelcomeGuideActive:m}=(0,d.useSelect)((e=>{var t;const{get:r}=e(u.store);return{hasUploadPermissions:null===(t=e(y.store).canUser("create","media"))||void 0===t||t,isFixedToolbarActive:!!r("core/customize-widgets","fixedToolbar"),keepCaretInsideBlock:!!r("core/customize-widgets","keepCaretInsideBlock"),isWelcomeGuideActive:!!r("core/customize-widgets","welcomeGuide")}}),[]),h=(0,o.useMemo)((()=>{let t;return a&&(t=({onError:t,...r})=>{(0,v.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...r})}),{...e,__experimentalSetIsInserterOpened:s,mediaUpload:t,hasFixedToolbar:c,keepCaretInsideBlock:l,__unstableHasCustomAppender:!0}}),[a,e,c,l,s]);return m?(0,o.createElement)(We,{sidebar:t}):(0,o.createElement)(o.Fragment,null,(0,o.createElement)(g.BlockEditorKeyboardShortcuts.Register,null),(0,o.createElement)(Oe.Register,null),(0,o.createElement)(Be,{sidebar:t,settings:h},(0,o.createElement)(Oe,{undo:t.undo,redo:t.redo,save:t.save}),(0,o.createElement)(pe,{sidebar:t,inserter:r,isInserterOpened:i,setIsInserterOpened:s,isFixedToolbarActive:c}),(0,o.createElement)(g.CopyHandler,null,(0,o.createElement)(g.BlockTools,null,(0,o.createElement)(g.__unstableEditorStyles,{styles:h.defaultEditorStyles}),(0,o.createElement)(g.BlockSelectionClearer,null,(0,o.createElement)(g.WritingFlow,{className:"editor-styles-wrapper"},(0,o.createElement)(g.ObserveTyping,null,(0,o.createElement)(g.BlockList,{renderAppender:Te})))))),(0,o.createPortal)((0,o.createElement)("form",{onSubmit:e=>e.preventDefault()},(0,o.createElement)(g.BlockInspector,null)),n.contentContainer[0])),(0,o.createElement)(g.__unstableBlockSettingsMenuFirstItem,null,(({onClose:e})=>(0,o.createElement)(E,{inspector:n,closeMenu:e}))))}const Pe=(0,o.createContext)();function Fe({sidebarControls:e,activeSidebarControl:t,children:r}){const n=(0,o.useMemo)((()=>({sidebarControls:e,activeSidebarControl:t})),[e,t]);return(0,o.createElement)(Pe.Provider,{value:n},r)}function Le({api:e,sidebarControls:t,blockEditorSettings:r}){const[n,i]=(0,o.useState)(null),s=document.getElementById("customize-theme-controls"),a=(0,o.useRef)();!function(e,t){const{hasSelectedBlock:r,hasMultiSelection:n}=(0,d.useSelect)(g.store),{clearSelectedBlock:i}=(0,d.useDispatch)(g.store);(0,o.useEffect)((()=>{if(t.current&&e){const s=e.inspector,o=e.container[0],a=o.ownerDocument,c=a.defaultView;function l(e){!r()&&!n()||!e||!a.contains(e)||o.contains(e)||t.current.contains(e)||e.closest('[role="dialog"]')||s.expanded()||i()}function d(e){l(e.target)}function u(){l(a.activeElement)}return a.addEventListener("mousedown",d),c.addEventListener("blur",u),()=>{a.removeEventListener("mousedown",d),c.removeEventListener("blur",u)}}}),[t,e,r,n,i])}(n,a),(0,o.useEffect)((()=>{const e=t.map((e=>e.subscribe((t=>{t&&i(e)}))));return()=>{e.forEach((e=>e()))}}),[t]);const c=n&&(0,o.createPortal)((0,o.createElement)(_,null,(0,o.createElement)(Ne,{key:n.id,blockEditorSettings:r,sidebar:n.sidebarAdapter,inserter:n.inserter,inspector:n.inspector})),n.container[0]),l=s&&(0,o.createPortal)((0,o.createElement)("div",{className:"customize-widgets-popover",ref:a},(0,o.createElement)(m.Popover.Slot,null)),s);return(0,o.createElement)(h.ShortcutProvider,null,(0,o.createElement)(m.SlotFillProvider,null,(0,o.createElement)(Fe,{sidebarControls:t,activeSidebarControl:n},(0,o.createElement)(Ce,{api:e,sidebarControls:t},c,l))))}function De(){const{wp:{customize:e}}=window,t=window.matchMedia("(prefers-reduced-motion: reduce)");let r=t.matches;return t.addEventListener("change",(e=>{r=e.matches})),class extends e.Section{ready(){const t=function(){const{wp:{customize:e}}=window;return class extends e.Section{constructor(e,t){super(e,t),this.parentSection=t.parentSection,this.returnFocusWhenClose=null,this._isOpen=!1}get isOpen(){return this._isOpen}set isOpen(e){this._isOpen=e,this.triggerActiveCallbacks()}ready(){this.contentContainer[0].classList.add("customize-widgets-layout__inspector")}isContextuallyActive(){return this.isOpen}onChangeExpanded(e,t){super.onChangeExpanded(e,t),this.parentSection&&!t.unchanged&&(e?this.parentSection.collapse({manualTransition:!0}):this.parentSection.expand({manualTransition:!0,completeCallback:()=>{this.returnFocusWhenClose&&!this.contentContainer[0].contains(this.returnFocusWhenClose)&&this.returnFocusWhenClose.focus()}}))}open({returnFocusWhenClose:e}={}){this.isOpen=!0,this.returnFocusWhenClose=e,this.expand({allowMultiple:!0})}close(){this.collapse({allowMultiple:!0})}collapse(e){this.isOpen=!1,super.collapse(e)}triggerActiveCallbacks(){this.active.callbacks.fireWith(this.active,[!1,!0])}}}();this.inspector=new t(`widgets-inspector-${this.id}`,{title:(0,p.__)("Block Settings"),parentSection:this,customizeAction:[(0,p.__)("Customizing"),(0,p.__)("Widgets"),this.params.title].join(" ▸ ")}),e.section.add(this.inspector),this.contentContainer[0].classList.add("customize-widgets__sidebar-section")}hasSubSectionOpened(){return this.inspector.expanded()}onChangeExpanded(e,t){const n=this.controls(),i={...t,completeCallback(){n.forEach((t=>{t.onChangeSectionExpanded?.(e,i)})),t.completeCallback?.()}};if(i.manualTransition){e?(this.contentContainer.addClass(["busy","open"]),this.contentContainer.removeClass("is-sub-section-open"),this.contentContainer.closest(".wp-full-overlay").addClass("section-open")):(this.contentContainer.addClass(["busy","is-sub-section-open"]),this.contentContainer.closest(".wp-full-overlay").addClass("section-open"),this.contentContainer.removeClass("open"));const t=()=>{this.contentContainer.removeClass("busy"),i.completeCallback()};r?t():this.contentContainer.one("transitionend",t)}else super.onChangeExpanded(e,i)}}}const{wp:Re}=window;function He(e){const t=e.match(/^(.+)-(\d+)$/);return t?{idBase:t[1],number:parseInt(t[2],10)}:{idBase:e}}function Ve(e){const{idBase:t,number:r}=He(e);return r?`widget_${t}[${r}]`:`widget_${t}`}class Ge{constructor(e,t){this.setting=e,this.api=t,this.locked=!1,this.widgetsCache=new WeakMap,this.subscribers=new Set,this.history=[this._getWidgetIds().map((e=>this.getWidget(e)))],this.historyIndex=0,this.historySubscribers=new Set,this._debounceSetHistory=function(e,t,r){let n,i=!1;function s(...s){const o=(i?t:e).apply(this,s);return i=!0,clearTimeout(n),n=setTimeout((()=>{i=!1}),r),o}return s.cancel=()=>{i=!1,clearTimeout(n)},s}(this._pushHistory,this._replaceHistory,1e3),this.setting.bind(this._handleSettingChange.bind(this)),this.api.bind("change",this._handleAllSettingsChange.bind(this)),this.undo=this.undo.bind(this),this.redo=this.redo.bind(this),this.save=this.save.bind(this)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}getWidgets(){return this.history[this.historyIndex]}_emit(...e){for(const t of this.subscribers)t(...e)}_getWidgetIds(){return this.setting.get()}_pushHistory(){this.history=[...this.history.slice(0,this.historyIndex+1),this._getWidgetIds().map((e=>this.getWidget(e)))],this.historyIndex+=1,this.historySubscribers.forEach((e=>e()))}_replaceHistory(){this.history[this.historyIndex]=this._getWidgetIds().map((e=>this.getWidget(e)))}_handleSettingChange(){if(this.locked)return;const e=this.getWidgets();this._pushHistory(),this._emit(e,this.getWidgets())}_handleAllSettingsChange(e){if(this.locked)return;if(!e.id.startsWith("widget_"))return;const t=_e(e.id);if(!this.setting.get().includes(t))return;const r=this.getWidgets();this._pushHistory(),this._emit(r,this.getWidgets())}_createWidget(e){const t=Re.customize.Widgets.availableWidgets.findWhere({id_base:e.idBase});let r=e.number;t.get("is_multi")&&!r&&(t.set("multi_number",t.get("multi_number")+1),r=t.get("multi_number"));const n=r?`widget_${e.idBase}[${r}]`:`widget_${e.idBase}`,i={transport:Re.customize.Widgets.data.selectiveRefreshableWidgets[t.get("id_base")]?"postMessage":"refresh",previewer:this.setting.previewer};this.api.create(n,n,"",i).set(e.instance);return _e(n)}_removeWidget(e){const t=Ve(e.id),r=this.api(t);if(r){const e=r.get();this.widgetsCache.delete(e)}this.api.remove(t)}_updateWidget(e){const t=this.getWidget(e.id);if(t===e)return e.id;if(t.idBase&&e.idBase&&t.idBase===e.idBase){const t=Ve(e.id);return this.api(t).set(e.instance),e.id}return this._removeWidget(e),this._createWidget(e)}getWidget(e){if(!e)return null;const{idBase:t,number:r}=He(e),n=Ve(e),i=this.api(n);if(!i)return null;const s=i.get();if(this.widgetsCache.has(s))return this.widgetsCache.get(s);const o={id:e,idBase:t,number:r,instance:s};return this.widgetsCache.set(s,o),o}_updateWidgets(e){this.locked=!0;const t=[],r=e.map((e=>{if(e.id&&this.getWidget(e.id))return t.push(null),this._updateWidget(e);const r=this._createWidget(e);return t.push(r),r}));return this.getWidgets().filter((e=>!r.includes(e.id))).forEach((e=>this._removeWidget(e))),this.setting.set(r),this.locked=!1,t}setWidgets(e){const t=this._updateWidgets(e);return this._debounceSetHistory(),t}hasUndo(){return this.historyIndex>0}hasRedo(){return this.historyIndexe())),this._debounceSetHistory.cancel()}undo(){this.hasUndo()&&this._seek(this.historyIndex-1)}redo(){this.hasRedo()&&this._seek(this.historyIndex+1)}subscribeHistory(e){return this.historySubscribers.add(e),()=>{this.historySubscribers.delete(e)}}save(){this.api.previewer.save()}}var Ue=window.wp.dom;function $e(){const{wp:{customize:e}}=window;return class extends e.Control{constructor(...e){super(...e),this.subscribers=new Set}ready(){const t=function(){const{wp:{customize:e}}=window,t=e.OuterSection;return e.OuterSection=class extends t{onChangeExpanded(t,r){return t&&e.section.each((e=>{"outer"===e.params.type&&e.id!==this.id&&e.expanded()&&e.collapse()})),super.onChangeExpanded(t,r)}},e.sectionConstructor.outer=e.OuterSection,class extends e.OuterSection{constructor(...e){super(...e),this.params.type="outer",this.activeElementBeforeExpanded=null,this.contentContainer[0].ownerDocument.defaultView.addEventListener("keydown",(e=>{!this.expanded()||e.keyCode!==S.ESCAPE&&"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),e.stopPropagation(),(0,d.dispatch)(N).setIsInserterOpened(!1))}),!0),this.contentContainer.addClass("widgets-inserter"),this.isFromInternalAction=!1,this.expanded.bind((()=>{this.isFromInternalAction||(0,d.dispatch)(N).setIsInserterOpened(this.expanded()),this.isFromInternalAction=!1}))}open(){if(!this.expanded()){const e=this.contentContainer[0];this.activeElementBeforeExpanded=e.ownerDocument.activeElement,this.isFromInternalAction=!0,this.expand({completeCallback(){const t=Ue.focus.tabbable.find(e)[1];t&&t.focus()}})}}close(){if(this.expanded()){const e=this.contentContainer[0],t=e.ownerDocument.activeElement;this.isFromInternalAction=!0,this.collapse({completeCallback(){e.contains(t)&&this.activeElementBeforeExpanded&&this.activeElementBeforeExpanded.focus()}})}}}}();this.inserter=new t(`widgets-inserter-${this.id}`,{}),e.section.add(this.inserter),this.sectionInstance=e.section(this.section()),this.inspector=this.sectionInstance.inspector,this.sidebarAdapter=new Ge(this.setting,e)}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}onChangeSectionExpanded(e,t){t.unchanged||(e||(0,d.dispatch)(N).setIsInserterOpened(!1),this.subscribers.forEach((r=>r(e,t))))}}}const je=(0,f.createHigherOrderComponent)((e=>t=>{let r=(0,c.getWidgetIdFromBlock)(t);const n=function(){const{sidebarControls:e}=(0,o.useContext)(Pe);return e}(),i=function(){const{activeSidebarControl:e}=(0,o.useContext)(Pe);return e}(),s=n?.length>1,a=t.name,l=t.clientId,u=(0,d.useSelect)((e=>e(g.store).canInsertBlockType(a,"")),[a]),m=(0,d.useSelect)((e=>e(g.store).getBlock(l)),[l]),{removeBlock:h}=(0,d.useDispatch)(g.store),[,p]=Se();return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(e,{...t}),s&&u&&(0,o.createElement)(g.BlockControls,null,(0,o.createElement)(c.MoveToWidgetArea,{widgetAreas:n.map((e=>({id:e.id,name:e.params.label,description:e.params.description}))),currentWidgetAreaId:i?.id,onSelect:function(e){const t=n.find((t=>t.id===e));if(r){const e=i.setting,n=t.setting;e(e().filter((e=>e!==r))),n([...n(),r])}else{const e=t.sidebarAdapter;h(l);const n=e.setWidgets([...e.getWidgets(),ye(m)]);r=n.reverse().find((e=>!!e))}p(r)}})))}),"withMoveToSidebarToolbarItem");(0,b.addFilter)("editor.BlockEdit","core/customize-widgets/block-edit",je);(0,b.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",(()=>v.MediaUpload));const{wp:Ye}=window,qe=(0,f.createHigherOrderComponent)((e=>t=>{var r;const{idBase:n}=t.attributes,i=null!==(r=Ye.customize.Widgets.data.availableWidgets.find((e=>e.id_base===n))?.is_wide)&&void 0!==r&&r;return(0,o.createElement)(e,{...t,isWide:i})}),"withWideWidgetDisplay");(0,b.addFilter)("editor.BlockEdit","core/customize-widgets/wide-widget-display",qe);const{wp:Ke}=window,Ze=["core/more","core/block","core/freeform","core/template-part"];function Je(e,t){(0,d.dispatch)(u.store).setDefaults("core/customize-widgets",{fixedToolbar:!1,welcomeGuide:!0}),(0,d.dispatch)(l.store).__experimentalReapplyBlockTypeFilters();const r=(0,a.__experimentalGetCoreBlocks)().filter((e=>!(Ze.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")||e.name.startsWith("core/navigation"))));(0,a.registerCoreBlocks)(r),(0,c.registerLegacyWidgetBlock)(),(0,c.registerLegacyWidgetVariations)(t),(0,c.registerWidgetGroupBlock)(),(0,l.setFreeformContentHandlerName)("core/html");const n=$e();Ke.customize.sectionConstructor.sidebar=De(),Ke.customize.controlConstructor.sidebar_block_editor=n;const i=document.createElement("div");document.body.appendChild(i),Ke.customize.bind("ready",(()=>{const e=[];Ke.customize.control.each((t=>{t instanceof n&&e.push(t)})),(0,o.createRoot)(i).render((0,o.createElement)(Le,{api:Ke.customize,sidebarControls:e,blockEditorSettings:t}))}))}}(),(window.wp=window.wp||{}).customizeWidgets=n}(); \ 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 ba63abd369..8a69843ba6 100644 --- a/wp-includes/js/dist/edit-post.js +++ b/wp-includes/js/dist/edit-post.js @@ -163,8 +163,10 @@ __webpack_require__.d(__webpack_exports__, { var actions_namespaceObject = {}; __webpack_require__.r(actions_namespaceObject); __webpack_require__.d(actions_namespaceObject, { + "closeModal": function() { return closeModal; }, "disableComplementaryArea": function() { return disableComplementaryArea; }, "enableComplementaryArea": function() { return enableComplementaryArea; }, + "openModal": function() { return openModal; }, "pinItem": function() { return pinItem; }, "setDefaultComplementaryArea": function() { return setDefaultComplementaryArea; }, "setFeatureDefaults": function() { return setFeatureDefaults; }, @@ -180,7 +182,8 @@ __webpack_require__.d(selectors_namespaceObject, { "getActiveComplementaryArea": function() { return getActiveComplementaryArea; }, "isComplementaryAreaLoading": function() { return isComplementaryAreaLoading; }, "isFeatureActive": function() { return isFeatureActive; }, - "isItemPinned": function() { return isItemPinned; } + "isItemPinned": function() { return isItemPinned; }, + "isModalActive": function() { return isModalActive; } }); // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-post/build-module/store/actions.js @@ -191,14 +194,14 @@ __webpack_require__.d(store_actions_namespaceObject, { "__unstableCreateTemplate": function() { return __unstableCreateTemplate; }, "__unstableSwitchToTemplateMode": function() { return __unstableSwitchToTemplateMode; }, "closeGeneralSidebar": function() { return closeGeneralSidebar; }, - "closeModal": function() { return closeModal; }, + "closeModal": function() { return actions_closeModal; }, "closePublishSidebar": function() { return closePublishSidebar; }, "hideBlockTypes": function() { return hideBlockTypes; }, "initializeMetaBoxes": function() { return initializeMetaBoxes; }, "metaBoxUpdatesFailure": function() { return metaBoxUpdatesFailure; }, "metaBoxUpdatesSuccess": function() { return metaBoxUpdatesSuccess; }, "openGeneralSidebar": function() { return openGeneralSidebar; }, - "openModal": function() { return openModal; }, + "openModal": function() { return actions_openModal; }, "openPublishSidebar": function() { return openPublishSidebar; }, "removeEditorPanel": function() { return removeEditorPanel; }, "requestMetaBoxUpdates": function() { return requestMetaBoxUpdates; }, @@ -243,7 +246,7 @@ __webpack_require__.d(store_selectors_namespaceObject, { "isListViewOpened": function() { return isListViewOpened; }, "isMetaBoxLocationActive": function() { return isMetaBoxLocationActive; }, "isMetaBoxLocationVisible": function() { return isMetaBoxLocationVisible; }, - "isModalActive": function() { return isModalActive; }, + "isModalActive": function() { return selectors_isModalActive; }, "isPluginItemPinned": function() { return isPluginItemPinned; }, "isPluginSidebarOpened": function() { return isPluginSidebarOpened; }, "isPublishSidebarOpened": function() { return isPublishSidebarOpened; }, @@ -466,244 +469,6 @@ function CopyContentMenuItem() { ;// CONCATENATED MODULE: external ["wp","keycodes"] var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"]; -;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js -/** - * WordPress dependencies - */ - -/** - * Reducer storing the list of all programmatically removed panels. - * - * @param {Array} state Current state. - * @param {Object} action Action object. - * - * @return {Array} Updated state. - */ - -function removedPanels(state = [], action) { - switch (action.type) { - case 'REMOVE_PANEL': - if (!state.includes(action.panelName)) { - return [...state, action.panelName]; - } - - } - - return state; -} -/** - * Reducer for storing the name of the open modal, or null if no modal is open. - * - * @param {Object} state Previous state. - * @param {Object} action Action object containing the `name` of the modal - * - * @return {Object} Updated state - */ - -function activeModal(state = null, action) { - switch (action.type) { - case 'OPEN_MODAL': - return action.name; - - case 'CLOSE_MODAL': - return null; - } - - return state; -} -function publishSidebarActive(state = false, action) { - switch (action.type) { - case 'OPEN_PUBLISH_SIDEBAR': - return true; - - case 'CLOSE_PUBLISH_SIDEBAR': - return false; - - case 'TOGGLE_PUBLISH_SIDEBAR': - return !state; - } - - return state; -} -/** - * Reducer keeping track of the meta boxes isSaving state. - * A "true" value means the meta boxes saving request is in-flight. - * - * - * @param {boolean} state Previous state. - * @param {Object} action Action Object. - * - * @return {Object} Updated state. - */ - -function isSavingMetaBoxes(state = false, action) { - switch (action.type) { - case 'REQUEST_META_BOX_UPDATES': - return true; - - case 'META_BOX_UPDATES_SUCCESS': - case 'META_BOX_UPDATES_FAILURE': - return false; - - default: - return state; - } -} - -function mergeMetaboxes(metaboxes = [], newMetaboxes) { - const mergedMetaboxes = [...metaboxes]; - - for (const metabox of newMetaboxes) { - const existing = mergedMetaboxes.findIndex(box => box.id === metabox.id); - - if (existing !== -1) { - mergedMetaboxes[existing] = metabox; - } else { - mergedMetaboxes.push(metabox); - } - } - - return mergedMetaboxes; -} -/** - * Reducer keeping track of the meta boxes per location. - * - * @param {boolean} state Previous state. - * @param {Object} action Action Object. - * - * @return {Object} Updated state. - */ - - -function metaBoxLocations(state = {}, action) { - switch (action.type) { - case 'SET_META_BOXES_PER_LOCATIONS': - { - const newState = { ...state - }; - - for (const [location, metaboxes] of Object.entries(action.metaBoxesPerLocation)) { - newState[location] = mergeMetaboxes(newState[location], metaboxes); - } - - return newState; - } - } - - return state; -} -/** - * Reducer returning the editing canvas device type. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - * - * @return {Object} Updated state. - */ - -function deviceType(state = 'Desktop', action) { - switch (action.type) { - case 'SET_PREVIEW_DEVICE_TYPE': - return action.deviceType; - } - - return state; -} -/** - * Reducer to set the block inserter panel open or closed. - * - * Note: this reducer interacts with the list view panel reducer - * to make sure that only one of the two panels is open at the same time. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - */ - -function blockInserterPanel(state = false, action) { - switch (action.type) { - case 'SET_IS_LIST_VIEW_OPENED': - return action.isOpen ? false : state; - - case 'SET_IS_INSERTER_OPENED': - return action.value; - } - - return state; -} -/** - * Reducer to set the list view panel open or closed. - * - * Note: this reducer interacts with the inserter panel reducer - * to make sure that only one of the two panels is open at the same time. - * - * @param {Object} state Current state. - * @param {Object} action Dispatched action. - */ - -function listViewPanel(state = false, action) { - switch (action.type) { - case 'SET_IS_INSERTER_OPENED': - return action.value ? false : state; - - case 'SET_IS_LIST_VIEW_OPENED': - return action.isOpen; - } - - return state; -} -/** - * Reducer tracking whether template editing is on or off. - * - * @param {boolean} state - * @param {Object} action - */ - -function isEditingTemplate(state = false, action) { - switch (action.type) { - case 'SET_IS_EDITING_TEMPLATE': - return action.value; - } - - return state; -} -/** - * Reducer tracking whether meta boxes are initialized. - * - * @param {boolean} state - * @param {Object} action - * - * @return {boolean} Updated state. - */ - - -function metaBoxesInitialized(state = false, action) { - switch (action.type) { - case 'META_BOXES_INITIALIZED': - return true; - } - - return state; -} - -const metaBoxes = (0,external_wp_data_namespaceObject.combineReducers)({ - isSaving: isSavingMetaBoxes, - locations: metaBoxLocations, - initialized: metaBoxesInitialized -}); -/* harmony default export */ var reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ - activeModal, - metaBoxes, - publishSidebarActive, - removedPanels, - deviceType, - blockInserterPanel, - listViewPanel, - isEditingTemplate -})); - -;// CONCATENATED MODULE: external ["wp","apiFetch"] -var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"]; -var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject); // EXTERNAL MODULE: ./node_modules/classnames/index.js var classnames = __webpack_require__(4403); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); @@ -941,6 +706,31 @@ function setFeatureDefaults(scope, defaults) { registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults); }; } +/** + * Returns an action object used in signalling that the user opened a modal. + * + * @param {string} name A string that uniquely identifies the modal. + * + * @return {Object} Action object. + */ + +function openModal(name) { + return { + type: 'OPEN_MODAL', + name + }; +} +/** + * Returns an action object signalling that the user closed a modal. + * + * @return {Object} Action object. + */ + +function closeModal() { + return { + type: 'CLOSE_MODAL' + }; +} ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js /** @@ -1013,6 +803,18 @@ const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelect }); return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName); }); +/** + * Returns true if a modal is active, or false otherwise. + * + * @param {Object} state Global application state. + * @param {string} modalName A string that uniquely identifies the modal. + * + * @return {boolean} Whether the modal is active. + */ + +function isModalActive(state, modalName) { + return state.activeModal === modalName; +} ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js /** @@ -1051,8 +853,29 @@ function complementaryAreas(state = {}, action) { return state; } -/* harmony default export */ var store_reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ - complementaryAreas +/** + * Reducer for storing the name of the open modal, or null if no modal is open. + * + * @param {Object} state Previous state. + * @param {Object} action Action object containing the `name` of the modal + * + * @return {Object} Updated state + */ + +function activeModal(state = null, action) { + switch (action.type) { + case 'OPEN_MODAL': + return action.name; + + case 'CLOSE_MODAL': + return null; + } + + return state; +} +/* harmony default export */ var reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ + complementaryAreas, + activeModal })); ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js @@ -1085,7 +908,7 @@ const STORE_NAME = 'core/interface'; */ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, { - reducer: store_reducer, + reducer: reducer, actions: actions_namespaceObject, selectors: selectors_namespaceObject }); // Once we build a more generic persistence plugin that works across types of stores @@ -2065,6 +1888,579 @@ function BaseOption({ +;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"] +var external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"]; +;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/config.js +/** + * WordPress dependencies + */ + +const textFormattingShortcuts = [{ + keyCombination: { + modifier: 'primary', + character: 'b' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text bold.') +}, { + keyCombination: { + modifier: 'primary', + character: 'i' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text italic.') +}, { + keyCombination: { + modifier: 'primary', + character: 'k' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Convert the selected text into a link.') +}, { + keyCombination: { + modifier: 'primaryShift', + character: 'k' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Remove a link.') +}, { + keyCombination: { + character: '[[' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Insert a link to a post or page.') +}, { + keyCombination: { + modifier: 'primary', + character: 'u' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Underline the selected text.') +}, { + keyCombination: { + modifier: 'access', + character: 'd' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Strikethrough the selected text.') +}, { + keyCombination: { + modifier: 'access', + character: 'x' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text inline code.') +}, { + keyCombination: { + modifier: 'access', + character: '0' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Convert the current heading to a paragraph.') +}, { + keyCombination: { + modifier: 'access', + character: '1-6' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Convert the current paragraph or heading to a heading of level 1 to 6.') +}]; + +;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/shortcut.js + + +/** + * WordPress dependencies + */ + + + +function KeyCombination({ + keyCombination, + forceAriaLabel +}) { + const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](keyCombination.character) : keyCombination.character; + const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](keyCombination.character) : keyCombination.character; + return (0,external_wp_element_namespaceObject.createElement)("kbd", { + className: "edit-post-keyboard-shortcut-help-modal__shortcut-key-combination", + "aria-label": forceAriaLabel || ariaLabel + }, (Array.isArray(shortcut) ? shortcut : [shortcut]).map((character, index) => { + if (character === '+') { + return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, { + key: index + }, character); + } + + return (0,external_wp_element_namespaceObject.createElement)("kbd", { + key: index, + className: "edit-post-keyboard-shortcut-help-modal__shortcut-key" + }, character); + })); +} + +function Shortcut({ + description, + keyCombination, + aliases = [], + ariaLabel +}) { + return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("div", { + className: "edit-post-keyboard-shortcut-help-modal__shortcut-description" + }, description), (0,external_wp_element_namespaceObject.createElement)("div", { + className: "edit-post-keyboard-shortcut-help-modal__shortcut-term" + }, (0,external_wp_element_namespaceObject.createElement)(KeyCombination, { + keyCombination: keyCombination, + forceAriaLabel: ariaLabel + }), aliases.map((alias, index) => (0,external_wp_element_namespaceObject.createElement)(KeyCombination, { + keyCombination: alias, + forceAriaLabel: ariaLabel, + key: index + })))); +} + +/* harmony default export */ var keyboard_shortcut_help_modal_shortcut = (Shortcut); + +;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js + + +/** + * WordPress dependencies + */ + + +/** + * Internal dependencies + */ + + + +function DynamicShortcut({ + name +}) { + const { + keyCombination, + description, + aliases + } = (0,external_wp_data_namespaceObject.useSelect)(select => { + const { + getShortcutKeyCombination, + getShortcutDescription, + getShortcutAliases + } = select(external_wp_keyboardShortcuts_namespaceObject.store); + return { + keyCombination: getShortcutKeyCombination(name), + aliases: getShortcutAliases(name), + description: getShortcutDescription(name) + }; + }, [name]); + + if (!keyCombination) { + return null; + } + + return (0,external_wp_element_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, { + keyCombination: keyCombination, + description: description, + aliases: aliases + }); +} + +/* harmony default export */ var dynamic_shortcut = (DynamicShortcut); + +;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/index.js + + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + + + + + +/** + * Internal dependencies + */ + + + + +const KEYBOARD_SHORTCUT_HELP_MODAL_NAME = 'edit-post/keyboard-shortcut-help'; + +const ShortcutList = ({ + shortcuts +}) => +/* + * Disable reason: The `list` ARIA role is redundant but + * Safari+VoiceOver won't announce the list otherwise. + */ + +/* eslint-disable jsx-a11y/no-redundant-roles */ +(0,external_wp_element_namespaceObject.createElement)("ul", { + className: "edit-post-keyboard-shortcut-help-modal__shortcut-list", + role: "list" +}, shortcuts.map((shortcut, index) => (0,external_wp_element_namespaceObject.createElement)("li", { + className: "edit-post-keyboard-shortcut-help-modal__shortcut", + key: index +}, typeof shortcut === 'string' ? (0,external_wp_element_namespaceObject.createElement)(dynamic_shortcut, { + name: shortcut +}) : (0,external_wp_element_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, { ...shortcut +})))) +/* eslint-enable jsx-a11y/no-redundant-roles */ +; + +const ShortcutSection = ({ + title, + shortcuts, + className +}) => (0,external_wp_element_namespaceObject.createElement)("section", { + className: classnames_default()('edit-post-keyboard-shortcut-help-modal__section', className) +}, !!title && (0,external_wp_element_namespaceObject.createElement)("h2", { + className: "edit-post-keyboard-shortcut-help-modal__section-title" +}, title), (0,external_wp_element_namespaceObject.createElement)(ShortcutList, { + shortcuts: shortcuts +})); + +const ShortcutCategorySection = ({ + title, + categoryName, + additionalShortcuts = [] +}) => { + const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => { + return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(categoryName); + }, [categoryName]); + return (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, { + title: title, + shortcuts: categoryShortcuts.concat(additionalShortcuts) + }); +}; + +function KeyboardShortcutHelpModal({ + isModalActive, + toggleModal +}) { + (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-post/keyboard-shortcuts', toggleModal); + + if (!isModalActive) { + return null; + } + + return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, { + className: "edit-post-keyboard-shortcut-help-modal", + title: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'), + closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close'), + onRequestClose: toggleModal + }, (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, { + className: "edit-post-keyboard-shortcut-help-modal__main-shortcuts", + shortcuts: ['core/edit-post/keyboard-shortcuts'] + }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, { + title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'), + categoryName: "global" + }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, { + title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'), + categoryName: "selection" + }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, { + title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'), + categoryName: "block", + additionalShortcuts: [{ + keyCombination: { + character: '/' + }, + description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'), + + /* translators: The forward-slash character. e.g. '/'. */ + ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash') + }] + }), (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, { + title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'), + shortcuts: textFormattingShortcuts + })); +} +/* harmony default export */ var keyboard_shortcut_help_modal = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => ({ + isModalActive: select(store).isModalActive(KEYBOARD_SHORTCUT_HELP_MODAL_NAME) +})), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, { + isModalActive +}) => { + const { + openModal, + closeModal + } = dispatch(store); + return { + toggleModal: () => isModalActive ? closeModal() : openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME) + }; +})])(KeyboardShortcutHelpModal)); + +;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js + + +/** + * WordPress dependencies + */ + + + + + +/** + * Internal dependencies + */ + + +function KeyboardShortcutsHelpMenuItem({ + openModal +}) { + return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, { + onClick: () => { + openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME); + }, + shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h') + }, (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')); +} +/* harmony default export */ var keyboard_shortcuts_help_menu_item = ((0,external_wp_data_namespaceObject.withDispatch)(dispatch => { + const { + openModal + } = dispatch(store); + return { + openModal + }; +})(KeyboardShortcutsHelpMenuItem)); + +;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js + + +/** + * WordPress dependencies + */ + + +const { + Fill: ToolsMoreMenuGroup, + Slot +} = (0,external_wp_components_namespaceObject.createSlotFill)('ToolsMoreMenuGroup'); + +ToolsMoreMenuGroup.Slot = ({ + fillProps +}) => (0,external_wp_element_namespaceObject.createElement)(Slot, { + fillProps: fillProps +}, fills => fills.length > 0 && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, { + label: (0,external_wp_i18n_namespaceObject.__)('Tools') +}, fills)); + +/* harmony default export */ var tools_more_menu_group = (ToolsMoreMenuGroup); + +;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/store/reducer.js +/** + * WordPress dependencies + */ + +/** + * Reducer storing the list of all programmatically removed panels. + * + * @param {Array} state Current state. + * @param {Object} action Action object. + * + * @return {Array} Updated state. + */ + +function removedPanels(state = [], action) { + switch (action.type) { + case 'REMOVE_PANEL': + if (!state.includes(action.panelName)) { + return [...state, action.panelName]; + } + + } + + return state; +} +function publishSidebarActive(state = false, action) { + switch (action.type) { + case 'OPEN_PUBLISH_SIDEBAR': + return true; + + case 'CLOSE_PUBLISH_SIDEBAR': + return false; + + case 'TOGGLE_PUBLISH_SIDEBAR': + return !state; + } + + return state; +} +/** + * Reducer keeping track of the meta boxes isSaving state. + * A "true" value means the meta boxes saving request is in-flight. + * + * + * @param {boolean} state Previous state. + * @param {Object} action Action Object. + * + * @return {Object} Updated state. + */ + +function isSavingMetaBoxes(state = false, action) { + switch (action.type) { + case 'REQUEST_META_BOX_UPDATES': + return true; + + case 'META_BOX_UPDATES_SUCCESS': + case 'META_BOX_UPDATES_FAILURE': + return false; + + default: + return state; + } +} + +function mergeMetaboxes(metaboxes = [], newMetaboxes) { + const mergedMetaboxes = [...metaboxes]; + + for (const metabox of newMetaboxes) { + const existing = mergedMetaboxes.findIndex(box => box.id === metabox.id); + + if (existing !== -1) { + mergedMetaboxes[existing] = metabox; + } else { + mergedMetaboxes.push(metabox); + } + } + + return mergedMetaboxes; +} +/** + * Reducer keeping track of the meta boxes per location. + * + * @param {boolean} state Previous state. + * @param {Object} action Action Object. + * + * @return {Object} Updated state. + */ + + +function metaBoxLocations(state = {}, action) { + switch (action.type) { + case 'SET_META_BOXES_PER_LOCATIONS': + { + const newState = { ...state + }; + + for (const [location, metaboxes] of Object.entries(action.metaBoxesPerLocation)) { + newState[location] = mergeMetaboxes(newState[location], metaboxes); + } + + return newState; + } + } + + return state; +} +/** + * Reducer returning the editing canvas device type. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + * + * @return {Object} Updated state. + */ + +function deviceType(state = 'Desktop', action) { + switch (action.type) { + case 'SET_PREVIEW_DEVICE_TYPE': + return action.deviceType; + } + + return state; +} +/** + * Reducer to set the block inserter panel open or closed. + * + * Note: this reducer interacts with the list view panel reducer + * to make sure that only one of the two panels is open at the same time. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + */ + +function blockInserterPanel(state = false, action) { + switch (action.type) { + case 'SET_IS_LIST_VIEW_OPENED': + return action.isOpen ? false : state; + + case 'SET_IS_INSERTER_OPENED': + return action.value; + } + + return state; +} +/** + * Reducer to set the list view panel open or closed. + * + * Note: this reducer interacts with the inserter panel reducer + * to make sure that only one of the two panels is open at the same time. + * + * @param {Object} state Current state. + * @param {Object} action Dispatched action. + */ + +function listViewPanel(state = false, action) { + switch (action.type) { + case 'SET_IS_INSERTER_OPENED': + return action.value ? false : state; + + case 'SET_IS_LIST_VIEW_OPENED': + return action.isOpen; + } + + return state; +} +/** + * Reducer tracking whether template editing is on or off. + * + * @param {boolean} state + * @param {Object} action + */ + +function isEditingTemplate(state = false, action) { + switch (action.type) { + case 'SET_IS_EDITING_TEMPLATE': + return action.value; + } + + return state; +} +/** + * Reducer tracking whether meta boxes are initialized. + * + * @param {boolean} state + * @param {Object} action + * + * @return {boolean} Updated state. + */ + + +function metaBoxesInitialized(state = false, action) { + switch (action.type) { + case 'META_BOXES_INITIALIZED': + return true; + } + + return state; +} + +const metaBoxes = (0,external_wp_data_namespaceObject.combineReducers)({ + isSaving: isSavingMetaBoxes, + locations: metaBoxLocations, + initialized: metaBoxesInitialized +}); +/* harmony default export */ var store_reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ + metaBoxes, + publishSidebarActive, + removedPanels, + deviceType, + blockInserterPanel, + listViewPanel, + isEditingTemplate +})); + +;// CONCATENATED MODULE: external ["wp","apiFetch"] +var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"]; +var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject); ;// CONCATENATED MODULE: external ["wp","a11y"] var external_wp_a11y_namespaceObject = window["wp"]["a11y"]; ;// CONCATENATED MODULE: external ["wp","coreData"] @@ -2102,6 +2498,7 @@ const getMetaBoxContainer = location => { + /** * Internal dependencies */ @@ -2127,28 +2524,40 @@ const closeGeneralSidebar = () => ({ /** * Returns an action object used in signalling that the user opened a modal. * + * @deprecated since WP 6.3 use `core/interface` store's action with the same name instead. + * + * * @param {string} name A string that uniquely identifies the modal. * * @return {Object} Action object. */ -function openModal(name) { - return { - type: 'OPEN_MODAL', - name - }; -} +const actions_openModal = name => ({ + registry +}) => { + external_wp_deprecated_default()("select( 'core/edit-post' ).openModal( name )", { + since: '6.3', + alternative: "select( 'core/interface').openModal( name )" + }); + return registry.dispatch(store).openModal(name); +}; /** * Returns an action object signalling that the user closed a modal. * + * @deprecated since WP 6.3 use `core/interface` store's action with the same name instead. + * * @return {Object} Action object. */ -function closeModal() { - return { - type: 'CLOSE_MODAL' - }; -} +const actions_closeModal = () => ({ + registry +}) => { + external_wp_deprecated_default()("select( 'core/edit-post' ).closeModal()", { + since: '6.3', + alternative: "select( 'core/interface').closeModal()" + }); + return registry.dispatch(store).closeModal(); +}; /** * Returns an action object used in signalling that the user opened the publish * sidebar. @@ -3110,15 +3519,21 @@ const isEditorPanelOpened = (0,external_wp_data_namespaceObject.createRegistrySe /** * Returns true if a modal is active, or false otherwise. * + * @deprecated since WP 6.3 use `core/interface` store's selector with the same name instead. + * * @param {Object} state Global application state. * @param {string} modalName A string that uniquely identifies the modal. * * @return {boolean} Whether the modal is active. */ -function isModalActive(state, modalName) { - return state.activeModal === modalName; -} +const selectors_isModalActive = (0,external_wp_data_namespaceObject.createRegistrySelector)(select => (state, modalName) => { + external_wp_deprecated_default()(`select( 'core/edit-post' ).isModalActive`, { + since: '6.3', + alternative: `select( 'core/interface' ).isModalActive` + }); + return !!select(store).isModalActive(modalName); +}); /** * Returns whether the given feature is enabled or not. * @@ -3379,69 +3794,12 @@ const VIEW_AS_PREVIEW_LINK_SELECTOR = '#wp-admin-bar-preview a'; */ const store_store = (0,external_wp_data_namespaceObject.createReduxStore)(constants_STORE_NAME, { - reducer: reducer, + reducer: store_reducer, actions: store_actions_namespaceObject, selectors: store_selectors_namespaceObject }); (0,external_wp_data_namespaceObject.register)(store_store); -;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/keyboard-shortcuts-help-menu-item/index.js - - -/** - * WordPress dependencies - */ - - - - -/** - * Internal dependencies - */ - - -function KeyboardShortcutsHelpMenuItem({ - openModal -}) { - return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, { - onClick: () => { - openModal('edit-post/keyboard-shortcut-help'); - }, - shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h') - }, (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')); -} -/* harmony default export */ var keyboard_shortcuts_help_menu_item = ((0,external_wp_data_namespaceObject.withDispatch)(dispatch => { - const { - openModal - } = dispatch(store_store); - return { - openModal - }; -})(KeyboardShortcutsHelpMenuItem)); - -;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/tools-more-menu-group/index.js - - -/** - * WordPress dependencies - */ - - -const { - Fill: ToolsMoreMenuGroup, - Slot -} = (0,external_wp_components_namespaceObject.createSlotFill)('ToolsMoreMenuGroup'); - -ToolsMoreMenuGroup.Slot = ({ - fillProps -}) => (0,external_wp_element_namespaceObject.createElement)(Slot, { - fillProps: fillProps -}, fills => fills.length > 0 && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, { - label: (0,external_wp_i18n_namespaceObject.__)('Tools') -}, fills)); - -/* harmony default export */ var tools_more_menu_group = (ToolsMoreMenuGroup); - ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/welcome-guide-menu-item/index.js @@ -3510,8 +3868,6 @@ function WelcomeGuideMenuItem() { }); -;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"] -var external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"]; ;// CONCATENATED MODULE: external ["wp","commands"] var external_wp_commands_namespaceObject = window["wp"]["commands"]; ;// CONCATENATED MODULE: external ["wp","coreCommands"] @@ -4142,302 +4498,6 @@ function KeyboardShortcuts() { /* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts); -;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/config.js -/** - * WordPress dependencies - */ - -const textFormattingShortcuts = [{ - keyCombination: { - modifier: 'primary', - character: 'b' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text bold.') -}, { - keyCombination: { - modifier: 'primary', - character: 'i' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text italic.') -}, { - keyCombination: { - modifier: 'primary', - character: 'k' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Convert the selected text into a link.') -}, { - keyCombination: { - modifier: 'primaryShift', - character: 'k' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Remove a link.') -}, { - keyCombination: { - character: '[[' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Insert a link to a post or page.') -}, { - keyCombination: { - modifier: 'primary', - character: 'u' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Underline the selected text.') -}, { - keyCombination: { - modifier: 'access', - character: 'd' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Strikethrough the selected text.') -}, { - keyCombination: { - modifier: 'access', - character: 'x' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Make the selected text inline code.') -}, { - keyCombination: { - modifier: 'access', - character: '0' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Convert the current heading to a paragraph.') -}, { - keyCombination: { - modifier: 'access', - character: '1-6' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Convert the current paragraph or heading to a heading of level 1 to 6.') -}]; - -;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/shortcut.js - - -/** - * WordPress dependencies - */ - - - -function KeyCombination({ - keyCombination, - forceAriaLabel -}) { - const shortcut = keyCombination.modifier ? external_wp_keycodes_namespaceObject.displayShortcutList[keyCombination.modifier](keyCombination.character) : keyCombination.character; - const ariaLabel = keyCombination.modifier ? external_wp_keycodes_namespaceObject.shortcutAriaLabel[keyCombination.modifier](keyCombination.character) : keyCombination.character; - return (0,external_wp_element_namespaceObject.createElement)("kbd", { - className: "edit-post-keyboard-shortcut-help-modal__shortcut-key-combination", - "aria-label": forceAriaLabel || ariaLabel - }, (Array.isArray(shortcut) ? shortcut : [shortcut]).map((character, index) => { - if (character === '+') { - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, { - key: index - }, character); - } - - return (0,external_wp_element_namespaceObject.createElement)("kbd", { - key: index, - className: "edit-post-keyboard-shortcut-help-modal__shortcut-key" - }, character); - })); -} - -function Shortcut({ - description, - keyCombination, - aliases = [], - ariaLabel -}) { - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("div", { - className: "edit-post-keyboard-shortcut-help-modal__shortcut-description" - }, description), (0,external_wp_element_namespaceObject.createElement)("div", { - className: "edit-post-keyboard-shortcut-help-modal__shortcut-term" - }, (0,external_wp_element_namespaceObject.createElement)(KeyCombination, { - keyCombination: keyCombination, - forceAriaLabel: ariaLabel - }), aliases.map((alias, index) => (0,external_wp_element_namespaceObject.createElement)(KeyCombination, { - keyCombination: alias, - forceAriaLabel: ariaLabel, - key: index - })))); -} - -/* harmony default export */ var keyboard_shortcut_help_modal_shortcut = (Shortcut); - -;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js - - -/** - * WordPress dependencies - */ - - -/** - * Internal dependencies - */ - - - -function DynamicShortcut({ - name -}) { - const { - keyCombination, - description, - aliases - } = (0,external_wp_data_namespaceObject.useSelect)(select => { - const { - getShortcutKeyCombination, - getShortcutDescription, - getShortcutAliases - } = select(external_wp_keyboardShortcuts_namespaceObject.store); - return { - keyCombination: getShortcutKeyCombination(name), - aliases: getShortcutAliases(name), - description: getShortcutDescription(name) - }; - }, [name]); - - if (!keyCombination) { - return null; - } - - return (0,external_wp_element_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, { - keyCombination: keyCombination, - description: description, - aliases: aliases - }); -} - -/* harmony default export */ var dynamic_shortcut = (DynamicShortcut); - -;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/keyboard-shortcut-help-modal/index.js - - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - - - - -/** - * Internal dependencies - */ - - - - - -const MODAL_NAME = 'edit-post/keyboard-shortcut-help'; - -const ShortcutList = ({ - shortcuts -}) => -/* - * Disable reason: The `list` ARIA role is redundant but - * Safari+VoiceOver won't announce the list otherwise. - */ - -/* eslint-disable jsx-a11y/no-redundant-roles */ -(0,external_wp_element_namespaceObject.createElement)("ul", { - className: "edit-post-keyboard-shortcut-help-modal__shortcut-list", - role: "list" -}, shortcuts.map((shortcut, index) => (0,external_wp_element_namespaceObject.createElement)("li", { - className: "edit-post-keyboard-shortcut-help-modal__shortcut", - key: index -}, typeof shortcut === 'string' ? (0,external_wp_element_namespaceObject.createElement)(dynamic_shortcut, { - name: shortcut -}) : (0,external_wp_element_namespaceObject.createElement)(keyboard_shortcut_help_modal_shortcut, { ...shortcut -})))) -/* eslint-enable jsx-a11y/no-redundant-roles */ -; - -const ShortcutSection = ({ - title, - shortcuts, - className -}) => (0,external_wp_element_namespaceObject.createElement)("section", { - className: classnames_default()('edit-post-keyboard-shortcut-help-modal__section', className) -}, !!title && (0,external_wp_element_namespaceObject.createElement)("h2", { - className: "edit-post-keyboard-shortcut-help-modal__section-title" -}, title), (0,external_wp_element_namespaceObject.createElement)(ShortcutList, { - shortcuts: shortcuts -})); - -const ShortcutCategorySection = ({ - title, - categoryName, - additionalShortcuts = [] -}) => { - const categoryShortcuts = (0,external_wp_data_namespaceObject.useSelect)(select => { - return select(external_wp_keyboardShortcuts_namespaceObject.store).getCategoryShortcuts(categoryName); - }, [categoryName]); - return (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, { - title: title, - shortcuts: categoryShortcuts.concat(additionalShortcuts) - }); -}; - -function KeyboardShortcutHelpModal({ - isModalActive, - toggleModal -}) { - (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-post/keyboard-shortcuts', toggleModal); - - if (!isModalActive) { - return null; - } - - return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, { - className: "edit-post-keyboard-shortcut-help-modal", - title: (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts'), - closeButtonLabel: (0,external_wp_i18n_namespaceObject.__)('Close'), - onRequestClose: toggleModal - }, (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, { - className: "edit-post-keyboard-shortcut-help-modal__main-shortcuts", - shortcuts: ['core/edit-post/keyboard-shortcuts'] - }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, { - title: (0,external_wp_i18n_namespaceObject.__)('Global shortcuts'), - categoryName: "global" - }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, { - title: (0,external_wp_i18n_namespaceObject.__)('Selection shortcuts'), - categoryName: "selection" - }), (0,external_wp_element_namespaceObject.createElement)(ShortcutCategorySection, { - title: (0,external_wp_i18n_namespaceObject.__)('Block shortcuts'), - categoryName: "block", - additionalShortcuts: [{ - keyCombination: { - character: '/' - }, - description: (0,external_wp_i18n_namespaceObject.__)('Change the block type after adding a new paragraph.'), - - /* translators: The forward-slash character. e.g. '/'. */ - ariaLabel: (0,external_wp_i18n_namespaceObject.__)('Forward-slash') - }] - }), (0,external_wp_element_namespaceObject.createElement)(ShortcutSection, { - title: (0,external_wp_i18n_namespaceObject.__)('Text formatting'), - shortcuts: textFormattingShortcuts - })); -} -/* harmony default export */ var keyboard_shortcut_help_modal = ((0,external_wp_compose_namespaceObject.compose)([(0,external_wp_data_namespaceObject.withSelect)(select => ({ - isModalActive: select(store_store).isModalActive(MODAL_NAME) -})), (0,external_wp_data_namespaceObject.withDispatch)((dispatch, { - isModalActive -}) => { - const { - openModal, - closeModal - } = dispatch(store_store); - return { - toggleModal: () => isModalActive ? closeModal() : openModal(MODAL_NAME) - }; -})])(KeyboardShortcutHelpModal)); - ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-custom-fields.js @@ -4938,12 +4998,12 @@ function BlockManager({ -const preferences_modal_MODAL_NAME = 'edit-post/preferences'; +const PREFERENCES_MODAL_NAME = 'edit-post/preferences'; function EditPostPreferencesModal() { const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium'); const { closeModal - } = (0,external_wp_data_namespaceObject.useDispatch)(store_store); + } = (0,external_wp_data_namespaceObject.useDispatch)(store); const [isModalActive, showBlockBreadcrumbsOption] = (0,external_wp_data_namespaceObject.useSelect)(select => { const { getEditorSettings @@ -4952,7 +5012,7 @@ function EditPostPreferencesModal() { getEditorMode, isFeatureActive } = select(store_store); - const modalActive = select(store_store).isModalActive(preferences_modal_MODAL_NAME); + const modalActive = select(store).isModalActive(PREFERENCES_MODAL_NAME); const mode = getEditorMode(); const isRichEditingEnabled = getEditorSettings().richEditingEnabled; const isDistractionFreeEnabled = isFeatureActive('distractionFree'); @@ -5596,6 +5656,7 @@ function ModeSwitcher() { + /** * Internal dependencies */ @@ -5604,10 +5665,10 @@ function ModeSwitcher() { function PreferencesMenuItem() { const { openModal - } = (0,external_wp_data_namespaceObject.useDispatch)(store_store); + } = (0,external_wp_data_namespaceObject.useDispatch)(store); return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, { onClick: () => { - openModal('edit-post/preferences'); + openModal(PREFERENCES_MODAL_NAME); } }, (0,external_wp_i18n_namespaceObject.__)('Preferences')); } @@ -9174,6 +9235,21 @@ const code = (0,external_wp_element_namespaceObject.createElement)(external_wp_p })); /* harmony default export */ var library_code = (code); +;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-close.js + + +/** + * WordPress dependencies + */ + +const keyboardClose = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { + d: "M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z" +})); +/* harmony default export */ var keyboard_close = (keyboardClose); + ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/hooks/commands/use-common-commands.js /** * WordPress dependencies @@ -9189,12 +9265,17 @@ const code = (0,external_wp_element_namespaceObject.createElement)(external_wp_p */ + + function useCommonCommands() { const { openGeneralSidebar, closeGeneralSidebar, switchEditorMode } = (0,external_wp_data_namespaceObject.useDispatch)(store_store); + const { + openModal + } = (0,external_wp_data_namespaceObject.useDispatch)(store); const { editorMode, activeSidebar @@ -9281,6 +9362,22 @@ function useCommonCommands() { close(); } }); + (0,external_wp_commands_namespaceObject.useCommand)({ + name: 'core/open-preferences', + label: (0,external_wp_i18n_namespaceObject.__)('Open editor preferences'), + icon: library_cog, + callback: () => { + openModal(PREFERENCES_MODAL_NAME); + } + }); + (0,external_wp_commands_namespaceObject.useCommand)({ + name: 'core/open-shortcut-help', + label: (0,external_wp_i18n_namespaceObject.__)('Open keyboard shortcuts'), + icon: keyboard_close, + callback: () => { + openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME); + } + }); } ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/editor.js diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js index 4075ac3af1..fea8772fc5 100644 --- a/wp-includes/js/dist/edit-post.min.js +++ b/wp-includes/js/dist/edit-post.min.js @@ -4,4 +4,4 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;th.MediaUpload));var _=window.wp.components,E=window.wp.blockEditor,b=window.wp.i18n,f=window.wp.compose;const v=(0,f.compose)((0,u.withSelect)(((e,t)=>{if((0,s.hasBlockSupport)(t.name,"multiple",!0))return{};const n=e(E.store).getBlocks().find((({name:e})=>t.name===e));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),(0,u.withDispatch)(((e,{originalBlockClientId:t})=>({selectFirst:()=>e(E.store).selectBlock(t)})))),y=(0,f.createHigherOrderComponent)((e=>v((({originalBlockClientId:t,selectFirst:n,...o})=>{if(!t)return(0,l.createElement)(e,{...o});const a=(0,s.getBlockType)(o.name),r=function(e){const t=(0,s.findTransform)((0,s.getBlockTransforms)("to",e),(({type:e,blocks:t})=>"block"===e&&1===t.length));if(!t)return null;return(0,s.getBlockType)(t.blocks[0])}(o.name);return[(0,l.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},(0,l.createElement)(e,{key:"block-edit",...o})),(0,l.createElement)(E.Warning,{key:"multiple-use-warning",actions:[(0,l.createElement)(_.Button,{key:"find-original",variant:"secondary",onClick:n},(0,b.__)("Find original")),(0,l.createElement)(_.Button,{key:"remove",variant:"secondary",onClick:()=>o.onReplace([])},(0,b.__)("Remove")),r&&(0,l.createElement)(_.Button,{key:"transform",variant:"secondary",onClick:()=>o.onReplace((0,s.createBlock)(r.name,o.attributes))},(0,b.__)("Transform into:")," ",r.title)]},(0,l.createElement)("strong",null,a?.title,": "),(0,b.__)("This block can only be used once."))]}))),"withMultipleValidation");(0,m.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",y);var w=window.wp.primitives;var S=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),k=window.wp.plugins,P=window.wp.url,C=window.wp.notices,T=window.wp.editor;function x(){const{createNotice:e}=(0,u.useDispatch)(C.store),t=(0,u.useSelect)((e=>()=>e(T.store).getEditedPostAttribute("content")),[]);const n=(0,f.useCopyToClipboard)(t,(function(){e("info",(0,b.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(_.MenuItem,{ref:n},(0,b.__)("Copy all blocks"))}var B=window.wp.keycodes;function M(e=[],t){const n=[...e];for(const e of t){const t=n.findIndex((t=>t.id===e.id));-1!==t?n[t]=e:n.push(e)}return n}const I=(0,u.combineReducers)({isSaving:function(e=!1,t){switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":case"META_BOX_UPDATES_FAILURE":return!1;default:return e}},locations:function(e={},t){if("SET_META_BOXES_PER_LOCATIONS"===t.type){const n={...e};for(const[e,o]of Object.entries(t.metaBoxesPerLocation))n[e]=M(n[e],o);return n}return e},initialized:function(e=!1,t){return"META_BOXES_INITIALIZED"===t.type||e}});var N=(0,u.combineReducers)({activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:I,publishSidebarActive:function(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(e=[],t){if("REMOVE_PANEL"===t.type)if(!e.includes(t.panelName))return[...e,t.panelName];return e},deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},isEditingTemplate:function(e=!1,t){return"SET_IS_EDITING_TEMPLATE"===t.type?t.value:e}}),A=window.wp.apiFetch,D=n.n(A),L=n(4403),V=n.n(L);var O=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var F=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));var R=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),H=window.wp.viewport;var G=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const U=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),z=(e,t)=>({registry:n,dispatch:o})=>{if(!t)return;n.select(p.store).get(e,"isComplementaryAreaVisible")||n.dispatch(p.store).set(e,"isComplementaryAreaVisible",!0),o({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},$=e=>({registry:t})=>{t.select(p.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(p.store).set(e,"isComplementaryAreaVisible",!1)},W=(e,t)=>({registry:n})=>{if(!t)return;const o=n.select(p.store).get(e,"pinnedItems");!0!==o?.[t]&&n.dispatch(p.store).set(e,"pinnedItems",{...o,[t]:!0})},q=(e,t)=>({registry:n})=>{if(!t)return;const o=n.select(p.store).get(e,"pinnedItems");n.dispatch(p.store).set(e,"pinnedItems",{...o,[t]:!1})};function Z(e,t){return function({registry:n}){d()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(p.store).toggle(e,t)}}function j(e,t,n){return function({registry:o}){d()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),o.dispatch(p.store).set(e,t,!!n)}}function K(e,t){return function({registry:n}){d()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(p.store).setDefaults(e,t)}}const Y=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get(n,"isComplementaryAreaVisible");if(void 0!==o)return!1===o?null:t?.complementaryAreas?.[n]})),X=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get(n,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[n];return o&&void 0===a})),Q=(0,u.createRegistrySelector)((e=>(t,n,o)=>{var a;return null===(a=e(p.store).get(n,"pinnedItems")?.[o])||void 0===a||a})),J=(0,u.createRegistrySelector)((e=>(t,n,o)=>(d()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(p.store).get(n,o))));var ee=(0,u.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return e[n]?e:{...e,[n]:o}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return{...e,[n]:o}}}return e}});const te=(0,u.createReduxStore)("core/interface",{reducer:ee,actions:e,selectors:t});(0,u.register)(te);var ne=(0,k.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var oe=ne((function({as:e=_.Button,scope:t,identifier:n,icon:o,selectedIcon:a,name:r,...s}){const i=e,c=(0,u.useSelect)((e=>e(te).getActiveComplementaryArea(t)===n),[n]),{enableComplementaryArea:d,disableComplementaryArea:m}=(0,u.useDispatch)(te);return(0,l.createElement)(i,{icon:a&&c?a:o,onClick:()=>{c?m(t):d(t,n)},...s})}));var ae=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:o})=>{const a=(0,l.createElement)(oe,{icon:G,...o});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),a),(0,l.createElement)("div",{className:V()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,a))};const re=()=>{};function le({name:e,as:t=_.Button,onClick:n,...o}){return(0,l.createElement)(_.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||re)(...t),(e||re)(...t)}:void 0,...o})))}le.Slot=function({name:e,as:t=_.ButtonGroup,fillProps:n={},bubblesVirtually:o,...a}){return(0,l.createElement)(_.Slot,{name:e,bubblesVirtually:o,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const o=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...a},o)}))};var se=le;const ie=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(_.MenuItem,{...n});function ce({scope:e,target:t,__unstableExplicitMenuItem:n,...o}){return(0,l.createElement)(oe,{as:o=>(0,l.createElement)(se,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:ie,name:`${e}/plugin-more-menu`,...o}),role:"menuitemcheckbox",selectedIcon:O,name:t,scope:e,...o})}function de({scope:e,...t}){return(0,l.createElement)(_.Fill,{name:`PinnedItems/${e}`,...t})}de.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(_.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:V()(t,"interface-pinned-items")},e)))};var ue=de;function me({scope:e,children:t,className:n}){return(0,l.createElement)(_.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{className:n},t))}const pe=ne((function({children:e,className:t,closeLabel:n=(0,b.__)("Close plugin"),identifier:o,header:a,headerClassName:r,icon:s,isPinnable:i=!0,panelClassName:c,scope:d,name:m,smallScreenTitle:p,title:g,toggleShortcut:h,isActiveByDefault:E,showIconLabels:f=!1}){const{isLoading:v,isActive:y,isPinned:w,activeArea:S,isSmall:k,isLarge:P}=(0,u.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:a}=e(te),r=t(d);return{isLoading:n(d),isActive:r===o,isPinned:a(d,o),activeArea:r,isSmall:e(H.store).isViewportMatch("< medium"),isLarge:e(H.store).isViewportMatch("large")}}),[o,d]);!function(e,t,n,o,a){const r=(0,l.useRef)(!1),s=(0,l.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:c}=(0,u.useDispatch)(te);(0,l.useEffect)((()=>{o&&a&&!r.current?(c(e),s.current=!0):s.current&&!a&&r.current?(s.current=!1,i(e,t)):s.current&&n&&n!==t&&(s.current=!1),a!==r.current&&(r.current=a)}),[o,a,e,t,n])}(d,o,S,y,k);const{enableComplementaryArea:C,disableComplementaryArea:T,pinItem:x,unpinItem:B}=(0,u.useDispatch)(te);return(0,l.useEffect)((()=>{E&&void 0===S&&!k?C(d,o):void 0===S&&k&&T(d,o)}),[S,E,d,o,k]),(0,l.createElement)(l.Fragment,null,i&&(0,l.createElement)(ue,{scope:d},w&&(0,l.createElement)(oe,{scope:d,identifier:o,isPressed:y&&(!f||P),"aria-expanded":y,"aria-disabled":v,label:g,icon:f?O:s,showTooltip:!f,variant:f?"tertiary":void 0})),m&&i&&(0,l.createElement)(ce,{target:m,scope:d,icon:s},g),y&&(0,l.createElement)(me,{className:V()("interface-complementary-area",t),scope:d},(0,l.createElement)(ae,{className:r,closeLabel:n,onClose:()=>T(d),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:h,scope:d,identifier:o}},a||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,g),i&&(0,l.createElement)(_.Button,{className:"interface-complementary-area__pin-unpin-item",icon:w?F:R,label:w?(0,b.__)("Unpin from toolbar"):(0,b.__)("Pin to toolbar"),onClick:()=>(w?B:x)(d,o),isPressed:w,"aria-expanded":w}))),(0,l.createElement)(_.Panel,{className:c},e)))}));pe.Slot=function({scope:e,...t}){return(0,l.createElement)(_.Slot,{name:`ComplementaryArea/${e}`,...t})};var ge=pe;var he=({isActive:e})=>((0,l.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,l.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);function _e({children:e,className:t,ariaLabel:n,as:o="div",...a}){return(0,l.createElement)(o,{className:V()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...a},e)}const Ee={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var be=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:o,sidebar:a,secondarySidebar:r,notices:s,content:i,actions:c,labels:d,className:u,enableRegionNavigation:m=!0,shortcuts:p},g){const h=(0,_.__unstableUseNavigateRegions)(p);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const E={...{header:(0,b.__)("Header"),body:(0,b.__)("Content"),secondarySidebar:(0,b.__)("Block Library"),sidebar:(0,b.__)("Settings"),actions:(0,b.__)("Publish"),footer:(0,b.__)("Footer")},...d};return(0,l.createElement)("div",{...m?h:{},ref:(0,f.useMergeRefs)([g,m?h.ref:void 0]),className:V()(u,"interface-interface-skeleton",h.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(_e,{as:_.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":E.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:Ee,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},o),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!r&&(0,l.createElement)(_e,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:E.secondarySidebar},r),!!s&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},s),(0,l.createElement)(_e,{className:"interface-interface-skeleton__content",ariaLabel:E.body},i),!!a&&(0,l.createElement)(_e,{className:"interface-interface-skeleton__sidebar",ariaLabel:E.sidebar},a),!!c&&(0,l.createElement)(_e,{className:"interface-interface-skeleton__actions",ariaLabel:E.actions},c))),!!t&&(0,l.createElement)(_e,{className:"interface-interface-skeleton__footer",ariaLabel:E.footer},t))}));var fe=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function ve({as:e=_.DropdownMenu,className:t,label:n=(0,b.__)("Options"),popoverProps:o,toggleProps:a,children:r}){return(0,l.createElement)(e,{className:V()("interface-more-menu-dropdown",t),icon:fe,label:n,popoverProps:{placement:"bottom-end",...o,className:V()("interface-more-menu-dropdown__content",o?.className)},toggleProps:{tooltipPosition:"bottom",...a}},(e=>r(e)))}function ye({closeModal:e,children:t}){return(0,l.createElement)(_.Modal,{className:"interface-preferences-modal",title:(0,b.__)("Preferences"),onRequestClose:e},t)}var we=function({icon:e,size:t=24,...n}){return(0,l.cloneElement)(e,{width:t,height:t,...n})};var Se=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var ke=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const Pe="preferences-menu";function Ce({sections:e}){const t=(0,f.useViewportMatch)("medium"),[n,o]=(0,l.useState)(Pe),{tabs:a,sectionsContentMap:r}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:o})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=o,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),s=(0,l.useCallback)((e=>r[e.name]||null),[r]);let i;return i=t?(0,l.createElement)(_.TabPanel,{className:"interface-preferences__tabs",tabs:a,initialTabName:n!==Pe?n:void 0,onSelect:o,orientation:"vertical"},s):(0,l.createElement)(_.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(_.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(_.CardBody,null,(0,l.createElement)(_.__experimentalItemGroup,null,a.map((e=>(0,l.createElement)(_.__experimentalNavigatorButton,{key:e.name,path:e.name,as:_.__experimentalItem,isAction:!0},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(_.__experimentalTruncate,null,e.title)),(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(we,{icon:(0,b.isRTL)()?Se:ke})))))))))),e.length&&e.map((e=>(0,l.createElement)(_.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(_.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(_.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(_.__experimentalNavigatorBackButton,{icon:(0,b.isRTL)()?ke:Se,"aria-label":(0,b.__)("Navigate to the previous view")}),(0,l.createElement)(_.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(_.CardBody,null,e.content)))))),i}var Te=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var xe=function({help:e,label:t,isChecked:n,onChange:o,children:a}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(_.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:o}),a)},Be=window.wp.a11y,Me=window.wp.coreData;const Ie=e=>({registry:t})=>t.dispatch(te).enableComplementaryArea(Ht.name,e),Ne=()=>({registry:e})=>e.dispatch(te).disableComplementaryArea(Ht.name);function Ae(e){return{type:"OPEN_MODAL",name:e}}function De(){return{type:"CLOSE_MODAL"}}function Le(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Ve(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Oe(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}const Fe=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","inactivePanels"))&&void 0!==n?n:[];let a;a=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(p.store).set("core/edit-post","inactivePanels",a)},Re=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","openPanels"))&&void 0!==n?n:[];let a;a=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(p.store).set("core/edit-post","openPanels",a)};function He(e){return{type:"REMOVE_PANEL",panelName:e}}const Ge=e=>({registry:t})=>t.dispatch(p.store).toggle("core/edit-post",e),Ue=e=>({registry:t})=>{t.dispatch(p.store).set("core/edit-post","editorMode",e),"visual"!==e&&t.dispatch(E.store).clearSelectedBlock();const n="visual"===e?(0,b.__)("Visual editor selected"):(0,b.__)("Code editor selected");(0,Be.speak)(n,"assertive")},ze=e=>({registry:t})=>{const n=t.select(te).isItemPinned("core/edit-post",e);t.dispatch(te)[n?"unpinItem":"pinItem"]("core/edit-post",e)},$e=(e,t)=>({registry:n})=>{var o;if(!e)return;const a=null!==(o=n.select(p.store).get("core/edit-post","preferredStyleVariations"))&&void 0!==o?o:{};if(t)n.dispatch(p.store).set("core/edit-post","preferredStyleVariations",{...a,[e]:t});else{const t={...a};delete t[e],n.dispatch(p.store).set("core/edit-post","preferredStyleVariations",t)}},We=e=>({registry:t})=>{var n;const o=(null!==(n=t.select(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==n?n:[]).filter((t=>!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(p.store).set("core/edit-post","hiddenBlockTypes",o)},qe=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==n?n:[],a=new Set([...o,...Array.isArray(e)?e:[e]]);t.dispatch(p.store).set("core/edit-post","hiddenBlockTypes",[...a])};function Ze(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}const je=()=>async({registry:e,select:t,dispatch:n})=>{n({type:"REQUEST_META_BOX_UPDATES"}),window.tinyMCE&&window.tinyMCE.triggerSave();const o=e.select(T.store).getCurrentPost(),a=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),r=[new window.FormData(document.querySelector(".metabox-base-form")),...t.getActiveMetaBoxLocations().map((e=>new window.FormData((e=>document.querySelector(`.edit-post-meta-boxes-area.is-${e} .metabox-location-${e}`)||document.querySelector("#metaboxes .metabox-location-"+e))(e))))].reduce(((e,t)=>{for(const[n,o]of t)e.append(n,o);return e}),new window.FormData);a.forEach((([e,t])=>r.append(e,t)));try{await D()({url:window._wpMetaBoxUrl,method:"POST",body:r,parse:!1}),n.metaBoxUpdatesSuccess()}catch{n.metaBoxUpdatesFailure()}};function Ke(){return{type:"META_BOX_UPDATES_SUCCESS"}}function Ye(){return{type:"META_BOX_UPDATES_FAILURE"}}function Xe(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function Qe(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function Je(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function et(e){return{type:"SET_IS_EDITING_TEMPLATE",value:e}}const tt=(e=!1)=>({registry:t,select:n,dispatch:o})=>{o(et(!0));if(!n.isFeatureActive("welcomeGuideTemplate")){const n=e?(0,b.__)("Custom template created. You're in template mode now."):(0,b.__)("Editing template. Changes made here affect all posts and pages that use the template.");t.dispatch(C.store).createSuccessNotice(n,{type:"snackbar"})}},nt=e=>async({registry:t})=>{const n=await t.dispatch(Me.store).saveEntityRecord("postType","wp_template",e),o=t.select(T.store).getCurrentPost();t.dispatch(Me.store).editEntityRecord("postType",o.type,o.id,{template:n.slug})};let ot=!1;const at=()=>({registry:e,select:t,dispatch:n})=>{if(!e.select(T.store).__unstableIsEditorReady())return;if(ot)return;const o=e.select(T.store).getCurrentPostType();window.postboxes.page!==o&&window.postboxes.add_postbox_toggles(o),ot=!0;let a=e.select(T.store).isSavingPost(),r=e.select(T.store).isAutosavingPost();e.subscribe((async()=>{const o=e.select(T.store).isSavingPost(),l=e.select(T.store).isAutosavingPost(),s=a&&!r&&!o&&t.hasMetaBoxes();a=o,r=l,s&&await n.requestMetaBoxUpdates()})),n({type:"META_BOXES_INITIALIZED"})};var rt={};function lt(e){return[e]}function st(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o()=>{var t;return null!==(t=e(p.store).get("core/edit-post","editorMode"))&&void 0!==t?t:"visual"})),mt=(0,u.createRegistrySelector)((e=>()=>{const t=e(te).getActiveComplementaryArea("core/edit-post");return["edit-post/document","edit-post/block"].includes(t)})),pt=(0,u.createRegistrySelector)((e=>()=>{const t=e(te).getActiveComplementaryArea("core/edit-post");return!!t&&!["edit-post/document","edit-post/block"].includes(t)})),gt=(0,u.createRegistrySelector)((e=>()=>e(te).getActiveComplementaryArea("core/edit-post")));const ht=(0,u.createRegistrySelector)((e=>()=>{d()("select( 'core/edit-post' ).getPreferences",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const t=["hiddenBlockTypes","editorMode","preferredStyleVariations"].reduce(((t,n)=>({...t,[n]:e(p.store).get("core/edit-post",n)})),{}),n=function(e,t){var n;const o=e?.reduce(((e,t)=>({...e,[t]:{enabled:!1}})),{}),a=t?.reduce(((e,t)=>{const n=e?.[t];return{...e,[t]:{...n,opened:!0}}}),null!=o?o:{});return null!==(n=null!=a?a:o)&&void 0!==n?n:dt}(e(p.store).get("core/edit-post","inactivePanels"),e(p.store).get("core/edit-post","openPanels"));return{...t,panels:n}}));function _t(e,t,n){d()("select( 'core/edit-post' ).getPreference",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const o=ht(e)[t];return void 0===o?n:o}const Et=(0,u.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==t?t:ct}));function bt(e){return e.publishSidebarActive}function ft(e,t){return e.removedPanels.includes(t)}const vt=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get("core/edit-post","inactivePanels");return!ft(t,n)&&!o?.includes(n)})),yt=(0,u.createRegistrySelector)((e=>(t,n)=>!!e(p.store).get("core/edit-post","openPanels")?.includes(n)));function wt(e,t){return e.activeModal===t}const St=(0,u.createRegistrySelector)((e=>(t,n)=>!!e(p.store).get("core/edit-post",n))),kt=(0,u.createRegistrySelector)((e=>(t,n)=>e(te).isItemPinned("core/edit-post",n))),Pt=it((e=>Object.keys(e.metaBoxes.locations).filter((t=>Tt(e,t)))),(e=>[e.metaBoxes.locations]));function Ct(e,t){return Tt(e,t)&&xt(e,t)?.some((({id:t})=>vt(e,`meta-box-${t}`)))}function Tt(e,t){const n=xt(e,t);return!!n&&0!==n.length}function xt(e,t){return e.metaBoxes.locations[t]}const Bt=it((e=>Object.values(e.metaBoxes.locations).flat()),(e=>[e.metaBoxes.locations]));function Mt(e){return Pt(e).length>0}function It(e){return e.metaBoxes.isSaving}function Nt(e){return e.deviceType}function At(e){return!!e.blockInserterPanel}function Dt(e){const{rootClientId:t,insertionIndex:n,filterValue:o}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:n,filterValue:o}}function Lt(e){return e.listViewPanel}function Vt(e){return e.isEditingTemplate}function Ot(e){return e.metaBoxes.initialized}const Ft=(0,u.createRegistrySelector)((e=>()=>{const t=e(T.store).getEditedPostAttribute("template");if(t){const n=e(Me.store).getEntityRecords("postType","wp_template",{per_page:-1})?.find((e=>e.slug===t));return n?e(Me.store).getEditedEntityRecord("postType","wp_template",n.id):n}const n=e(T.store).getCurrentPost();return n.link?e(Me.store).__experimentalGetTemplateForLink(n.link):null})),Rt="core/edit-post",Ht=(0,u.createReduxStore)(Rt,{reducer:N,actions:a,selectors:r});(0,u.register)(Ht);var Gt=(0,u.withDispatch)((e=>{const{openModal:t}=e(Ht);return{openModal:t}}))((function({openModal:e}){return(0,l.createElement)(_.MenuItem,{onClick:()=>{e("edit-post/keyboard-shortcut-help")},shortcut:B.displayShortcut.access("h")},(0,b.__)("Keyboard shortcuts"))}));const{Fill:Ut,Slot:zt}=(0,_.createSlotFill)("ToolsMoreMenuGroup");Ut.Slot=({fillProps:e})=>(0,l.createElement)(zt,{fillProps:e},(e=>e.length>0&&(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Tools")},e)));var $t=Ut;function Wt(){const e=(0,u.useSelect)((e=>e(Ht).isEditingTemplate()),[]);return(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:e?"welcomeGuideTemplate":"welcomeGuide",label:(0,b.__)("Welcome Guide")})}(0,k.registerPlugin)("edit-post",{render(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)($t,null,(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{role:"menuitem",href:(0,P.addQueryArgs)("edit.php",{post_type:"wp_block"})},(0,b.__)("Manage Patterns")),(0,l.createElement)(Gt,{onSelect:e}),(0,l.createElement)(Wt,null),(0,l.createElement)(x,null),(0,l.createElement)(_.MenuItem,{role:"menuitem",icon:S,href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,b.__)("Help"),(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("(opens in a new tab)")))))))}});var qt=window.wp.keyboardShortcuts,Zt=window.wp.commands,jt=window.wp.coreCommands;function Kt(){const e=(0,u.useSelect)((e=>e(T.store).getEditorSettings().richEditingEnabled),[]),{switchEditorMode:t}=(0,u.useDispatch)(Ht);return(0,l.createElement)("div",{className:"edit-post-text-editor"},(0,l.createElement)(T.TextEditorGlobalKeyboardShortcuts,null),e&&(0,l.createElement)("div",{className:"edit-post-text-editor__toolbar"},(0,l.createElement)("h2",null,(0,b.__)("Editing code")),(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>t("visual"),shortcut:B.displayShortcut.secondary("m")},(0,b.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-post-text-editor__body"},(0,l.createElement)(T.PostTitle,null),(0,l.createElement)(T.PostTextEditor,null)))}var Yt=window.wp.privateApis;const{lock:Xt,unlock:Qt}=(0,Yt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-post"),{LayoutStyle:Jt,useLayoutClasses:en,useLayoutStyles:tn}=Qt(E.privateApis);function nn({children:e,contentRef:t,shouldIframe:n,styles:o,style:a}){const r=(0,E.__unstableUseMouseMoveTypingReset)();return n?(0,l.createElement)(E.__unstableIframe,{ref:r,contentRef:t,style:{width:"100%",height:"100%",display:"block"},name:"editor-canvas"},(0,l.createElement)(E.__unstableEditorStyles,{styles:o}),e):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(E.__unstableEditorStyles,{styles:o}),(0,l.createElement)(E.WritingFlow,{ref:t,className:"editor-styles-wrapper",style:{flex:"1",...a},tabIndex:-1},e))}function on(e){for(let t=0;t{const{isFeatureActive:t,isEditingTemplate:n,getEditedPostTemplate:o,__experimentalGetPreviewDeviceType:a}=e(Ht),{getCurrentPostId:r,getCurrentPostType:l,getEditorSettings:i}=e(T.store),{getBlockTypes:c}=e(s.store),d=n();let u;"wp_block"===l()?u="core/block":d||(u="core/post-content");const m=i(),p=m.supportsTemplateMode,g=e(Me.store).canUser("create","templates");return{deviceType:a(),isWelcomeGuideVisible:t("welcomeGuide"),isTemplateMode:d,postContentAttributes:i().postContentAttributes,editedPostTemplate:p&&g?o():void 0,wrapperBlockName:u,wrapperUniqueId:r(),isBlockBasedTheme:m.__unstableIsBlockBasedTheme,hasV3BlocksOnly:c().every((e=>e.apiVersion>=3))}}),[]),{isCleanNewPost:p}=(0,u.useSelect)(T.store),g=(0,u.useSelect)((e=>e(Ht).hasMetaBoxes()),[]),{hasRootPaddingAwareAlignments:h,isFocusMode:b,themeHasDisabledLayoutStyles:v,themeSupportsLayout:y}=(0,u.useSelect)((e=>{const t=e(E.store).getSettings();return{themeHasDisabledLayoutStyles:t.disableLayoutStyles,themeSupportsLayout:t.supportsLayout,isFocusMode:t.focusMode,hasRootPaddingAwareAlignments:t.__experimentalFeatures?.useRootPaddingAwareAlignments}}),[]),w={height:"100%",width:"100%",margin:0,display:"flex",flexFlow:"column",background:"white"},S={...w,borderRadius:"2px 2px 0 0",border:"1px solid #ddd",borderBottom:0},k=(0,E.__experimentalUseResizeCanvas)(t,o),P=(0,E.useSetting)("layout"),C="is-"+t.toLowerCase()+"-preview";let x,B=o?S:w;k&&(B=k),g||k||o||(x="40vh");const M=(0,l.useRef)(),I=(0,f.useMergeRefs)([M,(0,E.__unstableUseClipboardHandler)(),(0,E.__unstableUseTypewriter)(),(0,E.__unstableUseTypingObserver)(),(0,E.__unstableUseBlockSelectionClearer)()]),N=(0,E.__unstableUseBlockSelectionClearer)(),A=(0,l.useMemo)((()=>o?{type:"default"}:y?{...P,type:"constrained"}:{type:"default"}),[o,y,P]),D=(0,l.useMemo)((()=>{if(!r?.content&&!r?.blocks)return a;if(r?.blocks)return on(r?.blocks);const e="string"==typeof r?.content?r?.content:"";return on((0,s.parse)(e))||{}}),[r?.content,r?.blocks,a]),{layout:L={},align:O=""}=D||{},F=en(D,"core/post-content"),R=V()({"is-layout-flow":!y},y&&F,O&&`align${O}`),H=tn(D,"core/post-content",".block-editor-block-list__layout.is-root-container"),G=(0,l.useMemo)((()=>L&&("constrained"===L?.type||L?.inherit||L?.contentSize||L?.wideSize)?{...P,...L,type:"constrained"}:{...P,...L,type:"default"}),[L?.type,L?.inherit,L?.contentSize,L?.wideSize,P]),U=a?G:A,z=(0,l.useRef)();(0,l.useEffect)((()=>{!n&&p()&&z?.current?.focus()}),[n,p]),e=(0,l.useMemo)((()=>[...e,{css:".edit-post-visual-editor__post-title-wrapper{margin-top:4rem}"+(x?`body{padding-bottom:${x}}`:"")}]),[e]);return(0,l.createElement)(E.BlockTools,{__unstableContentRef:M,className:V()("edit-post-visual-editor",{"is-template-mode":o})},(0,l.createElement)(T.VisualEditorGlobalKeyboardShortcuts,null),(0,l.createElement)(_.__unstableMotion.div,{className:"edit-post-visual-editor__content-area",animate:{padding:o?"48px 48px 0":0},ref:N},(0,l.createElement)(_.__unstableMotion.div,{animate:B,initial:w,className:C},(0,l.createElement)(nn,{shouldIframe:!!m&&!g||o||"Tablet"===t||"Mobile"===t,contentRef:I,styles:e},y&&!v&&!o&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Jt,{selector:".edit-post-visual-editor__post-title-wrapper",layout:A}),(0,l.createElement)(Jt,{selector:".block-editor-block-list__layout.is-root-container",layout:U}),O&&(0,l.createElement)(Jt,{css:".is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}"}),H&&(0,l.createElement)(Jt,{layout:G,css:H})),!o&&(0,l.createElement)("div",{className:V()("edit-post-visual-editor__post-title-wrapper",{"is-focus-mode":b,"has-global-padding":h}),contentEditable:!1},(0,l.createElement)(T.PostTitle,{ref:z})),(0,l.createElement)(E.__experimentalRecursionProvider,{blockName:i,uniqueId:c},(0,l.createElement)(E.BlockList,{className:o?"wp-site-blocks":`${R} wp-block-post-content`,layout:U}))))))}var rn=function(){const{getBlockSelectionStart:e}=(0,u.useSelect)(E.store),{getEditorMode:t,isEditorSidebarOpened:n,isListViewOpened:o,isFeatureActive:a}=(0,u.useSelect)(Ht),r=(0,u.useSelect)((e=>{const{richEditingEnabled:t,codeEditingEnabled:n}=e(T.store).getEditorSettings();return!t||!n}),[]),{createInfoNotice:i}=(0,u.useDispatch)(C.store),{switchEditorMode:c,openGeneralSidebar:d,closeGeneralSidebar:m,toggleFeature:g,setIsListViewOpened:h,setIsInserterOpened:_}=(0,u.useDispatch)(Ht),{registerShortcut:f}=(0,u.useDispatch)(qt.store),{set:v}=(0,u.useDispatch)(p.store),{replaceBlocks:y}=(0,u.useDispatch)(E.store),{getBlockName:w,getSelectedBlockClientId:S,getBlockAttributes:k}=(0,u.useSelect)(E.store),P=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",o=S();if(null===o)return;const a=w(o);if("core/paragraph"!==a&&"core/heading"!==a)return;const r=k(o),l="core/paragraph"===a?"align":"textAlign",i="core/paragraph"===n?"align":"textAlign";y(o,(0,s.createBlock)(n,{level:t,content:r.content,[i]:r[l]}))};return(0,l.useEffect)((()=>{f({name:"core/edit-post/toggle-mode",category:"global",description:(0,b.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),f({name:"core/edit-post/toggle-distraction-free",category:"global",description:(0,b.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),f({name:"core/edit-post/toggle-fullscreen",category:"global",description:(0,b.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}}),f({name:"core/edit-post/toggle-list-view",category:"global",description:(0,b.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),f({name:"core/edit-post/toggle-sidebar",category:"global",description:(0,b.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),f({name:"core/edit-post/next-region",category:"global",description:(0,b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),f({name:"core/edit-post/previous-region",category:"global",description:(0,b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),f({name:"core/edit-post/keyboard-shortcuts",category:"main",description:(0,b.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),f({name:"core/edit-post/transform-heading-to-paragraph",category:"block-library",description:(0,b.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((e=>{f({name:`core/edit-post/transform-paragraph-to-heading-${e}`,category:"block-library",description:(0,b.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${e}`}})}))}),[]),(0,qt.useShortcut)("core/edit-post/toggle-mode",(()=>{c("visual"===t()?"text":"visual")}),{isDisabled:r}),(0,qt.useShortcut)("core/edit-post/toggle-fullscreen",(()=>{g("fullscreenMode")})),(0,qt.useShortcut)("core/edit-post/toggle-distraction-free",(()=>{v("core/edit-post","fixedToolbar",!1),_(!1),h(!1),m(),g("distractionFree"),i(a("distractionFree")?(0,b.__)("Distraction free mode turned on."):(0,b.__)("Distraction free mode turned off."),{id:"core/edit-post/distraction-free-mode/notice",type:"snackbar"})})),(0,qt.useShortcut)("core/edit-post/toggle-sidebar",(t=>{if(t.preventDefault(),n())m();else{const t=e()?"edit-post/block":"edit-post/document";d(t)}})),(0,qt.useShortcut)("core/edit-post/toggle-list-view",(()=>{o()||h(!0)})),(0,qt.useShortcut)("core/edit-post/transform-heading-to-paragraph",(e=>P(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,qt.useShortcut)(`core/edit-post/transform-paragraph-to-heading-${e}`,(t=>P(t,e)))})),null};const ln=[{keyCombination:{modifier:"primary",character:"b"},description:(0,b.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,b.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,b.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,b.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,b.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,b.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,b.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,b.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,b.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,b.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function sn({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?B.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?B.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help-modal__shortcut-key"},e))))}var cn=function({description:e,keyCombination:t,aliases:n=[],ariaLabel:o}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(sn,{keyCombination:t,forceAriaLabel:o}),n.map(((e,t)=>(0,l.createElement)(sn,{keyCombination:e,forceAriaLabel:o,key:t})))))};var dn=function({name:e}){const{keyCombination:t,description:n,aliases:o}=(0,u.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:o,getShortcutAliases:a}=t(qt.store);return{keyCombination:n(e),aliases:a(e),description:o(e)}}),[e]);return t?(0,l.createElement)(cn,{keyCombination:t,description:n,aliases:o}):null};const un="edit-post/keyboard-shortcut-help",mn=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-post-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(dn,{name:e}):(0,l.createElement)(cn,{...e}))))),pn=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:V()("edit-post-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-post-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(mn,{shortcuts:t})),gn=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const o=(0,u.useSelect)((e=>e(qt.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(pn,{title:e,shortcuts:o.concat(n)})};var hn=(0,f.compose)([(0,u.withSelect)((e=>({isModalActive:e(Ht).isModalActive(un)}))),(0,u.withDispatch)(((e,{isModalActive:t})=>{const{openModal:n,closeModal:o}=e(Ht);return{toggleModal:()=>t?o():n(un)}}))])((function({isModalActive:e,toggleModal:t}){return(0,qt.useShortcut)("core/edit-post/keyboard-shortcuts",t),e?(0,l.createElement)(_.Modal,{className:"edit-post-keyboard-shortcut-help-modal",title:(0,b.__)("Keyboard shortcuts"),closeButtonLabel:(0,b.__)("Close"),onRequestClose:t},(0,l.createElement)(pn,{className:"edit-post-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-post/keyboard-shortcuts"]}),(0,l.createElement)(gn,{title:(0,b.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(gn,{title:(0,b.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(gn,{title:(0,b.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,b.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,b.__)("Forward-slash")}]}),(0,l.createElement)(pn,{title:(0,b.__)("Text formatting"),shortcuts:ln})):null}));function _n({willEnable:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message"},(0,b.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),(0,l.createElement)(_.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",variant:"secondary",isBusy:t,disabled:t,onClick:()=>{n(!0),document.getElementById("toggle-custom-fields-form").submit()}},e?(0,b.__)("Show & Reload Page"):(0,b.__)("Hide & Reload Page")))}var En=(0,u.withSelect)((e=>({areCustomFieldsEnabled:!!e(T.store).getEditorSettings().enableCustomFields})))((function({label:e,areCustomFieldsEnabled:t}){const[n,o]=(0,l.useState)(t);return(0,l.createElement)(xe,{label:e,isChecked:n,onChange:o},n!==t&&(0,l.createElement)(_n,{willEnable:n}))})),bn=(0,f.compose)((0,u.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:n,isEditorPanelRemoved:o}=e(Ht);return{isRemoved:o(t),isChecked:n(t)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,u.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(Ht).toggleEditorPanelEnabled(t)}))))(xe);const{Fill:fn,Slot:vn}=(0,_.createSlotFill)("EnablePluginDocumentSettingPanelOption"),yn=({label:e,panelName:t})=>(0,l.createElement)(fn,null,(0,l.createElement)(bn,{label:e,panelName:t}));yn.Slot=vn;var wn=yn,Sn=(0,f.compose)((0,u.withSelect)((e=>({isChecked:e(T.store).isPublishSidebarEnabled()}))),(0,u.withDispatch)((e=>{const{enablePublishSidebar:t,disablePublishSidebar:n}=e(T.store);return{onChange:e=>e?t():n()}})),(0,H.ifViewportMatches)("medium"))(xe),kn=(0,f.compose)((0,u.withSelect)(((e,{featureName:t})=>{const{isFeatureActive:n}=e(Ht);return{isChecked:n(t)}})),(0,u.withDispatch)(((e,{featureName:t,onToggle:n=(()=>{})})=>({onChange:()=>{n(),e(Ht).toggleFeature(t)}}))))(xe);var Pn=(0,u.withSelect)((e=>{const{getEditorSettings:t}=e(T.store),{getAllMetaBoxes:n}=e(Ht);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}}))((function({areCustomFieldsRegistered:e,metaBoxes:t,...n}){const o=t.filter((({id:e})=>"postcustom"!==e));return e||0!==o.length?(0,l.createElement)(Te,{...n},e&&(0,l.createElement)(En,{label:(0,b.__)("Custom fields")}),o.map((({id:e,title:t})=>(0,l.createElement)(bn,{key:e,label:t,panelName:`meta-box-${e}`})))):null}));var Cn=function({blockTypes:e,value:t,onItemChange:n}){return(0,l.createElement)("ul",{className:"edit-post-block-manager__checklist"},e.map((e=>(0,l.createElement)("li",{key:e.name,className:"edit-post-block-manager__checklist-item"},(0,l.createElement)(_.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=>n(e.name,...t)}),(0,l.createElement)(E.BlockIcon,{icon:e.icon})))))};var Tn=function e({title:t,blockTypes:n}){const o=(0,f.useInstanceId)(e),{defaultAllowedBlockTypes:a,hiddenBlockTypes:r}=(0,u.useSelect)((e=>{const{getEditorSettings:t}=e(T.store),{getHiddenBlockTypes:n}=e(Ht);return{defaultAllowedBlockTypes:t().defaultAllowedBlockTypes,hiddenBlockTypes:n()}}),[]),s=(0,l.useMemo)((()=>!0===a?n:n.filter((({name:e})=>a?.includes(e)))),[a,n]),{showBlockTypes:i,hideBlockTypes:c}=(0,u.useDispatch)(Ht),d=(0,l.useCallback)(((e,t)=>{t?i(e):c(e)}),[]),m=(0,l.useCallback)((e=>{const t=n.map((({name:e})=>e));e?i(t):c(t)}),[n]);if(!s.length)return null;const p=s.map((({name:e})=>e)).filter((e=>!r.includes(e))),g="edit-post-block-manager__category-title-"+o,h=p.length===s.length,E=!h&&p.length>0;return(0,l.createElement)("div",{role:"group","aria-labelledby":g,className:"edit-post-block-manager__category"},(0,l.createElement)(_.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:h,onChange:m,className:"edit-post-block-manager__category-title",indeterminate:E,label:(0,l.createElement)("span",{id:g},t)}),(0,l.createElement)(Cn,{blockTypes:s,value:p,onItemChange:d}))};var xn=(0,f.compose)([(0,u.withSelect)((e=>{const{getBlockTypes:t,getCategories:n,hasBlockSupport:o,isMatchingSearchTerm:a}=e(s.store),{getHiddenBlockTypes:r}=e(Ht),l=t(),i=r().filter((e=>l.some((t=>t.name===e)))),c=Array.isArray(i)&&i.length;return{blockTypes:l,categories:n(),hasBlockSupport:o,isMatchingSearchTerm:a,numberOfHiddenBlocks:c}})),(0,u.withDispatch)((e=>{const{showBlockTypes:t}=e(Ht);return{enableAllBlockTypes:e=>{const n=e.map((({name:e})=>e));t(n)}}}))])((function({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:a,enableAllBlockTypes:r}){const s=(0,f.useDebounce)(Be.speak,500),[i,c]=(0,l.useState)("");return e=e.filter((e=>n(e,"inserter",!0)&&(!i||o(e,i))&&(!e.parent||e.parent.includes("core/post-content")))),(0,l.useEffect)((()=>{if(!i)return;const t=e.length,n=(0,b.sprintf)((0,b._n)("%d result found.","%d results found.",t),t);s(n)}),[e.length,i,s]),(0,l.createElement)("div",{className:"edit-post-block-manager__content"},!!a&&(0,l.createElement)("div",{className:"edit-post-block-manager__disabled-blocks-count"},(0,b.sprintf)((0,b._n)("%d block is hidden.","%d blocks are hidden.",a),a),(0,l.createElement)(_.Button,{variant:"link",onClick:()=>r(e)},(0,b.__)("Reset"))),(0,l.createElement)(_.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Search for a block"),placeholder:(0,b.__)("Search for a block"),value:i,onChange:e=>c(e),className:"edit-post-block-manager__search"}),(0,l.createElement)("div",{tabIndex:"0",role:"region","aria-label":(0,b.__)("Available block types"),className:"edit-post-block-manager__results"},0===e.length&&(0,l.createElement)("p",{className:"edit-post-block-manager__no-results"},(0,b.__)("No blocks found.")),t.map((t=>(0,l.createElement)(Tn,{key:t.slug,title:t.title,blockTypes:e.filter((e=>e.category===t.slug))}))),(0,l.createElement)(Tn,{title:(0,b.__)("Uncategorized"),blockTypes:e.filter((({category:e})=>!e))})))}));function Bn(){const e=(0,f.useViewportMatch)("medium"),{closeModal:t}=(0,u.useDispatch)(Ht),[n,o]=(0,u.useSelect)((t=>{const{getEditorSettings:n}=t(T.store),{getEditorMode:o,isFeatureActive:a}=t(Ht),r=t(Ht).isModalActive("edit-post/preferences"),l=o(),s=n().richEditingEnabled,i=a("distractionFree");return[r,!i&&e&&s&&"visual"===l,i]}),[e]),{closeGeneralSidebar:a,setIsListViewOpened:r,setIsInserterOpened:s}=(0,u.useDispatch)(Ht),{set:i}=(0,u.useDispatch)(p.store),c=()=>{i("core/edit-post","fixedToolbar",!1),s(!1),r(!1),a()},d=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,b.__)("General"),content:(0,l.createElement)(l.Fragment,null,e&&(0,l.createElement)(Te,{title:(0,b.__)("Publishing"),description:(0,b.__)("Change options related to publishing.")},(0,l.createElement)(Sn,{help:(0,b.__)("Review settings, such as visibility and tags."),label:(0,b.__)("Include pre-publish checklist")})),(0,l.createElement)(Te,{title:(0,b.__)("Appearance"),description:(0,b.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(kn,{featureName:"distractionFree",onToggle:c,help:(0,b.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,b.__)("Distraction free")}),(0,l.createElement)(kn,{featureName:"focusMode",help:(0,b.__)("Highlights the current block and fades other content."),label:(0,b.__)("Spotlight mode")}),(0,l.createElement)(kn,{featureName:"showIconLabels",label:(0,b.__)("Show button text labels"),help:(0,b.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(kn,{featureName:"showListViewByDefault",help:(0,b.__)("Opens the block list view sidebar by default."),label:(0,b.__)("Always open list view")}),(0,l.createElement)(kn,{featureName:"themeStyles",help:(0,b.__)("Make the editor look like your theme."),label:(0,b.__)("Use theme styles")}),o&&(0,l.createElement)(kn,{featureName:"showBlockBreadcrumbs",help:(0,b.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,b.__)("Display block breadcrumbs")})))},{name:"blocks",tabLabel:(0,b.__)("Blocks"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Te,{title:(0,b.__)("Block interactions"),description:(0,b.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(kn,{featureName:"mostUsedBlocks",help:(0,b.__)("Places the most frequent blocks in the block library."),label:(0,b.__)("Show most used blocks")}),(0,l.createElement)(kn,{featureName:"keepCaretInsideBlock",help:(0,b.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,b.__)("Contain text cursor inside block")})),(0,l.createElement)(Te,{title:(0,b.__)("Visible blocks"),description:(0,b.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later.")},(0,l.createElement)(xn,null)))},{name:"panels",tabLabel:(0,b.__)("Panels"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Te,{title:(0,b.__)("Document settings"),description:(0,b.__)("Choose what displays in the panel.")},(0,l.createElement)(wn.Slot,null),(0,l.createElement)(T.PostTaxonomies,{taxonomyWrapper:(e,t)=>(0,l.createElement)(bn,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,l.createElement)(T.PostFeaturedImageCheck,null,(0,l.createElement)(bn,{label:(0,b.__)("Featured image"),panelName:"featured-image"})),(0,l.createElement)(T.PostExcerptCheck,null,(0,l.createElement)(bn,{label:(0,b.__)("Excerpt"),panelName:"post-excerpt"})),(0,l.createElement)(T.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},(0,l.createElement)(bn,{label:(0,b.__)("Discussion"),panelName:"discussion-panel"})),(0,l.createElement)(T.PageAttributesCheck,null,(0,l.createElement)(bn,{label:(0,b.__)("Page attributes"),panelName:"page-attributes"}))),(0,l.createElement)(Pn,{title:(0,b.__)("Additional"),description:(0,b.__)("Add extra areas to the editor.")}))}]),[e,o]);return n?(0,l.createElement)(ye,{closeModal:t},(0,l.createElement)(Ce,{sections:d})):null}class Mn extends l.Component{constructor(){super(...arguments),this.state={historyId:null}}componentDidUpdate(e){const{postId:t,postStatus:n,postType:o,isSavingPost:a}=this.props,{historyId:r}=this.state;"trash"!==n||a?t===e.postId&&t===r||"auto-draft"===n||!t||this.setBrowserURL(t):this.setTrashURL(t,o)}setTrashURL(e,t){window.location.href=function(e,t){return(0,P.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}setBrowserURL(e){window.history.replaceState({id:e},"Post "+e,function(e){return(0,P.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((()=>({historyId:e})))}render(){return null}}var In=(0,u.withSelect)((e=>{const{getCurrentPost:t,isSavingPost:n}=e(T.store),o=t();let{id:a,status:r,type:l}=o;return["wp_template","wp_template_part"].includes(l)&&(a=o.wp_id),{postId:a,postStatus:r,postType:l,isSavingPost:n()}}))(Mn);var Nn=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(w.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var An=function({showTooltip:e,icon:t,href:n}){var o;const{isActive:a,isRequestingSiteIcon:r,postType:s,siteIconUrl:i}=(0,u.useSelect)((e=>{const{getCurrentPostType:t}=e(T.store),{isFeatureActive:n}=e(Ht),{getEntityRecord:o,getPostType:a,isResolving:r}=e(Me.store),l=o("root","__unstableBase",void 0)||{};return{isActive:n("fullscreenMode"),isRequestingSiteIcon:r("getEntityRecord",["root","__unstableBase",void 0]),postType:a(t()),siteIconUrl:l.site_icon_url}}),[]),c=(0,f.useReducedMotion)();if(!a||!s)return null;let d=(0,l.createElement)(_.Icon,{size:"36px",icon:Nn});const m={expand:{scale:1.25,transition:{type:"tween",duration:"0.3"}}};i&&(d=(0,l.createElement)(_.__unstableMotion.img,{variants:!c&&m,alt:(0,b.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:i})),r&&(d=null),t&&(d=(0,l.createElement)(_.Icon,{size:"36px",icon:t}));const p=V()({"edit-post-fullscreen-mode-close":!0,"has-icon":i});return(0,l.createElement)(_.__unstableMotion.div,{whileHover:"expand"},(0,l.createElement)(_.Button,{className:p,href:null!=n?n:(0,P.addQueryArgs)("edit.php",{post_type:s.slug}),label:null!==(o=s?.labels?.view_items)&&void 0!==o?o:(0,b.__)("Back"),showTooltip:e},d))};var Dn=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var Ln=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const{useShouldContextualToolbarShow:Vn}=Qt(E.privateApis),On=e=>{e.preventDefault()};var Fn=function(){const e=(0,l.useRef)(),{setIsInserterOpened:t,setIsListViewOpened:n}=(0,u.useDispatch)(Ht),{isInserterEnabled:o,isInserterOpened:a,isTextModeEnabled:r,showIconLabels:s,isListViewOpen:i,listViewShortcut:c}=(0,u.useSelect)((e=>{const{hasInserterItems:t,getBlockRootClientId:n,getBlockSelectionEnd:o}=e(E.store),{getEditorSettings:a}=e(T.store),{getEditorMode:r,isFeatureActive:l,isListViewOpened:s}=e(Ht),{getShortcutRepresentation:i}=e(qt.store);return{isInserterEnabled:"visual"===r()&&a().richEditingEnabled&&t(n(o())),isInserterOpened:e(Ht).isInserterOpened(),isTextModeEnabled:"text"===r(),showIconLabels:l("showIconLabels"),isListViewOpen:s(),listViewShortcut:i("core/edit-post/toggle-list-view")}}),[]),d=(0,f.useViewportMatch)("medium"),m=(0,f.useViewportMatch)("wide"),{shouldShowContextualToolbar:p,canFocusHiddenToolbar:g,fixedToolbarCanBeFocused:h}=Vn(),v=p||g||h,y=(0,b.__)("Document tools"),w=(0,l.useCallback)((()=>n(!i)),[n,i]),S=(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.ToolbarItem,{as:_.Button,className:"edit-post-header-toolbar__document-overview-toggle",icon:Dn,disabled:r,isPressed:i,label:(0,b.__)("Document Overview"),onClick:w,shortcut:c,showTooltip:!s,variant:s?"tertiary":void 0})),k=(0,l.useCallback)((()=>{a?(e.current.focus(),t(!1)):t(!0)}),[a,t]),P=(0,b._x)("Toggle block inserter","Generic label for block inserter button"),C=a?(0,b.__)("Close"):(0,b.__)("Add");return(0,l.createElement)(E.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":y,shouldUseKeyboardFocusShortcut:!v},(0,l.createElement)("div",{className:"edit-post-header-toolbar__left"},(0,l.createElement)(_.ToolbarItem,{ref:e,as:_.Button,className:"edit-post-header-toolbar__inserter-toggle",variant:"primary",isPressed:a,onMouseDown:On,onClick:k,disabled:!o,icon:Ln,label:s?C:P,showTooltip:!s}),(m||!s)&&(0,l.createElement)(l.Fragment,null,d&&(0,l.createElement)(_.ToolbarItem,{as:E.ToolSelector,showTooltip:!s,variant:s?"tertiary":void 0,disabled:r}),(0,l.createElement)(_.ToolbarItem,{as:T.EditorHistoryUndo,showTooltip:!s,variant:s?"tertiary":void 0}),(0,l.createElement)(_.ToolbarItem,{as:T.EditorHistoryRedo,showTooltip:!s,variant:s?"tertiary":void 0}),S)))};const Rn=[{value:"visual",label:(0,b.__)("Visual editor")},{value:"text",label:(0,b.__)("Code editor")}];var Hn=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:n,isEditingTemplate:o,mode:a}=(0,u.useSelect)((e=>({shortcut:e(qt.store).getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e(T.store).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(T.store).getEditorSettings().codeEditingEnabled,isEditingTemplate:e(Ht).isEditingTemplate(),mode:e(Ht).getEditorMode()})),[]),{switchEditorMode:r}=(0,u.useDispatch)(Ht);if(o)return null;if(!t||!n)return null;const s=Rn.map((t=>t.value!==a?{...t,shortcut:e}:t));return(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Editor")},(0,l.createElement)(_.MenuItemsChoice,{choices:s,value:a,onSelect:r}))};function Gn(){const{openModal:e}=(0,u.useDispatch)(Ht);return(0,l.createElement)(_.MenuItem,{onClick:()=>{e("edit-post/preferences")}},(0,b.__)("Preferences"))}var Un=function(){const e=(0,u.useRegistry)(),t=(0,u.useSelect)((e=>e(E.store).getSettings().isDistractionFree),[]),{setIsInserterOpened:n,setIsListViewOpened:o,closeGeneralSidebar:a}=(0,u.useDispatch)(Ht),{set:r}=(0,u.useDispatch)(p.store);return(0,f.useViewportMatch)("medium")?(0,l.createElement)(_.MenuGroup,{label:(0,b._x)("View","noun")},(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",disabled:t,name:"fixedToolbar",label:(0,b.__)("Top toolbar"),info:(0,b.__)("Access all block and document tools in a single place"),messageActivated:(0,b.__)("Top toolbar activated"),messageDeactivated:(0,b.__)("Top toolbar deactivated")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"focusMode",label:(0,b.__)("Spotlight mode"),info:(0,b.__)("Focus on one block at a time"),messageActivated:(0,b.__)("Spotlight mode activated"),messageDeactivated:(0,b.__)("Spotlight mode deactivated")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"fullscreenMode",label:(0,b.__)("Fullscreen mode"),info:(0,b.__)("Show and hide admin UI"),messageActivated:(0,b.__)("Fullscreen mode activated"),messageDeactivated:(0,b.__)("Fullscreen mode deactivated"),shortcut:B.displayShortcut.secondary("f")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"distractionFree",onToggle:()=>{e.batch((()=>{r("core/edit-post","fixedToolbar",!1),n(!1),o(!1),a()}))},label:(0,b.__)("Distraction free"),info:(0,b.__)("Write with calmness"),messageActivated:(0,b.__)("Distraction free mode activated"),messageDeactivated:(0,b.__)("Distraction free mode deactivated"),shortcut:B.displayShortcut.primaryShift("\\")})):null};var zn=({showIconLabels:e})=>{const t=(0,f.useViewportMatch)("large");return(0,l.createElement)(ve,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:n})=>(0,l.createElement)(l.Fragment,null,e&&!t&&(0,l.createElement)(ue.Slot,{className:e&&"show-icon-labels",scope:"core/edit-post"}),(0,l.createElement)(Un,null),(0,l.createElement)(Hn,null),(0,l.createElement)(se.Slot,{name:"core/edit-post/plugin-more-menu",label:(0,b.__)("Plugins"),as:_.MenuGroup,fillProps:{onClick:n}}),(0,l.createElement)($t.Slot,{fillProps:{onClose:n}}),(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(Gn,null)))))};var $n=(0,f.compose)((0,u.withSelect)((e=>{var t;return{hasPublishAction:null!==(t=e(T.store).getCurrentPost()?._links?.["wp:action-publish"])&&void 0!==t&&t,isBeingScheduled:e(T.store).isEditedPostBeingScheduled(),isPending:e(T.store).isCurrentPostPending(),isPublished:e(T.store).isCurrentPostPublished(),isPublishSidebarEnabled:e(T.store).isPublishSidebarEnabled(),isPublishSidebarOpened:e(Ht).isPublishSidebarOpened(),isScheduled:e(T.store).isCurrentPostScheduled()}})),(0,u.withDispatch)((e=>{const{togglePublishSidebar:t}=e(Ht);return{togglePublishSidebar:t}})))((function({forceIsDirty:e,forceIsSaving:t,hasPublishAction:n,isBeingScheduled:o,isPending:a,isPublished:r,isPublishSidebarEnabled:s,isPublishSidebarOpened:i,isScheduled:c,togglePublishSidebar:d,setEntitiesSavedStatesCallback:u}){const m="toggle",p="button",g=(0,f.useViewportMatch)("medium","<");let h;return h=r||c&&o||a&&!n&&!g?p:g||s?m:p,(0,l.createElement)(T.PostPublishButton,{forceIsDirty:e,forceIsSaving:t,isOpen:i,isToggle:h===m,onToggle:d,setEntitiesSavedStatesCallback:u})}));function Wn(){const{hasActiveMetaboxes:e,isPostSaveable:t,isSaving:n,isViewable:o,deviceType:a}=(0,u.useSelect)((e=>{var t;const{getEditedPostAttribute:n}=e(T.store),{getPostType:o}=e(Me.store),a=o(n("type"));return{hasActiveMetaboxes:e(Ht).hasMetaBoxes(),isSaving:e(Ht).isSavingMetaBoxes(),isPostSaveable:e(T.store).isEditedPostSaveable(),isViewable:null!==(t=a?.viewable)&&void 0!==t&&t,deviceType:e(Ht).__experimentalGetPreviewDeviceType()}}),[]),{__experimentalSetPreviewDeviceType:r}=(0,u.useDispatch)(Ht);return(0,l.createElement)(E.__experimentalPreviewOptions,{isEnabled:t,className:"edit-post-post-preview-dropdown",deviceType:a,setDeviceType:r,label:(0,b.__)("Preview")},o&&(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)("div",{className:"edit-post-header-preview__grouping-external"},(0,l.createElement)(T.PostPreviewButton,{className:"edit-post-header-preview__button-external",role:"menuitem",forceIsAutosaveable:e,forcePreviewLink:n?null:void 0,textContent:(0,l.createElement)(l.Fragment,null,(0,b.__)("Preview in new tab"),(0,l.createElement)(_.Icon,{icon:S}))}))))}function qn(){const{permalink:e,isPublished:t,label:n}=(0,u.useSelect)((e=>{const t=e(T.store).getCurrentPostType(),n=e(Me.store).getPostType(t);return{permalink:e(T.store).getPermalink(),isPublished:e(T.store).isCurrentPostPublished(),label:n?.labels.view_item}}),[]);return t&&e?(0,l.createElement)(_.Button,{icon:S,label:n||(0,b.__)("View post"),href:e,target:"_blank"}):null}const Zn="__experimentalMainDashboardButton",{Fill:jn,Slot:Kn}=(0,_.createSlotFill)(Zn),Yn=jn;Yn.Slot=({children:e})=>{const t=(0,_.__experimentalUseSlotFills)(Zn);return Boolean(t&&t.length)?(0,l.createElement)(Kn,{bubblesVirtually:!0}):e};var Xn=Yn;var Qn=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var Jn=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var eo=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var to=function(){const{template:e,isEditing:t}=(0,u.useSelect)((e=>{const{isEditingTemplate:t,getEditedPostTemplate:n}=e(Ht),o=t();return{template:o?n():null,isEditing:o}}),[]),{clearSelectedBlock:n}=(0,u.useDispatch)(E.store),{setIsEditingTemplate:o}=(0,u.useDispatch)(Ht),{open:a}=(0,u.useDispatch)(Zt.store);if(!t||!e)return null;let r=(0,b.__)("Default");return e?.title?r=e.title:e&&(r=e.slug),(0,l.createElement)("div",{className:"edit-post-document-title"},(0,l.createElement)("span",{className:"edit-post-document-title__left"},(0,l.createElement)(_.Button,{onClick:()=>{n(),o(!1)},icon:(0,b.isRTL)()?Qn:Jn},(0,b.__)("Back"))),(0,l.createElement)(_.Button,{className:"edit-post-document-title__title",onClick:()=>a()},(0,l.createElement)(_.__experimentalHStack,{spacing:1,justify:"center"},(0,l.createElement)(E.BlockIcon,{icon:eo}),(0,l.createElement)(_.__experimentalText,{size:"body",as:"h1"},(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("Editing template: ")),r))),(0,l.createElement)(_.Button,{className:"edit-post-document-title__shortcut",onClick:()=>a()},B.displayShortcut.primary("k")))};const no={hidden:{y:"-50px"},hover:{y:0,transition:{type:"tween",delay:.2}}},oo={hidden:{x:"-100%"},hover:{x:0,transition:{type:"tween",delay:.2}}};var ao=function({setEntitiesSavedStatesCallback:e}){const t=(0,f.useViewportMatch)("large"),{hasActiveMetaboxes:n,isPublishSidebarOpened:o,isSaving:a,showIconLabels:r}=(0,u.useSelect)((e=>({hasActiveMetaboxes:e(Ht).hasMetaBoxes(),isPublishSidebarOpened:e(Ht).isPublishSidebarOpened(),isSaving:e(Ht).isSavingMetaBoxes(),showIconLabels:e(Ht).isFeatureActive("showIconLabels")})),[]);return(0,l.createElement)("div",{className:"edit-post-header"},(0,l.createElement)(Xn.Slot,null,(0,l.createElement)(_.__unstableMotion.div,{variants:oo,transition:{type:"tween",delay:.8}},(0,l.createElement)(An,{showTooltip:!0}))),(0,l.createElement)(_.__unstableMotion.div,{variants:no,transition:{type:"tween",delay:.8},className:"edit-post-header__toolbar"},(0,l.createElement)(Fn,null),(0,l.createElement)("div",{className:"edit-post-header__document-title"},(0,l.createElement)(to,null))),(0,l.createElement)(_.__unstableMotion.div,{variants:no,transition:{type:"tween",delay:.8},className:"edit-post-header__settings"},!o&&(0,l.createElement)(T.PostSavedState,{forceIsDirty:n,forceIsSaving:a,showIconLabels:r}),(0,l.createElement)(Wn,null),(0,l.createElement)(T.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:a?null:void 0}),(0,l.createElement)(qn,null),(0,l.createElement)($n,{forceIsDirty:n,forceIsSaving:a,setEntitiesSavedStatesCallback:e}),(t||!r)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ue.Slot,{scope:"core/edit-post"}),(0,l.createElement)(zn,{showIconLabels:r})),r&&!t&&(0,l.createElement)(zn,{showIconLabels:r})))};var ro=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function lo(){const{insertionPoint:e,showMostUsedBlocks:t}=(0,u.useSelect)((e=>{const{isFeatureActive:t,__experimentalGetInsertionPoint:n}=e(Ht);return{insertionPoint:n(),showMostUsedBlocks:t("mostUsedBlocks")}}),[]),{setIsInserterOpened:n}=(0,u.useDispatch)(Ht),o=(0,f.useViewportMatch)("medium","<"),a=o?"div":_.VisuallyHidden,[r,s]=(0,f.__experimentalUseDialog)({onClose:()=>n(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...s,className:"edit-post-editor__inserter-panel"},(0,l.createElement)(a,{className:"edit-post-editor__inserter-panel-header"},(0,l.createElement)(_.Button,{icon:ro,label:(0,b.__)("Close block inserter"),onClick:()=>n(!1)})),(0,l.createElement)("div",{className:"edit-post-editor__inserter-panel-content"},(0,l.createElement)(E.__experimentalLibrary,{showMostUsedBlocks:t,showInserterHelpPanel:!0,shouldFocusBlock:o,rootClientId:e.rootClientId,__experimentalInsertionIndex:e.insertionIndex,__experimentalFilterValue:e.filterValue,ref:i})))}var so=window.wp.dom;function io(){return(0,l.createElement)(_.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(_.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,l.createElement)(_.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,l.createElement)(_.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"}))}function co(){const{headingCount:e}=(0,u.useSelect)((e=>{const{getGlobalBlockCount:t}=e(E.store);return{headingCount:t("core/heading")}}),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-post-editor__list-view-overview"},(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Characters:")),(0,l.createElement)(_.__experimentalText,null,(0,l.createElement)(T.CharacterCount,null))),(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Words:")),(0,l.createElement)(T.WordCount,null)),(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Time to read:")),(0,l.createElement)(T.TimeToRead,null))),e>0?(0,l.createElement)(T.DocumentOutline,null):(0,l.createElement)("div",{className:"edit-post-editor__list-view-empty-headings"},(0,l.createElement)(io,null),(0,l.createElement)("p",null,(0,b.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels."))))}function uo(){const{setIsListViewOpened:e}=(0,u.useDispatch)(Ht),t=(0,f.useFocusOnMount)("firstElement"),n=(0,f.useFocusReturn)(),o=(0,f.useFocusReturn)();const[a,r]=(0,l.useState)(null),[s,i]=(0,l.useState)("list-view"),c=(0,l.useRef)(),d=(0,l.useRef)(),m=(0,l.useRef)(),p=(0,f.useMergeRefs)([o,t,m,r]);return(0,qt.useShortcut)("core/edit-post/toggle-list-view",(()=>{c.current.contains(c.current.ownerDocument.activeElement)?e(!1):function(e){const t=so.focus.tabbable.find(d.current)[0];if("list-view"===e){const e=so.focus.tabbable.find(m.current)[0];(c.current.contains(e)?e:t).focus()}else t.focus()}(s)})),(0,l.createElement)("div",{className:"edit-post-editor__document-overview-panel",onKeyDown:function(t){t.keyCode!==B.ESCAPE||t.defaultPrevented||(t.preventDefault(),e(!1))},ref:c},(0,l.createElement)(_.Button,{className:"edit-post-editor__document-overview-panel__close-button",ref:n,icon:G,label:(0,b.__)("Close"),onClick:()=>e(!1)}),(0,l.createElement)(_.TabPanel,{className:"edit-post-editor__document-overview-panel__tab-panel",ref:d,onSelect:e=>i(e),selectOnMove:!1,tabs:[{name:"list-view",title:"List View",className:"edit-post-sidebar__panel-tab"},{name:"outline",title:"Outline",className:"edit-post-sidebar__panel-tab"}]},(e=>(0,l.createElement)("div",{className:"edit-post-editor__list-view-container",ref:p},"list-view"===e.name?(0,l.createElement)("div",{className:"edit-post-editor__list-view-panel-content"},(0,l.createElement)(E.__experimentalListView,{dropZoneElement:a})):(0,l.createElement)(co,null)))))}var mo=(0,l.createElement)(w.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var po=(0,l.createElement)(w.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));var go=({sidebarName:e})=>{const{openGeneralSidebar:t}=(0,u.useDispatch)(Ht),n=()=>t("edit-post/document"),{documentLabel:o,isTemplateMode:a}=(0,u.useSelect)((e=>({documentLabel:e(T.store).getPostTypeLabel()||(0,b._x)("Document","noun"),isTemplateMode:e(Ht).isEditingTemplate()})),[]),[r,s]="edit-post/document"===e?[(0,b.sprintf)((0,b.__)("%s (selected)"),o),"is-active"]:[o,""],[i,c]="edit-post/block"===e?[(0,b.__)("Block (selected)"),"is-active"]:[(0,b.__)("Block"),""],[d,m]="edit-post/document"===e?[(0,b.__)("Template (selected)"),"is-active"]:[(0,b.__)("Template"),""];return(0,l.createElement)("ul",null,!a&&(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:n,className:`edit-post-sidebar__panel-tab ${s}`,"aria-label":r,"data-label":o},o)),a&&(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:n,className:`edit-post-sidebar__panel-tab ${m}`,"aria-label":d,"data-label":(0,b.__)("Template")},(0,b.__)("Template"))),(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:()=>t("edit-post/block"),className:`edit-post-sidebar__panel-tab ${c}`,"aria-label":i,"data-label":(0,b.__)("Block")},(0,b.__)("Block"))))};function ho({isOpen:e,onClick:t}){const n=(0,T.usePostVisibilityLabel)();return(0,l.createElement)(_.Button,{className:"edit-post-post-visibility__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Select visibility: %s"),n),onClick:t},n)}var _o=function(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(T.PostVisibilityCheck,{render:({canEdit:e})=>(0,l.createElement)(_.PanelRow,{ref:t,className:"edit-post-post-visibility"},(0,l.createElement)("span",null,(0,b.__)("Visibility")),!e&&(0,l.createElement)("span",null,(0,l.createElement)(T.PostVisibilityLabel,null)),e&&(0,l.createElement)(_.Dropdown,{contentClassName:"edit-post-post-visibility__dialog",popoverProps:n,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(ho,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(T.PostVisibility,{onClose:e})}))})};function Eo(){return(0,l.createElement)(T.PostTrashCheck,null,(0,l.createElement)(_.FlexItem,{isBlock:!0},(0,l.createElement)(T.PostTrash,null)))}function bo(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(T.PostScheduleCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-schedule",ref:t},(0,l.createElement)("span",null,(0,b.__)("Publish")),(0,l.createElement)(_.Dropdown,{popoverProps:n,contentClassName:"edit-post-post-schedule__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(fo,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(T.PostSchedule,{onClose:e})})))}function fo({isOpen:e,onClick:t}){const n=(0,T.usePostScheduleLabel)(),o=(0,T.usePostScheduleLabel)({full:!0});return(0,l.createElement)(_.Button,{className:"edit-post-post-schedule__toggle",variant:"tertiary",label:o,showTooltip:!0,"aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Change date: %s"),n),onClick:t},n)}var vo=function(){return(0,l.createElement)(T.PostStickyCheck,null,(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PostSticky,null)))};var yo=function(){return(0,l.createElement)(T.PostAuthorCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-author"},(0,l.createElement)(T.PostAuthor,null)))};var wo=function(){return(0,l.createElement)(T.PostSlugCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-slug"},(0,l.createElement)(T.PostSlug,null)))};var So=function(){return(0,l.createElement)(T.PostFormatCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-format"},(0,l.createElement)(T.PostFormat,null)))};var ko=function(){return(0,l.createElement)(T.PostPendingStatusCheck,null,(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PostPendingStatus,null)))};const{Fill:Po,Slot:Co}=(0,_.createSlotFill)("PluginPostStatusInfo"),To=({children:e,className:t})=>(0,l.createElement)(Po,null,(0,l.createElement)(_.PanelRow,{className:t},e));To.Slot=Co;var xo=To;var Bo=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"}));const Mo=(0,b.__)("Custom Template");function Io({onClose:e}){const t=(0,u.useSelect)((e=>e(T.store).getEditorSettings().defaultBlockTemplate),[]),{__unstableCreateTemplate:n,__unstableSwitchToTemplateMode:o}=(0,u.useDispatch)(Ht),[a,r]=(0,l.useState)(""),[i,c]=(0,l.useState)(!1),d=()=>{r(""),e()};return(0,l.createElement)(_.Modal,{title:(0,b.__)("Create custom template"),onRequestClose:d,className:"edit-post-post-template__create-modal"},(0,l.createElement)("form",{className:"edit-post-post-template__create-form",onSubmit:async e=>{if(e.preventDefault(),i)return;c(!0);const r=null!=t?t:(0,s.serialize)([(0,s.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,s.createBlock)("core/site-title"),(0,s.createBlock)("core/site-tagline")]),(0,s.createBlock)("core/separator"),(0,s.createBlock)("core/group",{tagName:"main"},[(0,s.createBlock)("core/group",{layout:{inherit:!0}},[(0,s.createBlock)("core/post-title")]),(0,s.createBlock)("core/post-content",{layout:{inherit:!0}})])]);await n({slug:(0,P.cleanForSlug)(a||Mo),content:r,title:a||Mo}),c(!1),d(),o(!0)}},(0,l.createElement)(_.__experimentalVStack,{spacing:"3"},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:a,onChange:r,placeholder:Mo,disabled:i,help:(0,b.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(_.__experimentalHStack,{justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:d},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit",isBusy:i,"aria-disabled":i},(0,b.__)("Create"))))))}function No({onClose:e}){var t,n;const{isPostsPage:o,availableTemplates:a,fetchedTemplates:r,selectedTemplateSlug:s,canCreate:i,canEdit:c}=(0,u.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEntityRecords:o}=e(Me.store),a=e(T.store).getEditorSettings(),r=t("read","settings")?n("root","site"):void 0,l=e(T.store).getCurrentPostId()===r?.page_for_posts,s=t("create","templates");return{isPostsPage:l,availableTemplates:a.availableTemplates,fetchedTemplates:s?o("postType","wp_template",{post_type:e(T.store).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(T.store).getEditedPostAttribute("template"),canCreate:s&&!l&&a.supportsTemplateMode,canEdit:s&&a.supportsTemplateMode&&!!e(Ht).getEditedPostTemplate()}}),[]),d=(0,l.useMemo)((()=>Object.entries({...a,...Object.fromEntries((null!=r?r:[]).map((({slug:e,title:t})=>[e,t.rendered])))}).map((([e,t])=>({value:e,label:t})))),[a,r]),m=null!==(t=d.find((e=>e.value===s)))&&void 0!==t?t:d.find((e=>!e.value)),{editPost:p}=(0,u.useDispatch)(T.store),{__unstableSwitchToTemplateMode:g}=(0,u.useDispatch)(Ht),[h,f]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:"edit-post-post-template__form"},(0,l.createElement)(E.__experimentalInspectorPopoverHeader,{title:(0,b.__)("Template"),help:(0,b.__)("Templates define the way content is displayed when viewing your site."),actions:i?[{icon:Bo,label:(0,b.__)("Add template"),onClick:()=>f(!0)}]:[],onClose:e}),o?(0,l.createElement)(_.Notice,{className:"edit-post-post-template__notice",status:"warning",isDismissible:!1},(0,b.__)("The posts page template cannot be changed.")):(0,l.createElement)(_.SelectControl,{__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,b.__)("Template"),value:null!==(n=m?.value)&&void 0!==n?n:"",options:d,onChange:e=>p({template:e||""})}),c&&(0,l.createElement)("p",null,(0,l.createElement)(_.Button,{variant:"link",onClick:()=>g()},(0,b.__)("Edit template"))),h&&(0,l.createElement)(Io,{onClose:()=>f(!1)}))}function Ao(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,u.useSelect)((e=>{var t;const n=e(T.store).getCurrentPostType();if(!e(Me.store).getPostType(n)?.viewable)return!1;const o=e(T.store).getEditorSettings();if(!!o.availableTemplates&&Object.keys(o.availableTemplates).length>0)return!0;if(!o.supportsTemplateMode)return!1;return null!==(t=e(Me.store).canUser("create","templates"))&&void 0!==t&&t}),[])?(0,l.createElement)(_.PanelRow,{className:"edit-post-post-template",ref:t},(0,l.createElement)("span",null,(0,b.__)("Template")),(0,l.createElement)(_.Dropdown,{popoverProps:n,className:"edit-post-post-template__dropdown",contentClassName:"edit-post-post-template__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Do,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(No,{onClose:e})})):null}function Do({isOpen:e,onClick:t}){const n=(0,u.useSelect)((e=>{const t=e(T.store).getEditedPostAttribute("template"),{supportsTemplateMode:n,availableTemplates:o}=e(T.store).getEditorSettings();if(!n&&o[t])return o[t];const a=e(Me.store).canUser("create","templates")&&e(Ht).getEditedPostTemplate();return a?.title||a?.slug||o?.[t]}),[]);return(0,l.createElement)(_.Button,{className:"edit-post-post-template__toggle",variant:"tertiary","aria-expanded":e,"aria-label":n?(0,b.sprintf)((0,b.__)("Select template: %s"),n):(0,b.__)("Select template"),onClick:t},null!=n?n:(0,b.__)("Default template"))}function Lo(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(T.PostURLCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-url",ref:t},(0,l.createElement)("span",null,(0,b.__)("URL")),(0,l.createElement)(_.Dropdown,{popoverProps:n,className:"edit-post-post-url__dropdown",contentClassName:"edit-post-post-url__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Vo,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(T.PostURL,{onClose:e})})))}function Vo({isOpen:e,onClick:t}){const n=(0,T.usePostURLLabel)();return(0,l.createElement)(_.Button,{className:"edit-post-post-url__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Change URL: %s"),n),onClick:t},n)}const Oo="post-status";var Fo=(0,f.compose)([(0,u.withSelect)((e=>{const{isEditorPanelRemoved:t,isEditorPanelOpened:n}=e(Ht);return{isRemoved:t(Oo),isOpened:n(Oo)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,u.withDispatch)((e=>({onTogglePanel(){return e(Ht).toggleEditorPanelOpened(Oo)}})))])((function({isOpened:e,onTogglePanel:t}){return(0,l.createElement)(_.PanelBody,{className:"edit-post-post-status",title:(0,b.__)("Summary"),opened:e,onToggle:t},(0,l.createElement)(xo.Slot,null,(e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_o,null),(0,l.createElement)(bo,null),(0,l.createElement)(Ao,null),(0,l.createElement)(Lo,null),(0,l.createElement)(vo,null),(0,l.createElement)(ko,null),(0,l.createElement)(So,null),(0,l.createElement)(wo,null),(0,l.createElement)(yo,null),(0,l.createElement)(T.PostSyncStatus,null),e,(0,l.createElement)(_.__experimentalHStack,{style:{marginTop:"16px"},spacing:4},(0,l.createElement)(T.PostSwitchToDraftButton,null),(0,l.createElement)(Eo,null))))))}));var Ro=function(){return(0,l.createElement)(T.PostLastRevisionCheck,null,(0,l.createElement)(_.PanelBody,{className:"edit-post-last-revision__panel"},(0,l.createElement)(T.PostLastRevision,null)))};var Ho=(0,f.compose)((0,u.withSelect)(((e,t)=>{const n=t.taxonomy?.slug,o=n?`taxonomy-panel-${n}`:"";return{panelName:o,isEnabled:!!n&&e(Ht).isEditorPanelEnabled(o),isOpened:!!n&&e(Ht).isEditorPanelOpened(o)}})),(0,u.withDispatch)(((e,t)=>({onTogglePanel:()=>{e(Ht).toggleEditorPanelOpened(t.panelName)}}))))((function({isEnabled:e,taxonomy:t,isOpened:n,onTogglePanel:o,children:a}){if(!e)return null;const r=t?.labels?.menu_name;return r?(0,l.createElement)(_.PanelBody,{title:r,opened:n,onToggle:o},a):null}));var Go=function(){return(0,l.createElement)(T.PostTaxonomiesCheck,null,(0,l.createElement)(T.PostTaxonomies,{taxonomyWrapper:(e,t)=>(0,l.createElement)(Ho,{taxonomy:t},e)}))};const Uo="featured-image";const zo=(0,u.withSelect)((e=>{const{getEditedPostAttribute:t}=e(T.store),{getPostType:n}=e(Me.store),{isEditorPanelEnabled:o,isEditorPanelOpened:a}=e(Ht);return{postType:n(t("type")),isEnabled:o(Uo),isOpened:a(Uo)}})),$o=(0,u.withDispatch)((e=>{const{toggleEditorPanelOpened:t}=e(Ht);return{onTogglePanel:(...e)=>t(Uo,...e)}}));var Wo=(0,f.compose)(zo,$o)((function({isEnabled:e,isOpened:t,postType:n,onTogglePanel:o}){var a;return e?(0,l.createElement)(T.PostFeaturedImageCheck,null,(0,l.createElement)(_.PanelBody,{title:null!==(a=n?.labels?.featured_image)&&void 0!==a?a:(0,b.__)("Featured image"),opened:t,onToggle:o},(0,l.createElement)(T.PostFeaturedImage,null))):null}));const qo="post-excerpt";var Zo=(0,f.compose)([(0,u.withSelect)((e=>({isEnabled:e(Ht).isEditorPanelEnabled(qo),isOpened:e(Ht).isEditorPanelOpened(qo)}))),(0,u.withDispatch)((e=>({onTogglePanel(){return e(Ht).toggleEditorPanelOpened(qo)}})))])((function({isEnabled:e,isOpened:t,onTogglePanel:n}){return e?(0,l.createElement)(T.PostExcerptCheck,null,(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Excerpt"),opened:t,onToggle:n},(0,l.createElement)(T.PostExcerpt,null))):null}));const jo="discussion-panel";var Ko=(0,f.compose)([(0,u.withSelect)((e=>({isEnabled:e(Ht).isEditorPanelEnabled(jo),isOpened:e(Ht).isEditorPanelOpened(jo)}))),(0,u.withDispatch)((e=>({onTogglePanel(){return e(Ht).toggleEditorPanelOpened(jo)}})))])((function({isEnabled:e,isOpened:t,onTogglePanel:n}){return e?(0,l.createElement)(T.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Discussion"),opened:t,onToggle:n},(0,l.createElement)(T.PostTypeSupportCheck,{supportKeys:"comments"},(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PostComments,null))),(0,l.createElement)(T.PostTypeSupportCheck,{supportKeys:"trackbacks"},(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PostPingbacks,null))))):null}));const Yo="page-attributes";var Xo=function(){var e;const{isEnabled:t,isOpened:n,postType:o}=(0,u.useSelect)((e=>{const{getEditedPostAttribute:t}=e(T.store),{isEditorPanelEnabled:n,isEditorPanelOpened:o}=e(Ht),{getPostType:a}=e(Me.store);return{isEnabled:n(Yo),isOpened:o(Yo),postType:a(t("type"))}}),[]),{toggleEditorPanelOpened:a}=(0,u.useDispatch)(Ht);return t&&o?(0,l.createElement)(T.PageAttributesCheck,null,(0,l.createElement)(_.PanelBody,{title:null!==(e=o?.labels?.attributes)&&void 0!==e?e:(0,b.__)("Page attributes"),opened:n,onToggle:(...e)=>a(Yo,...e)},(0,l.createElement)(T.PageAttributesParent,null),(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PageAttributesOrder,null)))):null};var Qo=function({location:e}){const t=(0,l.useRef)(null),n=(0,l.useRef)(null);(0,l.useEffect)((()=>(n.current=document.querySelector(".metabox-location-"+e),n.current&&t.current.appendChild(n.current),()=>{n.current&&document.querySelector("#metaboxes").appendChild(n.current)})),[e]);const o=(0,u.useSelect)((e=>e(Ht).isSavingMetaBoxes()),[]),a=V()("edit-post-meta-boxes-area",`is-${e}`,{"is-loading":o});return(0,l.createElement)("div",{className:a},o&&(0,l.createElement)(_.Spinner,null),(0,l.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:t}),(0,l.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))};class Jo extends l.Component{componentDidMount(){this.updateDOM()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}updateDOM(){const{id:e,isVisible:t}=this.props,n=document.getElementById(e);n&&(t?n.classList.remove("is-hidden"):n.classList.add("is-hidden"))}render(){return null}}var ea=(0,u.withSelect)(((e,{id:t})=>({isVisible:e(Ht).isEditorPanelEnabled(`meta-box-${t}`)})))(Jo);function ta({location:e}){const t=(0,u.useRegistry)(),{metaBoxes:n,areMetaBoxesInitialized:o,isEditorReady:a}=(0,u.useSelect)((t=>{const{__unstableIsEditorReady:n}=t(T.store),{getMetaBoxesPerLocation:o,areMetaBoxesInitialized:a}=t(Ht);return{metaBoxes:o(e),areMetaBoxesInitialized:a(),isEditorReady:n()}}),[e]);return(0,l.useEffect)((()=>{a&&!o&&t.dispatch(Ht).initializeMetaBoxes()}),[a,o]),o?(0,l.createElement)(l.Fragment,null,(null!=n?n:[]).map((({id:e})=>(0,l.createElement)(ea,{key:e,id:e}))),(0,l.createElement)(Qo,{location:e})):null}window.wp.warning;const{Fill:na,Slot:oa}=(0,_.createSlotFill)("PluginDocumentSettingPanel"),aa=(0,f.compose)((0,k.withPluginContext)(((e,t)=>(void 0===t.name&&"undefined"!=typeof process&&process.env,{panelName:`${e.name}/${t.name}`}))),(0,u.withSelect)(((e,{panelName:t})=>({opened:e(Ht).isEditorPanelOpened(t),isEnabled:e(Ht).isEditorPanelEnabled(t)}))),(0,u.withDispatch)(((e,{panelName:t})=>({onToggle(){return e(Ht).toggleEditorPanelOpened(t)}}))))((({isEnabled:e,panelName:t,opened:n,onToggle:o,className:a,title:r,icon:s,children:i})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wn,{label:r,panelName:t}),(0,l.createElement)(na,null,e&&(0,l.createElement)(_.PanelBody,{className:a,title:r,icon:s,opened:n,onToggle:o},i)))));aa.Slot=oa;var ra=aa;function la({className:e,...t}){const{postTitle:n,shortcut:o,showIconLabels:a}=(0,u.useSelect)((e=>({postTitle:e(T.store).getEditedPostAttribute("title"),shortcut:e(qt.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),showIconLabels:e(Ht).isFeatureActive("showIconLabels")})),[]);return(0,l.createElement)(ge,{panelClassName:e,className:"edit-post-sidebar",smallScreenTitle:n||(0,b.__)("(no title)"),scope:"core/edit-post",toggleShortcut:o,showIconLabels:a,...t})}var sa=function(){const e=(0,u.useSelect)((e=>{const{getEditedPostTemplate:t}=e(Ht);return t()}),[]);return e?(0,l.createElement)(_.PanelBody,null,(0,l.createElement)(_.Flex,{align:"flex-start",gap:"3"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(we,{icon:eo})),(0,l.createElement)(_.FlexBlock,null,(0,l.createElement)("h2",{className:"edit-post-template-summary__title"},e?.title||e?.slug),(0,l.createElement)("p",null,e?.description)))):null};const ia=l.Platform.select({web:!0,native:!1});var ca=()=>{const{sidebarName:e,keyboardShortcut:t,isTemplateMode:n}=(0,u.useSelect)((e=>{let t=e(te).getActiveComplementaryArea(Ht.name);["edit-post/document","edit-post/block"].includes(t)||(e(E.store).getBlockSelectionStart()&&(t="edit-post/block"),t="edit-post/document");return{sidebarName:t,keyboardShortcut:e(qt.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),isTemplateMode:e(Ht).isEditingTemplate()}}),[]);return(0,l.createElement)(la,{identifier:e,header:(0,l.createElement)(go,{sidebarName:e}),closeLabel:(0,b.__)("Close Settings"),headerClassName:"edit-post-sidebar__panel-tabs",title:(0,b.__)("Settings"),toggleShortcut:t,icon:(0,b.isRTL)()?mo:po,isActiveByDefault:ia},!n&&"edit-post/document"===e&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Fo,null),(0,l.createElement)(ra.Slot,null),(0,l.createElement)(Ro,null),(0,l.createElement)(Go,null),(0,l.createElement)(Wo,null),(0,l.createElement)(Zo,null),(0,l.createElement)(Ko,null),(0,l.createElement)(Xo,null),(0,l.createElement)(ta,{location:"side"})),n&&"edit-post/document"===e&&(0,l.createElement)(sa,null),"edit-post/block"===e&&(0,l.createElement)(E.BlockInspector,null))};function da({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-post-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function ua(){const{toggleFeature:e}=(0,u.useDispatch)(Ht);return(0,l.createElement)(_.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,b.__)("Welcome to the block editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("welcomeGuide"),pages:[{image:(0,l.createElement)(da,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Welcome to the block editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.")))},{image:(0,l.createElement)(da,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Make each block your own")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:(0,l.createElement)(da,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Get to know the block library")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,l.createInterpolateElement)((0,b.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the icon."),{InserterIconImage:(0,l.createElement)("img",{alt:(0,b.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,l.createElement)(da,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Learn how to use the block editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("New to the block editor? Want to learn more about using it? "),(0,l.createElement)(_.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,b.__)("Here's a detailed guide."))))}]})}function ma(){const{toggleFeature:e}=(0,u.useDispatch)(Ht);return(0,l.createElement)(_.Guide,{className:"edit-template-welcome-guide",contentLabel:(0,b.__)("Welcome to the template editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("welcomeGuideTemplate"),pages:[{image:(0,l.createElement)(da,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Welcome to the template editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.")))}]})}function pa(){const{isActive:e,isTemplateMode:t}=(0,u.useSelect)((e=>{const{isFeatureActive:t,isEditingTemplate:n}=e(Ht),o=n();return{isActive:t(o?"welcomeGuideTemplate":"welcomeGuide"),isTemplateMode:o}}),[]);return e?t?(0,l.createElement)(ma,null):(0,l.createElement)(ua,null):null}const{Fill:ga,Slot:ha}=(0,_.createSlotFill)("PluginPostPublishPanel"),_a=(0,f.compose)((0,k.withPluginContext)(((e,t)=>({icon:t.icon||e.icon}))))((({children:e,className:t,title:n,initialOpen:o=!1,icon:a})=>(0,l.createElement)(ga,null,(0,l.createElement)(_.PanelBody,{className:t,initialOpen:o||!n,title:n,icon:a},e))));_a.Slot=ha;var Ea=_a;const{Fill:ba,Slot:fa}=(0,_.createSlotFill)("PluginPrePublishPanel"),va=(0,f.compose)((0,k.withPluginContext)(((e,t)=>({icon:t.icon||e.icon}))))((({children:e,className:t,title:n,initialOpen:o=!1,icon:a})=>(0,l.createElement)(ba,null,(0,l.createElement)(_.PanelBody,{className:t,initialOpen:o||!n,title:n,icon:a},e))));va.Slot=fa;var ya=va;const{Fill:wa,Slot:Sa}=(0,_.createSlotFill)("ActionsPanel");function ka({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}){const{closePublishSidebar:o,togglePublishSidebar:a}=(0,u.useDispatch)(Ht),{publishSidebarOpened:r,hasActiveMetaboxes:s,isSavingMetaBoxes:i,hasNonPostEntityChanges:c}=(0,u.useSelect)((e=>({publishSidebarOpened:e(Ht).isPublishSidebarOpened(),hasActiveMetaboxes:e(Ht).hasMetaBoxes(),isSavingMetaBoxes:e(Ht).isSavingMetaBoxes(),hasNonPostEntityChanges:e(T.store).hasNonPostEntityChanges()})),[]),d=(0,l.useCallback)((()=>e(!0)),[]);let m;return m=r?(0,l.createElement)(T.PostPublishPanel,{onClose:o,forceIsDirty:s,forceIsSaving:i,PrePublishExtension:ya.Slot,PostPublishExtension:Ea.Slot}):c?(0,l.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},(0,b.__)("Open save panel"))):(0,l.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-publish-panel-button",onClick:a,"aria-expanded":!1},(0,b.__)("Open publish panel"))),(0,l.createElement)(l.Fragment,null,n&&(0,l.createElement)(T.EntitiesSavedStates,{close:t}),(0,l.createElement)(Sa,{bubblesVirtually:!0}),!n&&m)}function Pa(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,u.useSelect)((e=>{const{getPatternsByBlockTypes:t}=e(E.store),{getCurrentPostType:n}=e(T.store);return{blockPatternsWithPostContentBlockType:t("core/post-content"),postType:n()}}),[]);return(0,l.useMemo)((()=>e.filter((e=>"page"===t&&!e.postTypes||Array.isArray(e.postTypes)&&e.postTypes.includes(t)))),[t,e])}function Ca({onChoosePattern:e}){const t=Pa(),n=(0,f.useAsyncList)(t),{resetEditorBlocks:o}=(0,u.useDispatch)(T.store);return(0,l.createElement)(E.__experimentalBlockPatternsList,{blockPatterns:t,shownPatterns:n,onClickPattern:(t,n)=>{o(n),e()}})}const Ta="INITIAL",xa="PATTERN",Ba="CLOSED";function Ma(){const[e,t]=(0,l.useState)(Ta),n=Pa().length>0,o=(0,u.useSelect)((t=>{if(!n||e!==Ta)return!1;const{getEditedPostContent:o,isEditedPostSaveable:a}=t(T.store),{isEditingTemplate:r,isFeatureActive:l}=t(Ht);return!a()&&""===o()&&!r()&&!l("welcomeGuide")}),[e,n]);return(0,l.useEffect)((()=>{o&&t(xa)}),[o]),e===Ta||e===Ba?null:(0,l.createElement)(_.Modal,{className:"edit-post-start-page-options__modal",title:(0,b.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:()=>{t(Ba)}},(0,l.createElement)("div",{className:"edit-post-start-page-options__modal-content"},e===xa&&(0,l.createElement)(Ca,{onChoosePattern:()=>{t(Ba)}})))}const Ia={header:(0,b.__)("Editor top bar"),body:(0,b.__)("Editor content"),sidebar:(0,b.__)("Editor settings"),actions:(0,b.__)("Editor publish"),footer:(0,b.__)("Editor footer")};var Na=function({styles:e}){const t=(0,f.useViewportMatch)("medium","<"),n=(0,f.useViewportMatch)("huge",">="),o=(0,f.useViewportMatch)("large"),{openGeneralSidebar:a,closeGeneralSidebar:r,setIsInserterOpened:s}=(0,u.useDispatch)(Ht),{createErrorNotice:i}=(0,u.useDispatch)(C.store),{mode:c,isFullscreenActive:d,isRichEditingEnabled:m,sidebarIsOpened:p,hasActiveMetaboxes:g,hasFixedToolbar:h,previousShortcut:v,nextShortcut:y,hasBlockSelected:w,isInserterOpened:S,isListViewOpened:P,showIconLabels:x,isDistractionFree:B,showBlockBreadcrumbs:M,isTemplateMode:I,documentLabel:N}=(0,u.useSelect)((e=>{const{getEditorSettings:t,getPostTypeLabel:n}=e(T.store),o=t(),a=n();return{isTemplateMode:e(Ht).isEditingTemplate(),hasFixedToolbar:e(Ht).isFeatureActive("fixedToolbar"),sidebarIsOpened:!(!e(te).getActiveComplementaryArea(Ht.name)&&!e(Ht).isPublishSidebarOpened()),isFullscreenActive:e(Ht).isFeatureActive("fullscreenMode"),isInserterOpened:e(Ht).isInserterOpened(),isListViewOpened:e(Ht).isListViewOpened(),mode:e(Ht).getEditorMode(),isRichEditingEnabled:o.richEditingEnabled,hasActiveMetaboxes:e(Ht).hasMetaBoxes(),previousShortcut:e(qt.store).getAllShortcutKeyCombinations("core/edit-post/previous-region"),nextShortcut:e(qt.store).getAllShortcutKeyCombinations("core/edit-post/next-region"),showIconLabels:e(Ht).isFeatureActive("showIconLabels"),isDistractionFree:e(Ht).isFeatureActive("distractionFree"),showBlockBreadcrumbs:e(Ht).isFeatureActive("showBlockBreadcrumbs"),documentLabel:a||(0,b._x)("Document","noun")}}),[]);(0,l.useEffect)((()=>{p&&!n&&s(!1)}),[p,n]),(0,l.useEffect)((()=>{S&&!n&&r()}),[S,n]);const[A,D]=(0,l.useState)(!1),L=(0,l.useCallback)((e=>{"function"==typeof A&&A(e),D(!1)}),[A]),O=V()("edit-post-layout","is-mode-"+c,{"is-sidebar-opened":p,"has-fixed-toolbar":h,"has-metaboxes":g,"show-icon-labels":x,"is-distraction-free":B&&o,"is-entity-save-view-open":!!A}),F=P?(0,b.__)("Document Overview"):(0,b.__)("Block Library");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(he,{isActive:d}),(0,l.createElement)(In,null),(0,l.createElement)(T.UnsavedChangesWarning,null),(0,l.createElement)(T.AutosaveMonitor,null),(0,l.createElement)(T.LocalAutosaveMonitor,null),(0,l.createElement)(rn,null),(0,l.createElement)(T.EditorKeyboardShortcutsRegister,null),(0,l.createElement)(ca,null),(0,l.createElement)(be,{isDistractionFree:B&&o,className:O,labels:{...Ia,secondarySidebar:F},header:(0,l.createElement)(ao,{setEntitiesSavedStatesCallback:D}),editorNotices:(0,l.createElement)(T.EditorNotices,null),secondarySidebar:"visual"===c&&S?(0,l.createElement)(lo,null):"visual"===c&&P?(0,l.createElement)(uo,null):null,sidebar:(!t||p)&&(0,l.createElement)(l.Fragment,null,!t&&!p&&(0,l.createElement)("div",{className:"edit-post-layout__toggle-sidebar-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-sidebar-panel-button",onClick:()=>a(w?"edit-post/block":"edit-post/document"),"aria-expanded":!1},w?(0,b.__)("Open block settings"):(0,b.__)("Open document settings"))),(0,l.createElement)(ge.Slot,{scope:"core/edit-post"})),notices:(0,l.createElement)(T.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,!B&&(0,l.createElement)(T.EditorNotices,null),("text"===c||!m)&&(0,l.createElement)(Kt,null),m&&"visual"===c&&(0,l.createElement)(an,{styles:e}),!B&&!I&&(0,l.createElement)("div",{className:"edit-post-layout__metaboxes"},(0,l.createElement)(ta,{location:"normal"}),(0,l.createElement)(ta,{location:"advanced"})),t&&p&&(0,l.createElement)(_.ScrollLock,null)),footer:!B&&!t&&M&&m&&"visual"===c&&(0,l.createElement)("div",{className:"edit-post-layout__footer"},(0,l.createElement)(E.BlockBreadcrumb,{rootLabelText:N})),actions:(0,l.createElement)(ka,{closeEntitiesSavedStates:L,isEntitiesSavedStatesOpen:A,setEntitiesSavedStatesCallback:D}),shortcuts:{previous:v,next:y}}),(0,l.createElement)(Bn,null),(0,l.createElement)(hn,null),(0,l.createElement)(pa,null),(0,l.createElement)(Ma,null),(0,l.createElement)(_.Popover.Slot,null),(0,l.createElement)(k.PluginArea,{onError:function(e){i((0,b.sprintf)((0,b.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}))};function Aa({postId:e}){return(e=>{const{hasBlockSelection:t,isEditorSidebarOpened:n}=(0,u.useSelect)((e=>({hasBlockSelection:!!e(E.store).getBlockSelectionStart(),isEditorSidebarOpened:e(Rt).isEditorSidebarOpened()})),[e]),{openGeneralSidebar:o}=(0,u.useDispatch)(Rt);(0,l.useEffect)((()=>{n&&o(t?"edit-post/block":"edit-post/document")}),[t,n])})(e),(e=>{const{newPermalink:t}=(0,u.useSelect)((e=>({newPermalink:e(T.store).getCurrentPost().link})),[e]),n=(0,l.useRef)();(0,l.useEffect)((()=>{n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),(0,l.useEffect)((()=>{t&&n.current&&n.current.setAttribute("href",t)}),[t])})(e),null}var Da=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var La=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var Va=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));const{ExperimentalEditorProvider:Oa}=Qt(T.privateApis),{getLayoutStyles:Fa}=Qt(E.privateApis),{useCommands:Ra}=Qt(jt.privateApis);var Ha=function({postId:e,postType:t,settings:n,initialEdits:o,...a}){Ra(),function(){const{openGeneralSidebar:e,closeGeneralSidebar:t,switchEditorMode:n}=(0,u.useDispatch)(Ht),{editorMode:o,activeSidebar:a}=(0,u.useSelect)((e=>({activeSidebar:e(te).getActiveComplementaryArea(Ht.name),editorMode:e(Ht).getEditorMode()})),[]),{toggle:r}=(0,u.useDispatch)(p.store);(0,Zt.useCommand)({name:"core/open-settings-sidebar",label:(0,b.__)("Toggle settings sidebar"),icon:(0,b.isRTL)()?mo:po,callback:({close:n})=>{n(),"edit-post/document"===a?t():e("edit-post/document")}}),(0,Zt.useCommand)({name:"core/open-block-inspector",label:(0,b.__)("Toggle block inspector"),icon:Da,callback:({close:n})=>{n(),"edit-post/block"===a?t():e("edit-post/block")}}),(0,Zt.useCommand)({name:"core/toggle-distraction-free",label:(0,b.__)("Toggle distraction free"),icon:La,callback:({close:e})=>{r("core/edit-post","distractionFree"),e()}}),(0,Zt.useCommand)({name:"core/toggle-spotlight-mode",label:(0,b.__)("Toggle spotlight mode"),icon:La,callback:({close:e})=>{r("core/edit-post","focusMode"),e()}}),(0,Zt.useCommand)({name:"core/toggle-top-toolbar",label:(0,b.__)("Toggle top toolbar"),icon:La,callback:({close:e})=>{r("core/edit-post","fixedToolbar"),e()}}),(0,Zt.useCommand)({name:"core/toggle-code-editor",label:(0,b.__)("Toggle code editor"),icon:Va,callback:({close:e})=>{n("visual"===o?"text":"visual"),e()}})}();const{hasFixedToolbar:r,focusMode:i,isDistractionFree:c,hasInlineToolbar:d,hasThemeStyles:m,post:g,preferredStyleVariations:h,hiddenBlockTypes:E,blockTypes:f,keepCaretInsideBlock:v,isTemplateMode:y,template:w}=(0,u.useSelect)((n=>{var o;const{isFeatureActive:a,__experimentalGetPreviewDeviceType:r,isEditingTemplate:l,getEditedPostTemplate:i,getHiddenBlockTypes:c}=n(Ht),{getEntityRecord:d,getPostType:u,getEntityRecords:m,canUser:g}=n(Me.store),{getEditorSettings:h}=n(T.store),{getBlockTypes:_}=n(s.store);let E;if(["wp_template","wp_template_part"].includes(t)){E=m("postType",t,{wp_id:e})?.[0]}else E=d("postType",t,e);const b=h().supportsTemplateMode,f=null!==(o=u(t)?.viewable)&&void 0!==o&&o,v=g("create","templates");return{hasFixedToolbar:a("fixedToolbar")||"Desktop"!==r(),focusMode:a("focusMode"),isDistractionFree:a("distractionFree"),hasInlineToolbar:a("inlineToolbar"),hasThemeStyles:a("themeStyles"),preferredStyleVariations:n(p.store).get("core/edit-post","preferredStyleVariations"),hiddenBlockTypes:c(),blockTypes:_(),keepCaretInsideBlock:a("keepCaretInsideBlock"),isTemplateMode:l(),template:b&&f&&v?i():null,post:E}}),[t,e]),{updatePreferredStyleVariations:S,setIsInserterOpened:k}=(0,u.useDispatch)(Ht),P=(0,l.useMemo)((()=>{const e={...n,__experimentalPreferredStyleVariations:{value:h,onChange:S},hasFixedToolbar:r,focusMode:i,isDistractionFree:c,hasInlineToolbar:d,__experimentalSetIsInserterOpened:k,keepCaretInsideBlock:v,defaultAllowedBlockTypes:n.allowedBlockTypes};if(E.length>0){const t=!0===n.allowedBlockTypes?f.map((({name:e})=>e)):n.allowedBlockTypes||[];e.allowedBlockTypes=t.filter((e=>!E.includes(e)))}return e}),[n,r,d,i,c,E,f,h,k,S,v]),C=(0,l.useMemo)((()=>{const e=[],t=[];n.styles?.forEach((n=>{n.__unstableType&&"theme"!==n.__unstableType?t.push(n):e.push(n)}));const o=[...n.defaultEditorStyles,...t];return n.disableLayoutStyles||m&&e.length||o.push({css:Fa({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})}),m&&e.length?n.styles:o}),[n,m]);return g?(0,l.createElement)(qt.ShortcutProvider,null,(0,l.createElement)(_.SlotFillProvider,null,(0,l.createElement)(Oa,{settings:P,post:g,initialEdits:o,useSubRegistry:!1,__unstableTemplate:y?w:void 0,...a},(0,l.createElement)(T.ErrorBoundary,null,(0,l.createElement)(Zt.CommandMenu,null),(0,l.createElement)(Aa,{postId:e}),(0,l.createElement)(Na,{styles:C})),(0,l.createElement)(T.PostLockedModal,null)))):null};var Ga=({allowedBlocks:e,icon:t,label:n,onClick:o,small:a,role:r})=>(0,l.createElement)(E.BlockSettingsMenuControls,null,(({selectedBlocks:s,onClose:i})=>((e,t)=>{return!Array.isArray(t)||(n=t,0===e.filter((e=>!n.includes(e))).length);var n})(s,e)?(0,l.createElement)(_.MenuItem,{onClick:(0,f.compose)(o,i),icon:t,label:a?n:void 0,role:r},!a&&n):null)),Ua=(0,f.compose)((0,k.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:_.MenuItem,icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(se);function za(e){return(0,l.createElement)(ce,{__unstableExplicitMenuItem:!0,scope:"core/edit-post",...e})}function $a(e,t,n,o,a){const r=document.getElementById(e),c=(0,l.createRoot)(r);(0,u.dispatch)(p.store).setDefaults("core/edit-post",{editorMode:"visual",fixedToolbar:!1,fullscreenMode:!0,hiddenBlockTypes:[],inactivePanels:[],isPublishSidebarEnabled:!0,openPanels:["post-status"],preferredStyleVariations:{},showBlockBreadcrumbs:!0,showIconLabels:!1,showListViewByDefault:!1,themeStyles:!0,welcomeGuide:!0,welcomeGuideTemplate:!0}),(0,u.dispatch)(s.store).__experimentalReapplyBlockTypeFilters(),(0,u.select)(Ht).isFeatureActive("showListViewByDefault")&&(0,u.dispatch)(Ht).setIsListViewOpened(!0),(0,i.registerCoreBlocks)(),(0,g.registerLegacyWidgetBlock)({inserter:!1}),(0,g.registerWidgetGroupBlock)({inserter:!1}),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",((e,t)=>!(!(0,u.select)(Ht).isEditingTemplate()&&"core/template-part"===t.name)&&e)),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",((e,t,n,{getBlockParentsByBlockName:o})=>(0,u.select)(Ht).isEditingTemplate()||"core/post-content"!==t.name?e:o(n,"core/query").length>0));"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.");return-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(e=>{const t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),c.render((0,l.createElement)(Ha,{settings:o,postId:n,postType:t,initialEdits:a})),c}function Wa(){d()("wp.editPost.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editPost=o}(); \ No newline at end of file +*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;th.MediaUpload));var _=window.wp.components,E=window.wp.blockEditor,b=window.wp.i18n,f=window.wp.compose;const v=(0,f.compose)((0,u.withSelect)(((e,t)=>{if((0,s.hasBlockSupport)(t.name,"multiple",!0))return{};const n=e(E.store).getBlocks().find((({name:e})=>t.name===e));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),(0,u.withDispatch)(((e,{originalBlockClientId:t})=>({selectFirst:()=>e(E.store).selectBlock(t)})))),y=(0,f.createHigherOrderComponent)((e=>v((({originalBlockClientId:t,selectFirst:n,...o})=>{if(!t)return(0,l.createElement)(e,{...o});const a=(0,s.getBlockType)(o.name),r=function(e){const t=(0,s.findTransform)((0,s.getBlockTransforms)("to",e),(({type:e,blocks:t})=>"block"===e&&1===t.length));if(!t)return null;return(0,s.getBlockType)(t.blocks[0])}(o.name);return[(0,l.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},(0,l.createElement)(e,{key:"block-edit",...o})),(0,l.createElement)(E.Warning,{key:"multiple-use-warning",actions:[(0,l.createElement)(_.Button,{key:"find-original",variant:"secondary",onClick:n},(0,b.__)("Find original")),(0,l.createElement)(_.Button,{key:"remove",variant:"secondary",onClick:()=>o.onReplace([])},(0,b.__)("Remove")),r&&(0,l.createElement)(_.Button,{key:"transform",variant:"secondary",onClick:()=>o.onReplace((0,s.createBlock)(r.name,o.attributes))},(0,b.__)("Transform into:")," ",r.title)]},(0,l.createElement)("strong",null,a?.title,": "),(0,b.__)("This block can only be used once."))]}))),"withMultipleValidation");(0,m.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",y);var w=window.wp.primitives;var S=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),k=window.wp.plugins,P=window.wp.url,C=window.wp.notices,T=window.wp.editor;function x(){const{createNotice:e}=(0,u.useDispatch)(C.store),t=(0,u.useSelect)((e=>()=>e(T.store).getEditedPostAttribute("content")),[]);const n=(0,f.useCopyToClipboard)(t,(function(){e("info",(0,b.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(_.MenuItem,{ref:n},(0,b.__)("Copy all blocks"))}var M=window.wp.keycodes,B=n(4403),I=n.n(B);var N=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var L=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));var A=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),D=window.wp.viewport;var V=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const O=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),F=(e,t)=>({registry:n,dispatch:o})=>{if(!t)return;n.select(p.store).get(e,"isComplementaryAreaVisible")||n.dispatch(p.store).set(e,"isComplementaryAreaVisible",!0),o({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},R=e=>({registry:t})=>{t.select(p.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(p.store).set(e,"isComplementaryAreaVisible",!1)},H=(e,t)=>({registry:n})=>{if(!t)return;const o=n.select(p.store).get(e,"pinnedItems");!0!==o?.[t]&&n.dispatch(p.store).set(e,"pinnedItems",{...o,[t]:!0})},G=(e,t)=>({registry:n})=>{if(!t)return;const o=n.select(p.store).get(e,"pinnedItems");n.dispatch(p.store).set(e,"pinnedItems",{...o,[t]:!1})};function U(e,t){return function({registry:n}){d()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(p.store).toggle(e,t)}}function z(e,t,n){return function({registry:o}){d()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),o.dispatch(p.store).set(e,t,!!n)}}function Z(e,t){return function({registry:n}){d()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(p.store).setDefaults(e,t)}}function $(e){return{type:"OPEN_MODAL",name:e}}function W(){return{type:"CLOSE_MODAL"}}const q=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get(n,"isComplementaryAreaVisible");if(void 0!==o)return!1===o?null:t?.complementaryAreas?.[n]})),j=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get(n,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[n];return o&&void 0===a})),K=(0,u.createRegistrySelector)((e=>(t,n,o)=>{var a;return null===(a=e(p.store).get(n,"pinnedItems")?.[o])||void 0===a||a})),Y=(0,u.createRegistrySelector)((e=>(t,n,o)=>(d()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(p.store).get(n,o))));function X(e,t){return e.activeModal===t}var Q=(0,u.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return e[n]?e:{...e,[n]:o}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return{...e,[n]:o}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const J=(0,u.createReduxStore)("core/interface",{reducer:Q,actions:e,selectors:t});(0,u.register)(J);var ee=(0,k.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var te=ee((function({as:e=_.Button,scope:t,identifier:n,icon:o,selectedIcon:a,name:r,...s}){const i=e,c=(0,u.useSelect)((e=>e(J).getActiveComplementaryArea(t)===n),[n]),{enableComplementaryArea:d,disableComplementaryArea:m}=(0,u.useDispatch)(J);return(0,l.createElement)(i,{icon:a&&c?a:o,onClick:()=>{c?m(t):d(t,n)},...s})}));var ne=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:o})=>{const a=(0,l.createElement)(te,{icon:V,...o});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),a),(0,l.createElement)("div",{className:I()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,a))};const oe=()=>{};function ae({name:e,as:t=_.Button,onClick:n,...o}){return(0,l.createElement)(_.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||oe)(...t),(e||oe)(...t)}:void 0,...o})))}ae.Slot=function({name:e,as:t=_.ButtonGroup,fillProps:n={},bubblesVirtually:o,...a}){return(0,l.createElement)(_.Slot,{name:e,bubblesVirtually:o,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const o=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...a},o)}))};var re=ae;const le=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(_.MenuItem,{...n});function se({scope:e,target:t,__unstableExplicitMenuItem:n,...o}){return(0,l.createElement)(te,{as:o=>(0,l.createElement)(re,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:le,name:`${e}/plugin-more-menu`,...o}),role:"menuitemcheckbox",selectedIcon:N,name:t,scope:e,...o})}function ie({scope:e,...t}){return(0,l.createElement)(_.Fill,{name:`PinnedItems/${e}`,...t})}ie.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(_.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:I()(t,"interface-pinned-items")},e)))};var ce=ie;function de({scope:e,children:t,className:n}){return(0,l.createElement)(_.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{className:n},t))}const ue=ee((function({children:e,className:t,closeLabel:n=(0,b.__)("Close plugin"),identifier:o,header:a,headerClassName:r,icon:s,isPinnable:i=!0,panelClassName:c,scope:d,name:m,smallScreenTitle:p,title:g,toggleShortcut:h,isActiveByDefault:E,showIconLabels:f=!1}){const{isLoading:v,isActive:y,isPinned:w,activeArea:S,isSmall:k,isLarge:P}=(0,u.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:a}=e(J),r=t(d);return{isLoading:n(d),isActive:r===o,isPinned:a(d,o),activeArea:r,isSmall:e(D.store).isViewportMatch("< medium"),isLarge:e(D.store).isViewportMatch("large")}}),[o,d]);!function(e,t,n,o,a){const r=(0,l.useRef)(!1),s=(0,l.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:c}=(0,u.useDispatch)(J);(0,l.useEffect)((()=>{o&&a&&!r.current?(c(e),s.current=!0):s.current&&!a&&r.current?(s.current=!1,i(e,t)):s.current&&n&&n!==t&&(s.current=!1),a!==r.current&&(r.current=a)}),[o,a,e,t,n])}(d,o,S,y,k);const{enableComplementaryArea:C,disableComplementaryArea:T,pinItem:x,unpinItem:M}=(0,u.useDispatch)(J);return(0,l.useEffect)((()=>{E&&void 0===S&&!k?C(d,o):void 0===S&&k&&T(d,o)}),[S,E,d,o,k]),(0,l.createElement)(l.Fragment,null,i&&(0,l.createElement)(ce,{scope:d},w&&(0,l.createElement)(te,{scope:d,identifier:o,isPressed:y&&(!f||P),"aria-expanded":y,"aria-disabled":v,label:g,icon:f?N:s,showTooltip:!f,variant:f?"tertiary":void 0})),m&&i&&(0,l.createElement)(se,{target:m,scope:d,icon:s},g),y&&(0,l.createElement)(de,{className:I()("interface-complementary-area",t),scope:d},(0,l.createElement)(ne,{className:r,closeLabel:n,onClose:()=>T(d),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:h,scope:d,identifier:o}},a||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,g),i&&(0,l.createElement)(_.Button,{className:"interface-complementary-area__pin-unpin-item",icon:w?L:A,label:w?(0,b.__)("Unpin from toolbar"):(0,b.__)("Pin to toolbar"),onClick:()=>(w?M:x)(d,o),isPressed:w,"aria-expanded":w}))),(0,l.createElement)(_.Panel,{className:c},e)))}));ue.Slot=function({scope:e,...t}){return(0,l.createElement)(_.Slot,{name:`ComplementaryArea/${e}`,...t})};var me=ue;var pe=({isActive:e})=>((0,l.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,l.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);function ge({children:e,className:t,ariaLabel:n,as:o="div",...a}){return(0,l.createElement)(o,{className:I()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...a},e)}const he={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var _e=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:o,sidebar:a,secondarySidebar:r,notices:s,content:i,actions:c,labels:d,className:u,enableRegionNavigation:m=!0,shortcuts:p},g){const h=(0,_.__unstableUseNavigateRegions)(p);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const E={...{header:(0,b.__)("Header"),body:(0,b.__)("Content"),secondarySidebar:(0,b.__)("Block Library"),sidebar:(0,b.__)("Settings"),actions:(0,b.__)("Publish"),footer:(0,b.__)("Footer")},...d};return(0,l.createElement)("div",{...m?h:{},ref:(0,f.useMergeRefs)([g,m?h.ref:void 0]),className:I()(u,"interface-interface-skeleton",h.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(ge,{as:_.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":E.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:he,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},o),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!r&&(0,l.createElement)(ge,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:E.secondarySidebar},r),!!s&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},s),(0,l.createElement)(ge,{className:"interface-interface-skeleton__content",ariaLabel:E.body},i),!!a&&(0,l.createElement)(ge,{className:"interface-interface-skeleton__sidebar",ariaLabel:E.sidebar},a),!!c&&(0,l.createElement)(ge,{className:"interface-interface-skeleton__actions",ariaLabel:E.actions},c))),!!t&&(0,l.createElement)(ge,{className:"interface-interface-skeleton__footer",ariaLabel:E.footer},t))}));var Ee=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function be({as:e=_.DropdownMenu,className:t,label:n=(0,b.__)("Options"),popoverProps:o,toggleProps:a,children:r}){return(0,l.createElement)(e,{className:I()("interface-more-menu-dropdown",t),icon:Ee,label:n,popoverProps:{placement:"bottom-end",...o,className:I()("interface-more-menu-dropdown__content",o?.className)},toggleProps:{tooltipPosition:"bottom",...a}},(e=>r(e)))}function fe({closeModal:e,children:t}){return(0,l.createElement)(_.Modal,{className:"interface-preferences-modal",title:(0,b.__)("Preferences"),onRequestClose:e},t)}var ve=function({icon:e,size:t=24,...n}){return(0,l.cloneElement)(e,{width:t,height:t,...n})};var ye=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var we=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const Se="preferences-menu";function ke({sections:e}){const t=(0,f.useViewportMatch)("medium"),[n,o]=(0,l.useState)(Se),{tabs:a,sectionsContentMap:r}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:o})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=o,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),s=(0,l.useCallback)((e=>r[e.name]||null),[r]);let i;return i=t?(0,l.createElement)(_.TabPanel,{className:"interface-preferences__tabs",tabs:a,initialTabName:n!==Se?n:void 0,onSelect:o,orientation:"vertical"},s):(0,l.createElement)(_.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(_.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(_.CardBody,null,(0,l.createElement)(_.__experimentalItemGroup,null,a.map((e=>(0,l.createElement)(_.__experimentalNavigatorButton,{key:e.name,path:e.name,as:_.__experimentalItem,isAction:!0},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(_.__experimentalTruncate,null,e.title)),(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(ve,{icon:(0,b.isRTL)()?ye:we})))))))))),e.length&&e.map((e=>(0,l.createElement)(_.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(_.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(_.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(_.__experimentalNavigatorBackButton,{icon:(0,b.isRTL)()?we:ye,"aria-label":(0,b.__)("Navigate to the previous view")}),(0,l.createElement)(_.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(_.CardBody,null,e.content)))))),i}var Pe=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var Ce=function({help:e,label:t,isChecked:n,onChange:o,children:a}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(_.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:o}),a)},Te=window.wp.keyboardShortcuts;const xe=[{keyCombination:{modifier:"primary",character:"b"},description:(0,b.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,b.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,b.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,b.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,b.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,b.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,b.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,b.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,b.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,b.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Me({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?M.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?M.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help-modal__shortcut-key"},e))))}var Be=function({description:e,keyCombination:t,aliases:n=[],ariaLabel:o}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(Me,{keyCombination:t,forceAriaLabel:o}),n.map(((e,t)=>(0,l.createElement)(Me,{keyCombination:e,forceAriaLabel:o,key:t})))))};var Ie=function({name:e}){const{keyCombination:t,description:n,aliases:o}=(0,u.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:o,getShortcutAliases:a}=t(Te.store);return{keyCombination:n(e),aliases:a(e),description:o(e)}}),[e]);return t?(0,l.createElement)(Be,{keyCombination:t,description:n,aliases:o}):null};const Ne="edit-post/keyboard-shortcut-help",Le=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-post-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Ie,{name:e}):(0,l.createElement)(Be,{...e}))))),Ae=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:I()("edit-post-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-post-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(Le,{shortcuts:t})),De=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const o=(0,u.useSelect)((e=>e(Te.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(Ae,{title:e,shortcuts:o.concat(n)})};var Ve=(0,f.compose)([(0,u.withSelect)((e=>({isModalActive:e(J).isModalActive(Ne)}))),(0,u.withDispatch)(((e,{isModalActive:t})=>{const{openModal:n,closeModal:o}=e(J);return{toggleModal:()=>t?o():n(Ne)}}))])((function({isModalActive:e,toggleModal:t}){return(0,Te.useShortcut)("core/edit-post/keyboard-shortcuts",t),e?(0,l.createElement)(_.Modal,{className:"edit-post-keyboard-shortcut-help-modal",title:(0,b.__)("Keyboard shortcuts"),closeButtonLabel:(0,b.__)("Close"),onRequestClose:t},(0,l.createElement)(Ae,{className:"edit-post-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-post/keyboard-shortcuts"]}),(0,l.createElement)(De,{title:(0,b.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(De,{title:(0,b.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(De,{title:(0,b.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,b.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,b.__)("Forward-slash")}]}),(0,l.createElement)(Ae,{title:(0,b.__)("Text formatting"),shortcuts:xe})):null}));var Oe=(0,u.withDispatch)((e=>{const{openModal:t}=e(J);return{openModal:t}}))((function({openModal:e}){return(0,l.createElement)(_.MenuItem,{onClick:()=>{e(Ne)},shortcut:M.displayShortcut.access("h")},(0,b.__)("Keyboard shortcuts"))}));const{Fill:Fe,Slot:Re}=(0,_.createSlotFill)("ToolsMoreMenuGroup");Fe.Slot=({fillProps:e})=>(0,l.createElement)(Re,{fillProps:e},(e=>e.length>0&&(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Tools")},e)));var He=Fe;function Ge(e=[],t){const n=[...e];for(const e of t){const t=n.findIndex((t=>t.id===e.id));-1!==t?n[t]=e:n.push(e)}return n}const Ue=(0,u.combineReducers)({isSaving:function(e=!1,t){switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":case"META_BOX_UPDATES_FAILURE":return!1;default:return e}},locations:function(e={},t){if("SET_META_BOXES_PER_LOCATIONS"===t.type){const n={...e};for(const[e,o]of Object.entries(t.metaBoxesPerLocation))n[e]=Ge(n[e],o);return n}return e},initialized:function(e=!1,t){return"META_BOXES_INITIALIZED"===t.type||e}});var ze=(0,u.combineReducers)({metaBoxes:Ue,publishSidebarActive:function(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(e=[],t){if("REMOVE_PANEL"===t.type)if(!e.includes(t.panelName))return[...e,t.panelName];return e},deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},isEditingTemplate:function(e=!1,t){return"SET_IS_EDITING_TEMPLATE"===t.type?t.value:e}}),Ze=window.wp.apiFetch,$e=n.n(Ze),We=window.wp.a11y,qe=window.wp.coreData;const je=e=>({registry:t})=>t.dispatch(J).enableComplementaryArea(on.name,e),Ke=()=>({registry:e})=>e.dispatch(J).disableComplementaryArea(on.name),Ye=e=>({registry:t})=>(d()("select( 'core/edit-post' ).openModal( name )",{since:"6.3",alternative:"select( 'core/interface').openModal( name )"}),t.dispatch(J).openModal(e)),Xe=()=>({registry:e})=>(d()("select( 'core/edit-post' ).closeModal()",{since:"6.3",alternative:"select( 'core/interface').closeModal()"}),e.dispatch(J).closeModal());function Qe(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Je(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function et(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}const tt=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","inactivePanels"))&&void 0!==n?n:[];let a;a=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(p.store).set("core/edit-post","inactivePanels",a)},nt=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","openPanels"))&&void 0!==n?n:[];let a;a=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(p.store).set("core/edit-post","openPanels",a)};function ot(e){return{type:"REMOVE_PANEL",panelName:e}}const at=e=>({registry:t})=>t.dispatch(p.store).toggle("core/edit-post",e),rt=e=>({registry:t})=>{t.dispatch(p.store).set("core/edit-post","editorMode",e),"visual"!==e&&t.dispatch(E.store).clearSelectedBlock();const n="visual"===e?(0,b.__)("Visual editor selected"):(0,b.__)("Code editor selected");(0,We.speak)(n,"assertive")},lt=e=>({registry:t})=>{const n=t.select(J).isItemPinned("core/edit-post",e);t.dispatch(J)[n?"unpinItem":"pinItem"]("core/edit-post",e)},st=(e,t)=>({registry:n})=>{var o;if(!e)return;const a=null!==(o=n.select(p.store).get("core/edit-post","preferredStyleVariations"))&&void 0!==o?o:{};if(t)n.dispatch(p.store).set("core/edit-post","preferredStyleVariations",{...a,[e]:t});else{const t={...a};delete t[e],n.dispatch(p.store).set("core/edit-post","preferredStyleVariations",t)}},it=e=>({registry:t})=>{var n;const o=(null!==(n=t.select(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==n?n:[]).filter((t=>!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(p.store).set("core/edit-post","hiddenBlockTypes",o)},ct=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==n?n:[],a=new Set([...o,...Array.isArray(e)?e:[e]]);t.dispatch(p.store).set("core/edit-post","hiddenBlockTypes",[...a])};function dt(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}const ut=()=>async({registry:e,select:t,dispatch:n})=>{n({type:"REQUEST_META_BOX_UPDATES"}),window.tinyMCE&&window.tinyMCE.triggerSave();const o=e.select(T.store).getCurrentPost(),a=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),r=[new window.FormData(document.querySelector(".metabox-base-form")),...t.getActiveMetaBoxLocations().map((e=>new window.FormData((e=>document.querySelector(`.edit-post-meta-boxes-area.is-${e} .metabox-location-${e}`)||document.querySelector("#metaboxes .metabox-location-"+e))(e))))].reduce(((e,t)=>{for(const[n,o]of t)e.append(n,o);return e}),new window.FormData);a.forEach((([e,t])=>r.append(e,t)));try{await $e()({url:window._wpMetaBoxUrl,method:"POST",body:r,parse:!1}),n.metaBoxUpdatesSuccess()}catch{n.metaBoxUpdatesFailure()}};function mt(){return{type:"META_BOX_UPDATES_SUCCESS"}}function pt(){return{type:"META_BOX_UPDATES_FAILURE"}}function gt(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function ht(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function _t(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function Et(e){return{type:"SET_IS_EDITING_TEMPLATE",value:e}}const bt=(e=!1)=>({registry:t,select:n,dispatch:o})=>{o(Et(!0));if(!n.isFeatureActive("welcomeGuideTemplate")){const n=e?(0,b.__)("Custom template created. You're in template mode now."):(0,b.__)("Editing template. Changes made here affect all posts and pages that use the template.");t.dispatch(C.store).createSuccessNotice(n,{type:"snackbar"})}},ft=e=>async({registry:t})=>{const n=await t.dispatch(qe.store).saveEntityRecord("postType","wp_template",e),o=t.select(T.store).getCurrentPost();t.dispatch(qe.store).editEntityRecord("postType",o.type,o.id,{template:n.slug})};let vt=!1;const yt=()=>({registry:e,select:t,dispatch:n})=>{if(!e.select(T.store).__unstableIsEditorReady())return;if(vt)return;const o=e.select(T.store).getCurrentPostType();window.postboxes.page!==o&&window.postboxes.add_postbox_toggles(o),vt=!0;let a=e.select(T.store).isSavingPost(),r=e.select(T.store).isAutosavingPost();e.subscribe((async()=>{const o=e.select(T.store).isSavingPost(),l=e.select(T.store).isAutosavingPost(),s=a&&!r&&!o&&t.hasMetaBoxes();a=o,r=l,s&&await n.requestMetaBoxUpdates()})),n({type:"META_BOXES_INITIALIZED"})};var wt={};function St(e){return[e]}function kt(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o()=>{var t;return null!==(t=e(p.store).get("core/edit-post","editorMode"))&&void 0!==t?t:"visual"})),Mt=(0,u.createRegistrySelector)((e=>()=>{const t=e(J).getActiveComplementaryArea("core/edit-post");return["edit-post/document","edit-post/block"].includes(t)})),Bt=(0,u.createRegistrySelector)((e=>()=>{const t=e(J).getActiveComplementaryArea("core/edit-post");return!!t&&!["edit-post/document","edit-post/block"].includes(t)})),It=(0,u.createRegistrySelector)((e=>()=>e(J).getActiveComplementaryArea("core/edit-post")));const Nt=(0,u.createRegistrySelector)((e=>()=>{d()("select( 'core/edit-post' ).getPreferences",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const t=["hiddenBlockTypes","editorMode","preferredStyleVariations"].reduce(((t,n)=>({...t,[n]:e(p.store).get("core/edit-post",n)})),{}),n=function(e,t){var n;const o=e?.reduce(((e,t)=>({...e,[t]:{enabled:!1}})),{}),a=t?.reduce(((e,t)=>{const n=e?.[t];return{...e,[t]:{...n,opened:!0}}}),null!=o?o:{});return null!==(n=null!=a?a:o)&&void 0!==n?n:Tt}(e(p.store).get("core/edit-post","inactivePanels"),e(p.store).get("core/edit-post","openPanels"));return{...t,panels:n}}));function Lt(e,t,n){d()("select( 'core/edit-post' ).getPreference",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const o=Nt(e)[t];return void 0===o?n:o}const At=(0,u.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==t?t:Ct}));function Dt(e){return e.publishSidebarActive}function Vt(e,t){return e.removedPanels.includes(t)}const Ot=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get("core/edit-post","inactivePanels");return!Vt(t,n)&&!o?.includes(n)})),Ft=(0,u.createRegistrySelector)((e=>(t,n)=>!!e(p.store).get("core/edit-post","openPanels")?.includes(n))),Rt=(0,u.createRegistrySelector)((e=>(t,n)=>(d()("select( 'core/edit-post' ).isModalActive",{since:"6.3",alternative:"select( 'core/interface' ).isModalActive"}),!!e(J).isModalActive(n)))),Ht=(0,u.createRegistrySelector)((e=>(t,n)=>!!e(p.store).get("core/edit-post",n))),Gt=(0,u.createRegistrySelector)((e=>(t,n)=>e(J).isItemPinned("core/edit-post",n))),Ut=Pt((e=>Object.keys(e.metaBoxes.locations).filter((t=>Zt(e,t)))),(e=>[e.metaBoxes.locations]));function zt(e,t){return Zt(e,t)&&$t(e,t)?.some((({id:t})=>Ot(e,`meta-box-${t}`)))}function Zt(e,t){const n=$t(e,t);return!!n&&0!==n.length}function $t(e,t){return e.metaBoxes.locations[t]}const Wt=Pt((e=>Object.values(e.metaBoxes.locations).flat()),(e=>[e.metaBoxes.locations]));function qt(e){return Ut(e).length>0}function jt(e){return e.metaBoxes.isSaving}function Kt(e){return e.deviceType}function Yt(e){return!!e.blockInserterPanel}function Xt(e){const{rootClientId:t,insertionIndex:n,filterValue:o}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:n,filterValue:o}}function Qt(e){return e.listViewPanel}function Jt(e){return e.isEditingTemplate}function en(e){return e.metaBoxes.initialized}const tn=(0,u.createRegistrySelector)((e=>()=>{const t=e(T.store).getEditedPostAttribute("template");if(t){const n=e(qe.store).getEntityRecords("postType","wp_template",{per_page:-1})?.find((e=>e.slug===t));return n?e(qe.store).getEditedEntityRecord("postType","wp_template",n.id):n}const n=e(T.store).getCurrentPost();return n.link?e(qe.store).__experimentalGetTemplateForLink(n.link):null})),nn="core/edit-post",on=(0,u.createReduxStore)(nn,{reducer:ze,actions:a,selectors:r});function an(){const e=(0,u.useSelect)((e=>e(on).isEditingTemplate()),[]);return(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:e?"welcomeGuideTemplate":"welcomeGuide",label:(0,b.__)("Welcome Guide")})}(0,u.register)(on),(0,k.registerPlugin)("edit-post",{render(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(He,null,(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.MenuItem,{role:"menuitem",href:(0,P.addQueryArgs)("edit.php",{post_type:"wp_block"})},(0,b.__)("Manage Patterns")),(0,l.createElement)(Oe,{onSelect:e}),(0,l.createElement)(an,null),(0,l.createElement)(x,null),(0,l.createElement)(_.MenuItem,{role:"menuitem",icon:S,href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,b.__)("Help"),(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("(opens in a new tab)")))))))}});var rn=window.wp.commands,ln=window.wp.coreCommands;function sn(){const e=(0,u.useSelect)((e=>e(T.store).getEditorSettings().richEditingEnabled),[]),{switchEditorMode:t}=(0,u.useDispatch)(on);return(0,l.createElement)("div",{className:"edit-post-text-editor"},(0,l.createElement)(T.TextEditorGlobalKeyboardShortcuts,null),e&&(0,l.createElement)("div",{className:"edit-post-text-editor__toolbar"},(0,l.createElement)("h2",null,(0,b.__)("Editing code")),(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>t("visual"),shortcut:M.displayShortcut.secondary("m")},(0,b.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-post-text-editor__body"},(0,l.createElement)(T.PostTitle,null),(0,l.createElement)(T.PostTextEditor,null)))}var cn=window.wp.privateApis;const{lock:dn,unlock:un}=(0,cn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-post"),{LayoutStyle:mn,useLayoutClasses:pn,useLayoutStyles:gn}=un(E.privateApis);function hn({children:e,contentRef:t,shouldIframe:n,styles:o,style:a}){const r=(0,E.__unstableUseMouseMoveTypingReset)();return n?(0,l.createElement)(E.__unstableIframe,{ref:r,contentRef:t,style:{width:"100%",height:"100%",display:"block"},name:"editor-canvas"},(0,l.createElement)(E.__unstableEditorStyles,{styles:o}),e):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(E.__unstableEditorStyles,{styles:o}),(0,l.createElement)(E.WritingFlow,{ref:t,className:"editor-styles-wrapper",style:{flex:"1",...a},tabIndex:-1},e))}function _n(e){for(let t=0;t{const{isFeatureActive:t,isEditingTemplate:n,getEditedPostTemplate:o,__experimentalGetPreviewDeviceType:a}=e(on),{getCurrentPostId:r,getCurrentPostType:l,getEditorSettings:i}=e(T.store),{getBlockTypes:c}=e(s.store),d=n();let u;"wp_block"===l()?u="core/block":d||(u="core/post-content");const m=i(),p=m.supportsTemplateMode,g=e(qe.store).canUser("create","templates");return{deviceType:a(),isWelcomeGuideVisible:t("welcomeGuide"),isTemplateMode:d,postContentAttributes:i().postContentAttributes,editedPostTemplate:p&&g?o():void 0,wrapperBlockName:u,wrapperUniqueId:r(),isBlockBasedTheme:m.__unstableIsBlockBasedTheme,hasV3BlocksOnly:c().every((e=>e.apiVersion>=3))}}),[]),{isCleanNewPost:p}=(0,u.useSelect)(T.store),g=(0,u.useSelect)((e=>e(on).hasMetaBoxes()),[]),{hasRootPaddingAwareAlignments:h,isFocusMode:b,themeHasDisabledLayoutStyles:v,themeSupportsLayout:y}=(0,u.useSelect)((e=>{const t=e(E.store).getSettings();return{themeHasDisabledLayoutStyles:t.disableLayoutStyles,themeSupportsLayout:t.supportsLayout,isFocusMode:t.focusMode,hasRootPaddingAwareAlignments:t.__experimentalFeatures?.useRootPaddingAwareAlignments}}),[]),w={height:"100%",width:"100%",margin:0,display:"flex",flexFlow:"column",background:"white"},S={...w,borderRadius:"2px 2px 0 0",border:"1px solid #ddd",borderBottom:0},k=(0,E.__experimentalUseResizeCanvas)(t,o),P=(0,E.useSetting)("layout"),C="is-"+t.toLowerCase()+"-preview";let x,M=o?S:w;k&&(M=k),g||k||o||(x="40vh");const B=(0,l.useRef)(),N=(0,f.useMergeRefs)([B,(0,E.__unstableUseClipboardHandler)(),(0,E.__unstableUseTypewriter)(),(0,E.__unstableUseTypingObserver)(),(0,E.__unstableUseBlockSelectionClearer)()]),L=(0,E.__unstableUseBlockSelectionClearer)(),A=(0,l.useMemo)((()=>o?{type:"default"}:y?{...P,type:"constrained"}:{type:"default"}),[o,y,P]),D=(0,l.useMemo)((()=>{if(!r?.content&&!r?.blocks)return a;if(r?.blocks)return _n(r?.blocks);const e="string"==typeof r?.content?r?.content:"";return _n((0,s.parse)(e))||{}}),[r?.content,r?.blocks,a]),{layout:V={},align:O=""}=D||{},F=pn(D,"core/post-content"),R=I()({"is-layout-flow":!y},y&&F,O&&`align${O}`),H=gn(D,"core/post-content",".block-editor-block-list__layout.is-root-container"),G=(0,l.useMemo)((()=>V&&("constrained"===V?.type||V?.inherit||V?.contentSize||V?.wideSize)?{...P,...V,type:"constrained"}:{...P,...V,type:"default"}),[V?.type,V?.inherit,V?.contentSize,V?.wideSize,P]),U=a?G:A,z=(0,l.useRef)();(0,l.useEffect)((()=>{!n&&p()&&z?.current?.focus()}),[n,p]),e=(0,l.useMemo)((()=>[...e,{css:".edit-post-visual-editor__post-title-wrapper{margin-top:4rem}"+(x?`body{padding-bottom:${x}}`:"")}]),[e]);return(0,l.createElement)(E.BlockTools,{__unstableContentRef:B,className:I()("edit-post-visual-editor",{"is-template-mode":o})},(0,l.createElement)(T.VisualEditorGlobalKeyboardShortcuts,null),(0,l.createElement)(_.__unstableMotion.div,{className:"edit-post-visual-editor__content-area",animate:{padding:o?"48px 48px 0":0},ref:L},(0,l.createElement)(_.__unstableMotion.div,{animate:M,initial:w,className:C},(0,l.createElement)(hn,{shouldIframe:!!m&&!g||o||"Tablet"===t||"Mobile"===t,contentRef:N,styles:e},y&&!v&&!o&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(mn,{selector:".edit-post-visual-editor__post-title-wrapper",layout:A}),(0,l.createElement)(mn,{selector:".block-editor-block-list__layout.is-root-container",layout:U}),O&&(0,l.createElement)(mn,{css:".is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}"}),H&&(0,l.createElement)(mn,{layout:G,css:H})),!o&&(0,l.createElement)("div",{className:I()("edit-post-visual-editor__post-title-wrapper",{"is-focus-mode":b,"has-global-padding":h}),contentEditable:!1},(0,l.createElement)(T.PostTitle,{ref:z})),(0,l.createElement)(E.__experimentalRecursionProvider,{blockName:i,uniqueId:c},(0,l.createElement)(E.BlockList,{className:o?"wp-site-blocks":`${R} wp-block-post-content`,layout:U}))))))}var bn=function(){const{getBlockSelectionStart:e}=(0,u.useSelect)(E.store),{getEditorMode:t,isEditorSidebarOpened:n,isListViewOpened:o,isFeatureActive:a}=(0,u.useSelect)(on),r=(0,u.useSelect)((e=>{const{richEditingEnabled:t,codeEditingEnabled:n}=e(T.store).getEditorSettings();return!t||!n}),[]),{createInfoNotice:i}=(0,u.useDispatch)(C.store),{switchEditorMode:c,openGeneralSidebar:d,closeGeneralSidebar:m,toggleFeature:g,setIsListViewOpened:h,setIsInserterOpened:_}=(0,u.useDispatch)(on),{registerShortcut:f}=(0,u.useDispatch)(Te.store),{set:v}=(0,u.useDispatch)(p.store),{replaceBlocks:y}=(0,u.useDispatch)(E.store),{getBlockName:w,getSelectedBlockClientId:S,getBlockAttributes:k}=(0,u.useSelect)(E.store),P=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",o=S();if(null===o)return;const a=w(o);if("core/paragraph"!==a&&"core/heading"!==a)return;const r=k(o),l="core/paragraph"===a?"align":"textAlign",i="core/paragraph"===n?"align":"textAlign";y(o,(0,s.createBlock)(n,{level:t,content:r.content,[i]:r[l]}))};return(0,l.useEffect)((()=>{f({name:"core/edit-post/toggle-mode",category:"global",description:(0,b.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),f({name:"core/edit-post/toggle-distraction-free",category:"global",description:(0,b.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),f({name:"core/edit-post/toggle-fullscreen",category:"global",description:(0,b.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}}),f({name:"core/edit-post/toggle-list-view",category:"global",description:(0,b.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),f({name:"core/edit-post/toggle-sidebar",category:"global",description:(0,b.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),f({name:"core/edit-post/next-region",category:"global",description:(0,b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),f({name:"core/edit-post/previous-region",category:"global",description:(0,b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),f({name:"core/edit-post/keyboard-shortcuts",category:"main",description:(0,b.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),f({name:"core/edit-post/transform-heading-to-paragraph",category:"block-library",description:(0,b.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((e=>{f({name:`core/edit-post/transform-paragraph-to-heading-${e}`,category:"block-library",description:(0,b.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${e}`}})}))}),[]),(0,Te.useShortcut)("core/edit-post/toggle-mode",(()=>{c("visual"===t()?"text":"visual")}),{isDisabled:r}),(0,Te.useShortcut)("core/edit-post/toggle-fullscreen",(()=>{g("fullscreenMode")})),(0,Te.useShortcut)("core/edit-post/toggle-distraction-free",(()=>{v("core/edit-post","fixedToolbar",!1),_(!1),h(!1),m(),g("distractionFree"),i(a("distractionFree")?(0,b.__)("Distraction free mode turned on."):(0,b.__)("Distraction free mode turned off."),{id:"core/edit-post/distraction-free-mode/notice",type:"snackbar"})})),(0,Te.useShortcut)("core/edit-post/toggle-sidebar",(t=>{if(t.preventDefault(),n())m();else{const t=e()?"edit-post/block":"edit-post/document";d(t)}})),(0,Te.useShortcut)("core/edit-post/toggle-list-view",(()=>{o()||h(!0)})),(0,Te.useShortcut)("core/edit-post/transform-heading-to-paragraph",(e=>P(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,Te.useShortcut)(`core/edit-post/transform-paragraph-to-heading-${e}`,(t=>P(t,e)))})),null};function fn({willEnable:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message"},(0,b.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),(0,l.createElement)(_.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",variant:"secondary",isBusy:t,disabled:t,onClick:()=>{n(!0),document.getElementById("toggle-custom-fields-form").submit()}},e?(0,b.__)("Show & Reload Page"):(0,b.__)("Hide & Reload Page")))}var vn=(0,u.withSelect)((e=>({areCustomFieldsEnabled:!!e(T.store).getEditorSettings().enableCustomFields})))((function({label:e,areCustomFieldsEnabled:t}){const[n,o]=(0,l.useState)(t);return(0,l.createElement)(Ce,{label:e,isChecked:n,onChange:o},n!==t&&(0,l.createElement)(fn,{willEnable:n}))})),yn=(0,f.compose)((0,u.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:n,isEditorPanelRemoved:o}=e(on);return{isRemoved:o(t),isChecked:n(t)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,u.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(on).toggleEditorPanelEnabled(t)}))))(Ce);const{Fill:wn,Slot:Sn}=(0,_.createSlotFill)("EnablePluginDocumentSettingPanelOption"),kn=({label:e,panelName:t})=>(0,l.createElement)(wn,null,(0,l.createElement)(yn,{label:e,panelName:t}));kn.Slot=Sn;var Pn=kn,Cn=(0,f.compose)((0,u.withSelect)((e=>({isChecked:e(T.store).isPublishSidebarEnabled()}))),(0,u.withDispatch)((e=>{const{enablePublishSidebar:t,disablePublishSidebar:n}=e(T.store);return{onChange:e=>e?t():n()}})),(0,D.ifViewportMatches)("medium"))(Ce),Tn=(0,f.compose)((0,u.withSelect)(((e,{featureName:t})=>{const{isFeatureActive:n}=e(on);return{isChecked:n(t)}})),(0,u.withDispatch)(((e,{featureName:t,onToggle:n=(()=>{})})=>({onChange:()=>{n(),e(on).toggleFeature(t)}}))))(Ce);var xn=(0,u.withSelect)((e=>{const{getEditorSettings:t}=e(T.store),{getAllMetaBoxes:n}=e(on);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}}))((function({areCustomFieldsRegistered:e,metaBoxes:t,...n}){const o=t.filter((({id:e})=>"postcustom"!==e));return e||0!==o.length?(0,l.createElement)(Pe,{...n},e&&(0,l.createElement)(vn,{label:(0,b.__)("Custom fields")}),o.map((({id:e,title:t})=>(0,l.createElement)(yn,{key:e,label:t,panelName:`meta-box-${e}`})))):null}));var Mn=function({blockTypes:e,value:t,onItemChange:n}){return(0,l.createElement)("ul",{className:"edit-post-block-manager__checklist"},e.map((e=>(0,l.createElement)("li",{key:e.name,className:"edit-post-block-manager__checklist-item"},(0,l.createElement)(_.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=>n(e.name,...t)}),(0,l.createElement)(E.BlockIcon,{icon:e.icon})))))};var Bn=function e({title:t,blockTypes:n}){const o=(0,f.useInstanceId)(e),{defaultAllowedBlockTypes:a,hiddenBlockTypes:r}=(0,u.useSelect)((e=>{const{getEditorSettings:t}=e(T.store),{getHiddenBlockTypes:n}=e(on);return{defaultAllowedBlockTypes:t().defaultAllowedBlockTypes,hiddenBlockTypes:n()}}),[]),s=(0,l.useMemo)((()=>!0===a?n:n.filter((({name:e})=>a?.includes(e)))),[a,n]),{showBlockTypes:i,hideBlockTypes:c}=(0,u.useDispatch)(on),d=(0,l.useCallback)(((e,t)=>{t?i(e):c(e)}),[]),m=(0,l.useCallback)((e=>{const t=n.map((({name:e})=>e));e?i(t):c(t)}),[n]);if(!s.length)return null;const p=s.map((({name:e})=>e)).filter((e=>!r.includes(e))),g="edit-post-block-manager__category-title-"+o,h=p.length===s.length,E=!h&&p.length>0;return(0,l.createElement)("div",{role:"group","aria-labelledby":g,className:"edit-post-block-manager__category"},(0,l.createElement)(_.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:h,onChange:m,className:"edit-post-block-manager__category-title",indeterminate:E,label:(0,l.createElement)("span",{id:g},t)}),(0,l.createElement)(Mn,{blockTypes:s,value:p,onItemChange:d}))};var In=(0,f.compose)([(0,u.withSelect)((e=>{const{getBlockTypes:t,getCategories:n,hasBlockSupport:o,isMatchingSearchTerm:a}=e(s.store),{getHiddenBlockTypes:r}=e(on),l=t(),i=r().filter((e=>l.some((t=>t.name===e)))),c=Array.isArray(i)&&i.length;return{blockTypes:l,categories:n(),hasBlockSupport:o,isMatchingSearchTerm:a,numberOfHiddenBlocks:c}})),(0,u.withDispatch)((e=>{const{showBlockTypes:t}=e(on);return{enableAllBlockTypes:e=>{const n=e.map((({name:e})=>e));t(n)}}}))])((function({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:a,enableAllBlockTypes:r}){const s=(0,f.useDebounce)(We.speak,500),[i,c]=(0,l.useState)("");return e=e.filter((e=>n(e,"inserter",!0)&&(!i||o(e,i))&&(!e.parent||e.parent.includes("core/post-content")))),(0,l.useEffect)((()=>{if(!i)return;const t=e.length,n=(0,b.sprintf)((0,b._n)("%d result found.","%d results found.",t),t);s(n)}),[e.length,i,s]),(0,l.createElement)("div",{className:"edit-post-block-manager__content"},!!a&&(0,l.createElement)("div",{className:"edit-post-block-manager__disabled-blocks-count"},(0,b.sprintf)((0,b._n)("%d block is hidden.","%d blocks are hidden.",a),a),(0,l.createElement)(_.Button,{variant:"link",onClick:()=>r(e)},(0,b.__)("Reset"))),(0,l.createElement)(_.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Search for a block"),placeholder:(0,b.__)("Search for a block"),value:i,onChange:e=>c(e),className:"edit-post-block-manager__search"}),(0,l.createElement)("div",{tabIndex:"0",role:"region","aria-label":(0,b.__)("Available block types"),className:"edit-post-block-manager__results"},0===e.length&&(0,l.createElement)("p",{className:"edit-post-block-manager__no-results"},(0,b.__)("No blocks found.")),t.map((t=>(0,l.createElement)(Bn,{key:t.slug,title:t.title,blockTypes:e.filter((e=>e.category===t.slug))}))),(0,l.createElement)(Bn,{title:(0,b.__)("Uncategorized"),blockTypes:e.filter((({category:e})=>!e))})))}));const Nn="edit-post/preferences";function Ln(){const e=(0,f.useViewportMatch)("medium"),{closeModal:t}=(0,u.useDispatch)(J),[n,o]=(0,u.useSelect)((t=>{const{getEditorSettings:n}=t(T.store),{getEditorMode:o,isFeatureActive:a}=t(on),r=t(J).isModalActive(Nn),l=o(),s=n().richEditingEnabled,i=a("distractionFree");return[r,!i&&e&&s&&"visual"===l,i]}),[e]),{closeGeneralSidebar:a,setIsListViewOpened:r,setIsInserterOpened:s}=(0,u.useDispatch)(on),{set:i}=(0,u.useDispatch)(p.store),c=()=>{i("core/edit-post","fixedToolbar",!1),s(!1),r(!1),a()},d=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,b.__)("General"),content:(0,l.createElement)(l.Fragment,null,e&&(0,l.createElement)(Pe,{title:(0,b.__)("Publishing"),description:(0,b.__)("Change options related to publishing.")},(0,l.createElement)(Cn,{help:(0,b.__)("Review settings, such as visibility and tags."),label:(0,b.__)("Include pre-publish checklist")})),(0,l.createElement)(Pe,{title:(0,b.__)("Appearance"),description:(0,b.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(Tn,{featureName:"distractionFree",onToggle:c,help:(0,b.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,b.__)("Distraction free")}),(0,l.createElement)(Tn,{featureName:"focusMode",help:(0,b.__)("Highlights the current block and fades other content."),label:(0,b.__)("Spotlight mode")}),(0,l.createElement)(Tn,{featureName:"showIconLabels",label:(0,b.__)("Show button text labels"),help:(0,b.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(Tn,{featureName:"showListViewByDefault",help:(0,b.__)("Opens the block list view sidebar by default."),label:(0,b.__)("Always open list view")}),(0,l.createElement)(Tn,{featureName:"themeStyles",help:(0,b.__)("Make the editor look like your theme."),label:(0,b.__)("Use theme styles")}),o&&(0,l.createElement)(Tn,{featureName:"showBlockBreadcrumbs",help:(0,b.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,b.__)("Display block breadcrumbs")})))},{name:"blocks",tabLabel:(0,b.__)("Blocks"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Pe,{title:(0,b.__)("Block interactions"),description:(0,b.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(Tn,{featureName:"mostUsedBlocks",help:(0,b.__)("Places the most frequent blocks in the block library."),label:(0,b.__)("Show most used blocks")}),(0,l.createElement)(Tn,{featureName:"keepCaretInsideBlock",help:(0,b.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,b.__)("Contain text cursor inside block")})),(0,l.createElement)(Pe,{title:(0,b.__)("Visible blocks"),description:(0,b.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later.")},(0,l.createElement)(In,null)))},{name:"panels",tabLabel:(0,b.__)("Panels"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Pe,{title:(0,b.__)("Document settings"),description:(0,b.__)("Choose what displays in the panel.")},(0,l.createElement)(Pn.Slot,null),(0,l.createElement)(T.PostTaxonomies,{taxonomyWrapper:(e,t)=>(0,l.createElement)(yn,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,l.createElement)(T.PostFeaturedImageCheck,null,(0,l.createElement)(yn,{label:(0,b.__)("Featured image"),panelName:"featured-image"})),(0,l.createElement)(T.PostExcerptCheck,null,(0,l.createElement)(yn,{label:(0,b.__)("Excerpt"),panelName:"post-excerpt"})),(0,l.createElement)(T.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},(0,l.createElement)(yn,{label:(0,b.__)("Discussion"),panelName:"discussion-panel"})),(0,l.createElement)(T.PageAttributesCheck,null,(0,l.createElement)(yn,{label:(0,b.__)("Page attributes"),panelName:"page-attributes"}))),(0,l.createElement)(xn,{title:(0,b.__)("Additional"),description:(0,b.__)("Add extra areas to the editor.")}))}]),[e,o]);return n?(0,l.createElement)(fe,{closeModal:t},(0,l.createElement)(ke,{sections:d})):null}class An extends l.Component{constructor(){super(...arguments),this.state={historyId:null}}componentDidUpdate(e){const{postId:t,postStatus:n,postType:o,isSavingPost:a}=this.props,{historyId:r}=this.state;"trash"!==n||a?t===e.postId&&t===r||"auto-draft"===n||!t||this.setBrowserURL(t):this.setTrashURL(t,o)}setTrashURL(e,t){window.location.href=function(e,t){return(0,P.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}setBrowserURL(e){window.history.replaceState({id:e},"Post "+e,function(e){return(0,P.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((()=>({historyId:e})))}render(){return null}}var Dn=(0,u.withSelect)((e=>{const{getCurrentPost:t,isSavingPost:n}=e(T.store),o=t();let{id:a,status:r,type:l}=o;return["wp_template","wp_template_part"].includes(l)&&(a=o.wp_id),{postId:a,postStatus:r,postType:l,isSavingPost:n()}}))(An);var Vn=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(w.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var On=function({showTooltip:e,icon:t,href:n}){var o;const{isActive:a,isRequestingSiteIcon:r,postType:s,siteIconUrl:i}=(0,u.useSelect)((e=>{const{getCurrentPostType:t}=e(T.store),{isFeatureActive:n}=e(on),{getEntityRecord:o,getPostType:a,isResolving:r}=e(qe.store),l=o("root","__unstableBase",void 0)||{};return{isActive:n("fullscreenMode"),isRequestingSiteIcon:r("getEntityRecord",["root","__unstableBase",void 0]),postType:a(t()),siteIconUrl:l.site_icon_url}}),[]),c=(0,f.useReducedMotion)();if(!a||!s)return null;let d=(0,l.createElement)(_.Icon,{size:"36px",icon:Vn});const m={expand:{scale:1.25,transition:{type:"tween",duration:"0.3"}}};i&&(d=(0,l.createElement)(_.__unstableMotion.img,{variants:!c&&m,alt:(0,b.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:i})),r&&(d=null),t&&(d=(0,l.createElement)(_.Icon,{size:"36px",icon:t}));const p=I()({"edit-post-fullscreen-mode-close":!0,"has-icon":i});return(0,l.createElement)(_.__unstableMotion.div,{whileHover:"expand"},(0,l.createElement)(_.Button,{className:p,href:null!=n?n:(0,P.addQueryArgs)("edit.php",{post_type:s.slug}),label:null!==(o=s?.labels?.view_items)&&void 0!==o?o:(0,b.__)("Back"),showTooltip:e},d))};var Fn=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var Rn=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const{useShouldContextualToolbarShow:Hn}=un(E.privateApis),Gn=e=>{e.preventDefault()};var Un=function(){const e=(0,l.useRef)(),{setIsInserterOpened:t,setIsListViewOpened:n}=(0,u.useDispatch)(on),{isInserterEnabled:o,isInserterOpened:a,isTextModeEnabled:r,showIconLabels:s,isListViewOpen:i,listViewShortcut:c}=(0,u.useSelect)((e=>{const{hasInserterItems:t,getBlockRootClientId:n,getBlockSelectionEnd:o}=e(E.store),{getEditorSettings:a}=e(T.store),{getEditorMode:r,isFeatureActive:l,isListViewOpened:s}=e(on),{getShortcutRepresentation:i}=e(Te.store);return{isInserterEnabled:"visual"===r()&&a().richEditingEnabled&&t(n(o())),isInserterOpened:e(on).isInserterOpened(),isTextModeEnabled:"text"===r(),showIconLabels:l("showIconLabels"),isListViewOpen:s(),listViewShortcut:i("core/edit-post/toggle-list-view")}}),[]),d=(0,f.useViewportMatch)("medium"),m=(0,f.useViewportMatch)("wide"),{shouldShowContextualToolbar:p,canFocusHiddenToolbar:g,fixedToolbarCanBeFocused:h}=Hn(),v=p||g||h,y=(0,b.__)("Document tools"),w=(0,l.useCallback)((()=>n(!i)),[n,i]),S=(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.ToolbarItem,{as:_.Button,className:"edit-post-header-toolbar__document-overview-toggle",icon:Fn,disabled:r,isPressed:i,label:(0,b.__)("Document Overview"),onClick:w,shortcut:c,showTooltip:!s,variant:s?"tertiary":void 0})),k=(0,l.useCallback)((()=>{a?(e.current.focus(),t(!1)):t(!0)}),[a,t]),P=(0,b._x)("Toggle block inserter","Generic label for block inserter button"),C=a?(0,b.__)("Close"):(0,b.__)("Add");return(0,l.createElement)(E.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":y,shouldUseKeyboardFocusShortcut:!v},(0,l.createElement)("div",{className:"edit-post-header-toolbar__left"},(0,l.createElement)(_.ToolbarItem,{ref:e,as:_.Button,className:"edit-post-header-toolbar__inserter-toggle",variant:"primary",isPressed:a,onMouseDown:Gn,onClick:k,disabled:!o,icon:Rn,label:s?C:P,showTooltip:!s}),(m||!s)&&(0,l.createElement)(l.Fragment,null,d&&(0,l.createElement)(_.ToolbarItem,{as:E.ToolSelector,showTooltip:!s,variant:s?"tertiary":void 0,disabled:r}),(0,l.createElement)(_.ToolbarItem,{as:T.EditorHistoryUndo,showTooltip:!s,variant:s?"tertiary":void 0}),(0,l.createElement)(_.ToolbarItem,{as:T.EditorHistoryRedo,showTooltip:!s,variant:s?"tertiary":void 0}),S)))};const zn=[{value:"visual",label:(0,b.__)("Visual editor")},{value:"text",label:(0,b.__)("Code editor")}];var Zn=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:n,isEditingTemplate:o,mode:a}=(0,u.useSelect)((e=>({shortcut:e(Te.store).getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e(T.store).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(T.store).getEditorSettings().codeEditingEnabled,isEditingTemplate:e(on).isEditingTemplate(),mode:e(on).getEditorMode()})),[]),{switchEditorMode:r}=(0,u.useDispatch)(on);if(o)return null;if(!t||!n)return null;const s=zn.map((t=>t.value!==a?{...t,shortcut:e}:t));return(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Editor")},(0,l.createElement)(_.MenuItemsChoice,{choices:s,value:a,onSelect:r}))};function $n(){const{openModal:e}=(0,u.useDispatch)(J);return(0,l.createElement)(_.MenuItem,{onClick:()=>{e(Nn)}},(0,b.__)("Preferences"))}var Wn=function(){const e=(0,u.useRegistry)(),t=(0,u.useSelect)((e=>e(E.store).getSettings().isDistractionFree),[]),{setIsInserterOpened:n,setIsListViewOpened:o,closeGeneralSidebar:a}=(0,u.useDispatch)(on),{set:r}=(0,u.useDispatch)(p.store);return(0,f.useViewportMatch)("medium")?(0,l.createElement)(_.MenuGroup,{label:(0,b._x)("View","noun")},(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",disabled:t,name:"fixedToolbar",label:(0,b.__)("Top toolbar"),info:(0,b.__)("Access all block and document tools in a single place"),messageActivated:(0,b.__)("Top toolbar activated"),messageDeactivated:(0,b.__)("Top toolbar deactivated")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"focusMode",label:(0,b.__)("Spotlight mode"),info:(0,b.__)("Focus on one block at a time"),messageActivated:(0,b.__)("Spotlight mode activated"),messageDeactivated:(0,b.__)("Spotlight mode deactivated")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"fullscreenMode",label:(0,b.__)("Fullscreen mode"),info:(0,b.__)("Show and hide admin UI"),messageActivated:(0,b.__)("Fullscreen mode activated"),messageDeactivated:(0,b.__)("Fullscreen mode deactivated"),shortcut:M.displayShortcut.secondary("f")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"distractionFree",onToggle:()=>{e.batch((()=>{r("core/edit-post","fixedToolbar",!1),n(!1),o(!1),a()}))},label:(0,b.__)("Distraction free"),info:(0,b.__)("Write with calmness"),messageActivated:(0,b.__)("Distraction free mode activated"),messageDeactivated:(0,b.__)("Distraction free mode deactivated"),shortcut:M.displayShortcut.primaryShift("\\")})):null};var qn=({showIconLabels:e})=>{const t=(0,f.useViewportMatch)("large");return(0,l.createElement)(be,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:n})=>(0,l.createElement)(l.Fragment,null,e&&!t&&(0,l.createElement)(ce.Slot,{className:e&&"show-icon-labels",scope:"core/edit-post"}),(0,l.createElement)(Wn,null),(0,l.createElement)(Zn,null),(0,l.createElement)(re.Slot,{name:"core/edit-post/plugin-more-menu",label:(0,b.__)("Plugins"),as:_.MenuGroup,fillProps:{onClick:n}}),(0,l.createElement)(He.Slot,{fillProps:{onClose:n}}),(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)($n,null)))))};var jn=(0,f.compose)((0,u.withSelect)((e=>{var t;return{hasPublishAction:null!==(t=e(T.store).getCurrentPost()?._links?.["wp:action-publish"])&&void 0!==t&&t,isBeingScheduled:e(T.store).isEditedPostBeingScheduled(),isPending:e(T.store).isCurrentPostPending(),isPublished:e(T.store).isCurrentPostPublished(),isPublishSidebarEnabled:e(T.store).isPublishSidebarEnabled(),isPublishSidebarOpened:e(on).isPublishSidebarOpened(),isScheduled:e(T.store).isCurrentPostScheduled()}})),(0,u.withDispatch)((e=>{const{togglePublishSidebar:t}=e(on);return{togglePublishSidebar:t}})))((function({forceIsDirty:e,forceIsSaving:t,hasPublishAction:n,isBeingScheduled:o,isPending:a,isPublished:r,isPublishSidebarEnabled:s,isPublishSidebarOpened:i,isScheduled:c,togglePublishSidebar:d,setEntitiesSavedStatesCallback:u}){const m="toggle",p="button",g=(0,f.useViewportMatch)("medium","<");let h;return h=r||c&&o||a&&!n&&!g?p:g||s?m:p,(0,l.createElement)(T.PostPublishButton,{forceIsDirty:e,forceIsSaving:t,isOpen:i,isToggle:h===m,onToggle:d,setEntitiesSavedStatesCallback:u})}));function Kn(){const{hasActiveMetaboxes:e,isPostSaveable:t,isSaving:n,isViewable:o,deviceType:a}=(0,u.useSelect)((e=>{var t;const{getEditedPostAttribute:n}=e(T.store),{getPostType:o}=e(qe.store),a=o(n("type"));return{hasActiveMetaboxes:e(on).hasMetaBoxes(),isSaving:e(on).isSavingMetaBoxes(),isPostSaveable:e(T.store).isEditedPostSaveable(),isViewable:null!==(t=a?.viewable)&&void 0!==t&&t,deviceType:e(on).__experimentalGetPreviewDeviceType()}}),[]),{__experimentalSetPreviewDeviceType:r}=(0,u.useDispatch)(on);return(0,l.createElement)(E.__experimentalPreviewOptions,{isEnabled:t,className:"edit-post-post-preview-dropdown",deviceType:a,setDeviceType:r,label:(0,b.__)("Preview")},o&&(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)("div",{className:"edit-post-header-preview__grouping-external"},(0,l.createElement)(T.PostPreviewButton,{className:"edit-post-header-preview__button-external",role:"menuitem",forceIsAutosaveable:e,forcePreviewLink:n?null:void 0,textContent:(0,l.createElement)(l.Fragment,null,(0,b.__)("Preview in new tab"),(0,l.createElement)(_.Icon,{icon:S}))}))))}function Yn(){const{permalink:e,isPublished:t,label:n}=(0,u.useSelect)((e=>{const t=e(T.store).getCurrentPostType(),n=e(qe.store).getPostType(t);return{permalink:e(T.store).getPermalink(),isPublished:e(T.store).isCurrentPostPublished(),label:n?.labels.view_item}}),[]);return t&&e?(0,l.createElement)(_.Button,{icon:S,label:n||(0,b.__)("View post"),href:e,target:"_blank"}):null}const Xn="__experimentalMainDashboardButton",{Fill:Qn,Slot:Jn}=(0,_.createSlotFill)(Xn),eo=Qn;eo.Slot=({children:e})=>{const t=(0,_.__experimentalUseSlotFills)(Xn);return Boolean(t&&t.length)?(0,l.createElement)(Jn,{bubblesVirtually:!0}):e};var to=eo;var no=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var oo=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var ao=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var ro=function(){const{template:e,isEditing:t}=(0,u.useSelect)((e=>{const{isEditingTemplate:t,getEditedPostTemplate:n}=e(on),o=t();return{template:o?n():null,isEditing:o}}),[]),{clearSelectedBlock:n}=(0,u.useDispatch)(E.store),{setIsEditingTemplate:o}=(0,u.useDispatch)(on),{open:a}=(0,u.useDispatch)(rn.store);if(!t||!e)return null;let r=(0,b.__)("Default");return e?.title?r=e.title:e&&(r=e.slug),(0,l.createElement)("div",{className:"edit-post-document-title"},(0,l.createElement)("span",{className:"edit-post-document-title__left"},(0,l.createElement)(_.Button,{onClick:()=>{n(),o(!1)},icon:(0,b.isRTL)()?no:oo},(0,b.__)("Back"))),(0,l.createElement)(_.Button,{className:"edit-post-document-title__title",onClick:()=>a()},(0,l.createElement)(_.__experimentalHStack,{spacing:1,justify:"center"},(0,l.createElement)(E.BlockIcon,{icon:ao}),(0,l.createElement)(_.__experimentalText,{size:"body",as:"h1"},(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("Editing template: ")),r))),(0,l.createElement)(_.Button,{className:"edit-post-document-title__shortcut",onClick:()=>a()},M.displayShortcut.primary("k")))};const lo={hidden:{y:"-50px"},hover:{y:0,transition:{type:"tween",delay:.2}}},so={hidden:{x:"-100%"},hover:{x:0,transition:{type:"tween",delay:.2}}};var io=function({setEntitiesSavedStatesCallback:e}){const t=(0,f.useViewportMatch)("large"),{hasActiveMetaboxes:n,isPublishSidebarOpened:o,isSaving:a,showIconLabels:r}=(0,u.useSelect)((e=>({hasActiveMetaboxes:e(on).hasMetaBoxes(),isPublishSidebarOpened:e(on).isPublishSidebarOpened(),isSaving:e(on).isSavingMetaBoxes(),showIconLabels:e(on).isFeatureActive("showIconLabels")})),[]);return(0,l.createElement)("div",{className:"edit-post-header"},(0,l.createElement)(to.Slot,null,(0,l.createElement)(_.__unstableMotion.div,{variants:so,transition:{type:"tween",delay:.8}},(0,l.createElement)(On,{showTooltip:!0}))),(0,l.createElement)(_.__unstableMotion.div,{variants:lo,transition:{type:"tween",delay:.8},className:"edit-post-header__toolbar"},(0,l.createElement)(Un,null),(0,l.createElement)("div",{className:"edit-post-header__document-title"},(0,l.createElement)(ro,null))),(0,l.createElement)(_.__unstableMotion.div,{variants:lo,transition:{type:"tween",delay:.8},className:"edit-post-header__settings"},!o&&(0,l.createElement)(T.PostSavedState,{forceIsDirty:n,forceIsSaving:a,showIconLabels:r}),(0,l.createElement)(Kn,null),(0,l.createElement)(T.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:a?null:void 0}),(0,l.createElement)(Yn,null),(0,l.createElement)(jn,{forceIsDirty:n,forceIsSaving:a,setEntitiesSavedStatesCallback:e}),(t||!r)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ce.Slot,{scope:"core/edit-post"}),(0,l.createElement)(qn,{showIconLabels:r})),r&&!t&&(0,l.createElement)(qn,{showIconLabels:r})))};var co=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function uo(){const{insertionPoint:e,showMostUsedBlocks:t}=(0,u.useSelect)((e=>{const{isFeatureActive:t,__experimentalGetInsertionPoint:n}=e(on);return{insertionPoint:n(),showMostUsedBlocks:t("mostUsedBlocks")}}),[]),{setIsInserterOpened:n}=(0,u.useDispatch)(on),o=(0,f.useViewportMatch)("medium","<"),a=o?"div":_.VisuallyHidden,[r,s]=(0,f.__experimentalUseDialog)({onClose:()=>n(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...s,className:"edit-post-editor__inserter-panel"},(0,l.createElement)(a,{className:"edit-post-editor__inserter-panel-header"},(0,l.createElement)(_.Button,{icon:co,label:(0,b.__)("Close block inserter"),onClick:()=>n(!1)})),(0,l.createElement)("div",{className:"edit-post-editor__inserter-panel-content"},(0,l.createElement)(E.__experimentalLibrary,{showMostUsedBlocks:t,showInserterHelpPanel:!0,shouldFocusBlock:o,rootClientId:e.rootClientId,__experimentalInsertionIndex:e.insertionIndex,__experimentalFilterValue:e.filterValue,ref:i})))}var mo=window.wp.dom;function po(){return(0,l.createElement)(_.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(_.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,l.createElement)(_.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,l.createElement)(_.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"}))}function go(){const{headingCount:e}=(0,u.useSelect)((e=>{const{getGlobalBlockCount:t}=e(E.store);return{headingCount:t("core/heading")}}),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-post-editor__list-view-overview"},(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Characters:")),(0,l.createElement)(_.__experimentalText,null,(0,l.createElement)(T.CharacterCount,null))),(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Words:")),(0,l.createElement)(T.WordCount,null)),(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Time to read:")),(0,l.createElement)(T.TimeToRead,null))),e>0?(0,l.createElement)(T.DocumentOutline,null):(0,l.createElement)("div",{className:"edit-post-editor__list-view-empty-headings"},(0,l.createElement)(po,null),(0,l.createElement)("p",null,(0,b.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels."))))}function ho(){const{setIsListViewOpened:e}=(0,u.useDispatch)(on),t=(0,f.useFocusOnMount)("firstElement"),n=(0,f.useFocusReturn)(),o=(0,f.useFocusReturn)();const[a,r]=(0,l.useState)(null),[s,i]=(0,l.useState)("list-view"),c=(0,l.useRef)(),d=(0,l.useRef)(),m=(0,l.useRef)(),p=(0,f.useMergeRefs)([o,t,m,r]);return(0,Te.useShortcut)("core/edit-post/toggle-list-view",(()=>{c.current.contains(c.current.ownerDocument.activeElement)?e(!1):function(e){const t=mo.focus.tabbable.find(d.current)[0];if("list-view"===e){const e=mo.focus.tabbable.find(m.current)[0];(c.current.contains(e)?e:t).focus()}else t.focus()}(s)})),(0,l.createElement)("div",{className:"edit-post-editor__document-overview-panel",onKeyDown:function(t){t.keyCode!==M.ESCAPE||t.defaultPrevented||(t.preventDefault(),e(!1))},ref:c},(0,l.createElement)(_.Button,{className:"edit-post-editor__document-overview-panel__close-button",ref:n,icon:V,label:(0,b.__)("Close"),onClick:()=>e(!1)}),(0,l.createElement)(_.TabPanel,{className:"edit-post-editor__document-overview-panel__tab-panel",ref:d,onSelect:e=>i(e),selectOnMove:!1,tabs:[{name:"list-view",title:"List View",className:"edit-post-sidebar__panel-tab"},{name:"outline",title:"Outline",className:"edit-post-sidebar__panel-tab"}]},(e=>(0,l.createElement)("div",{className:"edit-post-editor__list-view-container",ref:p},"list-view"===e.name?(0,l.createElement)("div",{className:"edit-post-editor__list-view-panel-content"},(0,l.createElement)(E.__experimentalListView,{dropZoneElement:a})):(0,l.createElement)(go,null)))))}var _o=(0,l.createElement)(w.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var Eo=(0,l.createElement)(w.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));var bo=({sidebarName:e})=>{const{openGeneralSidebar:t}=(0,u.useDispatch)(on),n=()=>t("edit-post/document"),{documentLabel:o,isTemplateMode:a}=(0,u.useSelect)((e=>({documentLabel:e(T.store).getPostTypeLabel()||(0,b._x)("Document","noun"),isTemplateMode:e(on).isEditingTemplate()})),[]),[r,s]="edit-post/document"===e?[(0,b.sprintf)((0,b.__)("%s (selected)"),o),"is-active"]:[o,""],[i,c]="edit-post/block"===e?[(0,b.__)("Block (selected)"),"is-active"]:[(0,b.__)("Block"),""],[d,m]="edit-post/document"===e?[(0,b.__)("Template (selected)"),"is-active"]:[(0,b.__)("Template"),""];return(0,l.createElement)("ul",null,!a&&(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:n,className:`edit-post-sidebar__panel-tab ${s}`,"aria-label":r,"data-label":o},o)),a&&(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:n,className:`edit-post-sidebar__panel-tab ${m}`,"aria-label":d,"data-label":(0,b.__)("Template")},(0,b.__)("Template"))),(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:()=>t("edit-post/block"),className:`edit-post-sidebar__panel-tab ${c}`,"aria-label":i,"data-label":(0,b.__)("Block")},(0,b.__)("Block"))))};function fo({isOpen:e,onClick:t}){const n=(0,T.usePostVisibilityLabel)();return(0,l.createElement)(_.Button,{className:"edit-post-post-visibility__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Select visibility: %s"),n),onClick:t},n)}var vo=function(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(T.PostVisibilityCheck,{render:({canEdit:e})=>(0,l.createElement)(_.PanelRow,{ref:t,className:"edit-post-post-visibility"},(0,l.createElement)("span",null,(0,b.__)("Visibility")),!e&&(0,l.createElement)("span",null,(0,l.createElement)(T.PostVisibilityLabel,null)),e&&(0,l.createElement)(_.Dropdown,{contentClassName:"edit-post-post-visibility__dialog",popoverProps:n,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(fo,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(T.PostVisibility,{onClose:e})}))})};function yo(){return(0,l.createElement)(T.PostTrashCheck,null,(0,l.createElement)(_.FlexItem,{isBlock:!0},(0,l.createElement)(T.PostTrash,null)))}function wo(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(T.PostScheduleCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-schedule",ref:t},(0,l.createElement)("span",null,(0,b.__)("Publish")),(0,l.createElement)(_.Dropdown,{popoverProps:n,contentClassName:"edit-post-post-schedule__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(So,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(T.PostSchedule,{onClose:e})})))}function So({isOpen:e,onClick:t}){const n=(0,T.usePostScheduleLabel)(),o=(0,T.usePostScheduleLabel)({full:!0});return(0,l.createElement)(_.Button,{className:"edit-post-post-schedule__toggle",variant:"tertiary",label:o,showTooltip:!0,"aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Change date: %s"),n),onClick:t},n)}var ko=function(){return(0,l.createElement)(T.PostStickyCheck,null,(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PostSticky,null)))};var Po=function(){return(0,l.createElement)(T.PostAuthorCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-author"},(0,l.createElement)(T.PostAuthor,null)))};var Co=function(){return(0,l.createElement)(T.PostSlugCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-slug"},(0,l.createElement)(T.PostSlug,null)))};var To=function(){return(0,l.createElement)(T.PostFormatCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-format"},(0,l.createElement)(T.PostFormat,null)))};var xo=function(){return(0,l.createElement)(T.PostPendingStatusCheck,null,(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PostPendingStatus,null)))};const{Fill:Mo,Slot:Bo}=(0,_.createSlotFill)("PluginPostStatusInfo"),Io=({children:e,className:t})=>(0,l.createElement)(Mo,null,(0,l.createElement)(_.PanelRow,{className:t},e));Io.Slot=Bo;var No=Io;var Lo=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"}));const Ao=(0,b.__)("Custom Template");function Do({onClose:e}){const t=(0,u.useSelect)((e=>e(T.store).getEditorSettings().defaultBlockTemplate),[]),{__unstableCreateTemplate:n,__unstableSwitchToTemplateMode:o}=(0,u.useDispatch)(on),[a,r]=(0,l.useState)(""),[i,c]=(0,l.useState)(!1),d=()=>{r(""),e()};return(0,l.createElement)(_.Modal,{title:(0,b.__)("Create custom template"),onRequestClose:d,className:"edit-post-post-template__create-modal"},(0,l.createElement)("form",{className:"edit-post-post-template__create-form",onSubmit:async e=>{if(e.preventDefault(),i)return;c(!0);const r=null!=t?t:(0,s.serialize)([(0,s.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,s.createBlock)("core/site-title"),(0,s.createBlock)("core/site-tagline")]),(0,s.createBlock)("core/separator"),(0,s.createBlock)("core/group",{tagName:"main"},[(0,s.createBlock)("core/group",{layout:{inherit:!0}},[(0,s.createBlock)("core/post-title")]),(0,s.createBlock)("core/post-content",{layout:{inherit:!0}})])]);await n({slug:(0,P.cleanForSlug)(a||Ao),content:r,title:a||Ao}),c(!1),d(),o(!0)}},(0,l.createElement)(_.__experimentalVStack,{spacing:"3"},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:a,onChange:r,placeholder:Ao,disabled:i,help:(0,b.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(_.__experimentalHStack,{justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:d},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit",isBusy:i,"aria-disabled":i},(0,b.__)("Create"))))))}function Vo({onClose:e}){var t,n;const{isPostsPage:o,availableTemplates:a,fetchedTemplates:r,selectedTemplateSlug:s,canCreate:i,canEdit:c}=(0,u.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEntityRecords:o}=e(qe.store),a=e(T.store).getEditorSettings(),r=t("read","settings")?n("root","site"):void 0,l=e(T.store).getCurrentPostId()===r?.page_for_posts,s=t("create","templates");return{isPostsPage:l,availableTemplates:a.availableTemplates,fetchedTemplates:s?o("postType","wp_template",{post_type:e(T.store).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(T.store).getEditedPostAttribute("template"),canCreate:s&&!l&&a.supportsTemplateMode,canEdit:s&&a.supportsTemplateMode&&!!e(on).getEditedPostTemplate()}}),[]),d=(0,l.useMemo)((()=>Object.entries({...a,...Object.fromEntries((null!=r?r:[]).map((({slug:e,title:t})=>[e,t.rendered])))}).map((([e,t])=>({value:e,label:t})))),[a,r]),m=null!==(t=d.find((e=>e.value===s)))&&void 0!==t?t:d.find((e=>!e.value)),{editPost:p}=(0,u.useDispatch)(T.store),{__unstableSwitchToTemplateMode:g}=(0,u.useDispatch)(on),[h,f]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:"edit-post-post-template__form"},(0,l.createElement)(E.__experimentalInspectorPopoverHeader,{title:(0,b.__)("Template"),help:(0,b.__)("Templates define the way content is displayed when viewing your site."),actions:i?[{icon:Lo,label:(0,b.__)("Add template"),onClick:()=>f(!0)}]:[],onClose:e}),o?(0,l.createElement)(_.Notice,{className:"edit-post-post-template__notice",status:"warning",isDismissible:!1},(0,b.__)("The posts page template cannot be changed.")):(0,l.createElement)(_.SelectControl,{__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,b.__)("Template"),value:null!==(n=m?.value)&&void 0!==n?n:"",options:d,onChange:e=>p({template:e||""})}),c&&(0,l.createElement)("p",null,(0,l.createElement)(_.Button,{variant:"link",onClick:()=>g()},(0,b.__)("Edit template"))),h&&(0,l.createElement)(Do,{onClose:()=>f(!1)}))}function Oo(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,u.useSelect)((e=>{var t;const n=e(T.store).getCurrentPostType();if(!e(qe.store).getPostType(n)?.viewable)return!1;const o=e(T.store).getEditorSettings();if(!!o.availableTemplates&&Object.keys(o.availableTemplates).length>0)return!0;if(!o.supportsTemplateMode)return!1;return null!==(t=e(qe.store).canUser("create","templates"))&&void 0!==t&&t}),[])?(0,l.createElement)(_.PanelRow,{className:"edit-post-post-template",ref:t},(0,l.createElement)("span",null,(0,b.__)("Template")),(0,l.createElement)(_.Dropdown,{popoverProps:n,className:"edit-post-post-template__dropdown",contentClassName:"edit-post-post-template__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Fo,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(Vo,{onClose:e})})):null}function Fo({isOpen:e,onClick:t}){const n=(0,u.useSelect)((e=>{const t=e(T.store).getEditedPostAttribute("template"),{supportsTemplateMode:n,availableTemplates:o}=e(T.store).getEditorSettings();if(!n&&o[t])return o[t];const a=e(qe.store).canUser("create","templates")&&e(on).getEditedPostTemplate();return a?.title||a?.slug||o?.[t]}),[]);return(0,l.createElement)(_.Button,{className:"edit-post-post-template__toggle",variant:"tertiary","aria-expanded":e,"aria-label":n?(0,b.sprintf)((0,b.__)("Select template: %s"),n):(0,b.__)("Select template"),onClick:t},null!=n?n:(0,b.__)("Default template"))}function Ro(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(T.PostURLCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-url",ref:t},(0,l.createElement)("span",null,(0,b.__)("URL")),(0,l.createElement)(_.Dropdown,{popoverProps:n,className:"edit-post-post-url__dropdown",contentClassName:"edit-post-post-url__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Ho,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(T.PostURL,{onClose:e})})))}function Ho({isOpen:e,onClick:t}){const n=(0,T.usePostURLLabel)();return(0,l.createElement)(_.Button,{className:"edit-post-post-url__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Change URL: %s"),n),onClick:t},n)}const Go="post-status";var Uo=(0,f.compose)([(0,u.withSelect)((e=>{const{isEditorPanelRemoved:t,isEditorPanelOpened:n}=e(on);return{isRemoved:t(Go),isOpened:n(Go)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(Go)}})))])((function({isOpened:e,onTogglePanel:t}){return(0,l.createElement)(_.PanelBody,{className:"edit-post-post-status",title:(0,b.__)("Summary"),opened:e,onToggle:t},(0,l.createElement)(No.Slot,null,(e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(vo,null),(0,l.createElement)(wo,null),(0,l.createElement)(Oo,null),(0,l.createElement)(Ro,null),(0,l.createElement)(ko,null),(0,l.createElement)(xo,null),(0,l.createElement)(To,null),(0,l.createElement)(Co,null),(0,l.createElement)(Po,null),(0,l.createElement)(T.PostSyncStatus,null),e,(0,l.createElement)(_.__experimentalHStack,{style:{marginTop:"16px"},spacing:4},(0,l.createElement)(T.PostSwitchToDraftButton,null),(0,l.createElement)(yo,null))))))}));var zo=function(){return(0,l.createElement)(T.PostLastRevisionCheck,null,(0,l.createElement)(_.PanelBody,{className:"edit-post-last-revision__panel"},(0,l.createElement)(T.PostLastRevision,null)))};var Zo=(0,f.compose)((0,u.withSelect)(((e,t)=>{const n=t.taxonomy?.slug,o=n?`taxonomy-panel-${n}`:"";return{panelName:o,isEnabled:!!n&&e(on).isEditorPanelEnabled(o),isOpened:!!n&&e(on).isEditorPanelOpened(o)}})),(0,u.withDispatch)(((e,t)=>({onTogglePanel:()=>{e(on).toggleEditorPanelOpened(t.panelName)}}))))((function({isEnabled:e,taxonomy:t,isOpened:n,onTogglePanel:o,children:a}){if(!e)return null;const r=t?.labels?.menu_name;return r?(0,l.createElement)(_.PanelBody,{title:r,opened:n,onToggle:o},a):null}));var $o=function(){return(0,l.createElement)(T.PostTaxonomiesCheck,null,(0,l.createElement)(T.PostTaxonomies,{taxonomyWrapper:(e,t)=>(0,l.createElement)(Zo,{taxonomy:t},e)}))};const Wo="featured-image";const qo=(0,u.withSelect)((e=>{const{getEditedPostAttribute:t}=e(T.store),{getPostType:n}=e(qe.store),{isEditorPanelEnabled:o,isEditorPanelOpened:a}=e(on);return{postType:n(t("type")),isEnabled:o(Wo),isOpened:a(Wo)}})),jo=(0,u.withDispatch)((e=>{const{toggleEditorPanelOpened:t}=e(on);return{onTogglePanel:(...e)=>t(Wo,...e)}}));var Ko=(0,f.compose)(qo,jo)((function({isEnabled:e,isOpened:t,postType:n,onTogglePanel:o}){var a;return e?(0,l.createElement)(T.PostFeaturedImageCheck,null,(0,l.createElement)(_.PanelBody,{title:null!==(a=n?.labels?.featured_image)&&void 0!==a?a:(0,b.__)("Featured image"),opened:t,onToggle:o},(0,l.createElement)(T.PostFeaturedImage,null))):null}));const Yo="post-excerpt";var Xo=(0,f.compose)([(0,u.withSelect)((e=>({isEnabled:e(on).isEditorPanelEnabled(Yo),isOpened:e(on).isEditorPanelOpened(Yo)}))),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(Yo)}})))])((function({isEnabled:e,isOpened:t,onTogglePanel:n}){return e?(0,l.createElement)(T.PostExcerptCheck,null,(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Excerpt"),opened:t,onToggle:n},(0,l.createElement)(T.PostExcerpt,null))):null}));const Qo="discussion-panel";var Jo=(0,f.compose)([(0,u.withSelect)((e=>({isEnabled:e(on).isEditorPanelEnabled(Qo),isOpened:e(on).isEditorPanelOpened(Qo)}))),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(Qo)}})))])((function({isEnabled:e,isOpened:t,onTogglePanel:n}){return e?(0,l.createElement)(T.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Discussion"),opened:t,onToggle:n},(0,l.createElement)(T.PostTypeSupportCheck,{supportKeys:"comments"},(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PostComments,null))),(0,l.createElement)(T.PostTypeSupportCheck,{supportKeys:"trackbacks"},(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PostPingbacks,null))))):null}));const ea="page-attributes";var ta=function(){var e;const{isEnabled:t,isOpened:n,postType:o}=(0,u.useSelect)((e=>{const{getEditedPostAttribute:t}=e(T.store),{isEditorPanelEnabled:n,isEditorPanelOpened:o}=e(on),{getPostType:a}=e(qe.store);return{isEnabled:n(ea),isOpened:o(ea),postType:a(t("type"))}}),[]),{toggleEditorPanelOpened:a}=(0,u.useDispatch)(on);return t&&o?(0,l.createElement)(T.PageAttributesCheck,null,(0,l.createElement)(_.PanelBody,{title:null!==(e=o?.labels?.attributes)&&void 0!==e?e:(0,b.__)("Page attributes"),opened:n,onToggle:(...e)=>a(ea,...e)},(0,l.createElement)(T.PageAttributesParent,null),(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(T.PageAttributesOrder,null)))):null};var na=function({location:e}){const t=(0,l.useRef)(null),n=(0,l.useRef)(null);(0,l.useEffect)((()=>(n.current=document.querySelector(".metabox-location-"+e),n.current&&t.current.appendChild(n.current),()=>{n.current&&document.querySelector("#metaboxes").appendChild(n.current)})),[e]);const o=(0,u.useSelect)((e=>e(on).isSavingMetaBoxes()),[]),a=I()("edit-post-meta-boxes-area",`is-${e}`,{"is-loading":o});return(0,l.createElement)("div",{className:a},o&&(0,l.createElement)(_.Spinner,null),(0,l.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:t}),(0,l.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))};class oa extends l.Component{componentDidMount(){this.updateDOM()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}updateDOM(){const{id:e,isVisible:t}=this.props,n=document.getElementById(e);n&&(t?n.classList.remove("is-hidden"):n.classList.add("is-hidden"))}render(){return null}}var aa=(0,u.withSelect)(((e,{id:t})=>({isVisible:e(on).isEditorPanelEnabled(`meta-box-${t}`)})))(oa);function ra({location:e}){const t=(0,u.useRegistry)(),{metaBoxes:n,areMetaBoxesInitialized:o,isEditorReady:a}=(0,u.useSelect)((t=>{const{__unstableIsEditorReady:n}=t(T.store),{getMetaBoxesPerLocation:o,areMetaBoxesInitialized:a}=t(on);return{metaBoxes:o(e),areMetaBoxesInitialized:a(),isEditorReady:n()}}),[e]);return(0,l.useEffect)((()=>{a&&!o&&t.dispatch(on).initializeMetaBoxes()}),[a,o]),o?(0,l.createElement)(l.Fragment,null,(null!=n?n:[]).map((({id:e})=>(0,l.createElement)(aa,{key:e,id:e}))),(0,l.createElement)(na,{location:e})):null}window.wp.warning;const{Fill:la,Slot:sa}=(0,_.createSlotFill)("PluginDocumentSettingPanel"),ia=(0,f.compose)((0,k.withPluginContext)(((e,t)=>(void 0===t.name&&"undefined"!=typeof process&&process.env,{panelName:`${e.name}/${t.name}`}))),(0,u.withSelect)(((e,{panelName:t})=>({opened:e(on).isEditorPanelOpened(t),isEnabled:e(on).isEditorPanelEnabled(t)}))),(0,u.withDispatch)(((e,{panelName:t})=>({onToggle(){return e(on).toggleEditorPanelOpened(t)}}))))((({isEnabled:e,panelName:t,opened:n,onToggle:o,className:a,title:r,icon:s,children:i})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Pn,{label:r,panelName:t}),(0,l.createElement)(la,null,e&&(0,l.createElement)(_.PanelBody,{className:a,title:r,icon:s,opened:n,onToggle:o},i)))));ia.Slot=sa;var ca=ia;function da({className:e,...t}){const{postTitle:n,shortcut:o,showIconLabels:a}=(0,u.useSelect)((e=>({postTitle:e(T.store).getEditedPostAttribute("title"),shortcut:e(Te.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),showIconLabels:e(on).isFeatureActive("showIconLabels")})),[]);return(0,l.createElement)(me,{panelClassName:e,className:"edit-post-sidebar",smallScreenTitle:n||(0,b.__)("(no title)"),scope:"core/edit-post",toggleShortcut:o,showIconLabels:a,...t})}var ua=function(){const e=(0,u.useSelect)((e=>{const{getEditedPostTemplate:t}=e(on);return t()}),[]);return e?(0,l.createElement)(_.PanelBody,null,(0,l.createElement)(_.Flex,{align:"flex-start",gap:"3"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(ve,{icon:ao})),(0,l.createElement)(_.FlexBlock,null,(0,l.createElement)("h2",{className:"edit-post-template-summary__title"},e?.title||e?.slug),(0,l.createElement)("p",null,e?.description)))):null};const ma=l.Platform.select({web:!0,native:!1});var pa=()=>{const{sidebarName:e,keyboardShortcut:t,isTemplateMode:n}=(0,u.useSelect)((e=>{let t=e(J).getActiveComplementaryArea(on.name);["edit-post/document","edit-post/block"].includes(t)||(e(E.store).getBlockSelectionStart()&&(t="edit-post/block"),t="edit-post/document");return{sidebarName:t,keyboardShortcut:e(Te.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),isTemplateMode:e(on).isEditingTemplate()}}),[]);return(0,l.createElement)(da,{identifier:e,header:(0,l.createElement)(bo,{sidebarName:e}),closeLabel:(0,b.__)("Close Settings"),headerClassName:"edit-post-sidebar__panel-tabs",title:(0,b.__)("Settings"),toggleShortcut:t,icon:(0,b.isRTL)()?_o:Eo,isActiveByDefault:ma},!n&&"edit-post/document"===e&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Uo,null),(0,l.createElement)(ca.Slot,null),(0,l.createElement)(zo,null),(0,l.createElement)($o,null),(0,l.createElement)(Ko,null),(0,l.createElement)(Xo,null),(0,l.createElement)(Jo,null),(0,l.createElement)(ta,null),(0,l.createElement)(ra,{location:"side"})),n&&"edit-post/document"===e&&(0,l.createElement)(ua,null),"edit-post/block"===e&&(0,l.createElement)(E.BlockInspector,null))};function ga({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-post-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function ha(){const{toggleFeature:e}=(0,u.useDispatch)(on);return(0,l.createElement)(_.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,b.__)("Welcome to the block editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("welcomeGuide"),pages:[{image:(0,l.createElement)(ga,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Welcome to the block editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.")))},{image:(0,l.createElement)(ga,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Make each block your own")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:(0,l.createElement)(ga,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Get to know the block library")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,l.createInterpolateElement)((0,b.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the icon."),{InserterIconImage:(0,l.createElement)("img",{alt:(0,b.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,l.createElement)(ga,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Learn how to use the block editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("New to the block editor? Want to learn more about using it? "),(0,l.createElement)(_.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,b.__)("Here's a detailed guide."))))}]})}function _a(){const{toggleFeature:e}=(0,u.useDispatch)(on);return(0,l.createElement)(_.Guide,{className:"edit-template-welcome-guide",contentLabel:(0,b.__)("Welcome to the template editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("welcomeGuideTemplate"),pages:[{image:(0,l.createElement)(ga,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Welcome to the template editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.")))}]})}function Ea(){const{isActive:e,isTemplateMode:t}=(0,u.useSelect)((e=>{const{isFeatureActive:t,isEditingTemplate:n}=e(on),o=n();return{isActive:t(o?"welcomeGuideTemplate":"welcomeGuide"),isTemplateMode:o}}),[]);return e?t?(0,l.createElement)(_a,null):(0,l.createElement)(ha,null):null}const{Fill:ba,Slot:fa}=(0,_.createSlotFill)("PluginPostPublishPanel"),va=(0,f.compose)((0,k.withPluginContext)(((e,t)=>({icon:t.icon||e.icon}))))((({children:e,className:t,title:n,initialOpen:o=!1,icon:a})=>(0,l.createElement)(ba,null,(0,l.createElement)(_.PanelBody,{className:t,initialOpen:o||!n,title:n,icon:a},e))));va.Slot=fa;var ya=va;const{Fill:wa,Slot:Sa}=(0,_.createSlotFill)("PluginPrePublishPanel"),ka=(0,f.compose)((0,k.withPluginContext)(((e,t)=>({icon:t.icon||e.icon}))))((({children:e,className:t,title:n,initialOpen:o=!1,icon:a})=>(0,l.createElement)(wa,null,(0,l.createElement)(_.PanelBody,{className:t,initialOpen:o||!n,title:n,icon:a},e))));ka.Slot=Sa;var Pa=ka;const{Fill:Ca,Slot:Ta}=(0,_.createSlotFill)("ActionsPanel");function xa({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}){const{closePublishSidebar:o,togglePublishSidebar:a}=(0,u.useDispatch)(on),{publishSidebarOpened:r,hasActiveMetaboxes:s,isSavingMetaBoxes:i,hasNonPostEntityChanges:c}=(0,u.useSelect)((e=>({publishSidebarOpened:e(on).isPublishSidebarOpened(),hasActiveMetaboxes:e(on).hasMetaBoxes(),isSavingMetaBoxes:e(on).isSavingMetaBoxes(),hasNonPostEntityChanges:e(T.store).hasNonPostEntityChanges()})),[]),d=(0,l.useCallback)((()=>e(!0)),[]);let m;return m=r?(0,l.createElement)(T.PostPublishPanel,{onClose:o,forceIsDirty:s,forceIsSaving:i,PrePublishExtension:Pa.Slot,PostPublishExtension:ya.Slot}):c?(0,l.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},(0,b.__)("Open save panel"))):(0,l.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-publish-panel-button",onClick:a,"aria-expanded":!1},(0,b.__)("Open publish panel"))),(0,l.createElement)(l.Fragment,null,n&&(0,l.createElement)(T.EntitiesSavedStates,{close:t}),(0,l.createElement)(Ta,{bubblesVirtually:!0}),!n&&m)}function Ma(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,u.useSelect)((e=>{const{getPatternsByBlockTypes:t}=e(E.store),{getCurrentPostType:n}=e(T.store);return{blockPatternsWithPostContentBlockType:t("core/post-content"),postType:n()}}),[]);return(0,l.useMemo)((()=>e.filter((e=>"page"===t&&!e.postTypes||Array.isArray(e.postTypes)&&e.postTypes.includes(t)))),[t,e])}function Ba({onChoosePattern:e}){const t=Ma(),n=(0,f.useAsyncList)(t),{resetEditorBlocks:o}=(0,u.useDispatch)(T.store);return(0,l.createElement)(E.__experimentalBlockPatternsList,{blockPatterns:t,shownPatterns:n,onClickPattern:(t,n)=>{o(n),e()}})}const Ia="INITIAL",Na="PATTERN",La="CLOSED";function Aa(){const[e,t]=(0,l.useState)(Ia),n=Ma().length>0,o=(0,u.useSelect)((t=>{if(!n||e!==Ia)return!1;const{getEditedPostContent:o,isEditedPostSaveable:a}=t(T.store),{isEditingTemplate:r,isFeatureActive:l}=t(on);return!a()&&""===o()&&!r()&&!l("welcomeGuide")}),[e,n]);return(0,l.useEffect)((()=>{o&&t(Na)}),[o]),e===Ia||e===La?null:(0,l.createElement)(_.Modal,{className:"edit-post-start-page-options__modal",title:(0,b.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:()=>{t(La)}},(0,l.createElement)("div",{className:"edit-post-start-page-options__modal-content"},e===Na&&(0,l.createElement)(Ba,{onChoosePattern:()=>{t(La)}})))}const Da={header:(0,b.__)("Editor top bar"),body:(0,b.__)("Editor content"),sidebar:(0,b.__)("Editor settings"),actions:(0,b.__)("Editor publish"),footer:(0,b.__)("Editor footer")};var Va=function({styles:e}){const t=(0,f.useViewportMatch)("medium","<"),n=(0,f.useViewportMatch)("huge",">="),o=(0,f.useViewportMatch)("large"),{openGeneralSidebar:a,closeGeneralSidebar:r,setIsInserterOpened:s}=(0,u.useDispatch)(on),{createErrorNotice:i}=(0,u.useDispatch)(C.store),{mode:c,isFullscreenActive:d,isRichEditingEnabled:m,sidebarIsOpened:p,hasActiveMetaboxes:g,hasFixedToolbar:h,previousShortcut:v,nextShortcut:y,hasBlockSelected:w,isInserterOpened:S,isListViewOpened:P,showIconLabels:x,isDistractionFree:M,showBlockBreadcrumbs:B,isTemplateMode:N,documentLabel:L}=(0,u.useSelect)((e=>{const{getEditorSettings:t,getPostTypeLabel:n}=e(T.store),o=t(),a=n();return{isTemplateMode:e(on).isEditingTemplate(),hasFixedToolbar:e(on).isFeatureActive("fixedToolbar"),sidebarIsOpened:!(!e(J).getActiveComplementaryArea(on.name)&&!e(on).isPublishSidebarOpened()),isFullscreenActive:e(on).isFeatureActive("fullscreenMode"),isInserterOpened:e(on).isInserterOpened(),isListViewOpened:e(on).isListViewOpened(),mode:e(on).getEditorMode(),isRichEditingEnabled:o.richEditingEnabled,hasActiveMetaboxes:e(on).hasMetaBoxes(),previousShortcut:e(Te.store).getAllShortcutKeyCombinations("core/edit-post/previous-region"),nextShortcut:e(Te.store).getAllShortcutKeyCombinations("core/edit-post/next-region"),showIconLabels:e(on).isFeatureActive("showIconLabels"),isDistractionFree:e(on).isFeatureActive("distractionFree"),showBlockBreadcrumbs:e(on).isFeatureActive("showBlockBreadcrumbs"),documentLabel:a||(0,b._x)("Document","noun")}}),[]);(0,l.useEffect)((()=>{p&&!n&&s(!1)}),[p,n]),(0,l.useEffect)((()=>{S&&!n&&r()}),[S,n]);const[A,D]=(0,l.useState)(!1),V=(0,l.useCallback)((e=>{"function"==typeof A&&A(e),D(!1)}),[A]),O=I()("edit-post-layout","is-mode-"+c,{"is-sidebar-opened":p,"has-fixed-toolbar":h,"has-metaboxes":g,"show-icon-labels":x,"is-distraction-free":M&&o,"is-entity-save-view-open":!!A}),F=P?(0,b.__)("Document Overview"):(0,b.__)("Block Library");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(pe,{isActive:d}),(0,l.createElement)(Dn,null),(0,l.createElement)(T.UnsavedChangesWarning,null),(0,l.createElement)(T.AutosaveMonitor,null),(0,l.createElement)(T.LocalAutosaveMonitor,null),(0,l.createElement)(bn,null),(0,l.createElement)(T.EditorKeyboardShortcutsRegister,null),(0,l.createElement)(pa,null),(0,l.createElement)(_e,{isDistractionFree:M&&o,className:O,labels:{...Da,secondarySidebar:F},header:(0,l.createElement)(io,{setEntitiesSavedStatesCallback:D}),editorNotices:(0,l.createElement)(T.EditorNotices,null),secondarySidebar:"visual"===c&&S?(0,l.createElement)(uo,null):"visual"===c&&P?(0,l.createElement)(ho,null):null,sidebar:(!t||p)&&(0,l.createElement)(l.Fragment,null,!t&&!p&&(0,l.createElement)("div",{className:"edit-post-layout__toggle-sidebar-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-sidebar-panel-button",onClick:()=>a(w?"edit-post/block":"edit-post/document"),"aria-expanded":!1},w?(0,b.__)("Open block settings"):(0,b.__)("Open document settings"))),(0,l.createElement)(me.Slot,{scope:"core/edit-post"})),notices:(0,l.createElement)(T.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,!M&&(0,l.createElement)(T.EditorNotices,null),("text"===c||!m)&&(0,l.createElement)(sn,null),m&&"visual"===c&&(0,l.createElement)(En,{styles:e}),!M&&!N&&(0,l.createElement)("div",{className:"edit-post-layout__metaboxes"},(0,l.createElement)(ra,{location:"normal"}),(0,l.createElement)(ra,{location:"advanced"})),t&&p&&(0,l.createElement)(_.ScrollLock,null)),footer:!M&&!t&&B&&m&&"visual"===c&&(0,l.createElement)("div",{className:"edit-post-layout__footer"},(0,l.createElement)(E.BlockBreadcrumb,{rootLabelText:L})),actions:(0,l.createElement)(xa,{closeEntitiesSavedStates:V,isEntitiesSavedStatesOpen:A,setEntitiesSavedStatesCallback:D}),shortcuts:{previous:v,next:y}}),(0,l.createElement)(Ln,null),(0,l.createElement)(Ve,null),(0,l.createElement)(Ea,null),(0,l.createElement)(Aa,null),(0,l.createElement)(_.Popover.Slot,null),(0,l.createElement)(k.PluginArea,{onError:function(e){i((0,b.sprintf)((0,b.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}))};function Oa({postId:e}){return(e=>{const{hasBlockSelection:t,isEditorSidebarOpened:n}=(0,u.useSelect)((e=>({hasBlockSelection:!!e(E.store).getBlockSelectionStart(),isEditorSidebarOpened:e(nn).isEditorSidebarOpened()})),[e]),{openGeneralSidebar:o}=(0,u.useDispatch)(nn);(0,l.useEffect)((()=>{n&&o(t?"edit-post/block":"edit-post/document")}),[t,n])})(e),(e=>{const{newPermalink:t}=(0,u.useSelect)((e=>({newPermalink:e(T.store).getCurrentPost().link})),[e]),n=(0,l.useRef)();(0,l.useEffect)((()=>{n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),(0,l.useEffect)((()=>{t&&n.current&&n.current.setAttribute("href",t)}),[t])})(e),null}var Fa=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var Ra=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(w.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var Ha=(0,l.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(w.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));var Ga=(0,l.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(w.Path,{d:"M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z"}));const{ExperimentalEditorProvider:Ua}=un(T.privateApis),{getLayoutStyles:za}=un(E.privateApis),{useCommands:Za}=un(ln.privateApis);var $a=function({postId:e,postType:t,settings:n,initialEdits:o,...a}){Za(),function(){const{openGeneralSidebar:e,closeGeneralSidebar:t,switchEditorMode:n}=(0,u.useDispatch)(on),{openModal:o}=(0,u.useDispatch)(J),{editorMode:a,activeSidebar:r}=(0,u.useSelect)((e=>({activeSidebar:e(J).getActiveComplementaryArea(on.name),editorMode:e(on).getEditorMode()})),[]),{toggle:l}=(0,u.useDispatch)(p.store);(0,rn.useCommand)({name:"core/open-settings-sidebar",label:(0,b.__)("Toggle settings sidebar"),icon:(0,b.isRTL)()?_o:Eo,callback:({close:n})=>{n(),"edit-post/document"===r?t():e("edit-post/document")}}),(0,rn.useCommand)({name:"core/open-block-inspector",label:(0,b.__)("Toggle block inspector"),icon:Fa,callback:({close:n})=>{n(),"edit-post/block"===r?t():e("edit-post/block")}}),(0,rn.useCommand)({name:"core/toggle-distraction-free",label:(0,b.__)("Toggle distraction free"),icon:Ra,callback:({close:e})=>{l("core/edit-post","distractionFree"),e()}}),(0,rn.useCommand)({name:"core/toggle-spotlight-mode",label:(0,b.__)("Toggle spotlight mode"),icon:Ra,callback:({close:e})=>{l("core/edit-post","focusMode"),e()}}),(0,rn.useCommand)({name:"core/toggle-top-toolbar",label:(0,b.__)("Toggle top toolbar"),icon:Ra,callback:({close:e})=>{l("core/edit-post","fixedToolbar"),e()}}),(0,rn.useCommand)({name:"core/toggle-code-editor",label:(0,b.__)("Toggle code editor"),icon:Ha,callback:({close:e})=>{n("visual"===a?"text":"visual"),e()}}),(0,rn.useCommand)({name:"core/open-preferences",label:(0,b.__)("Open editor preferences"),icon:Ra,callback:()=>{o(Nn)}}),(0,rn.useCommand)({name:"core/open-shortcut-help",label:(0,b.__)("Open keyboard shortcuts"),icon:Ga,callback:()=>{o(Ne)}})}();const{hasFixedToolbar:r,focusMode:i,isDistractionFree:c,hasInlineToolbar:d,hasThemeStyles:m,post:g,preferredStyleVariations:h,hiddenBlockTypes:E,blockTypes:f,keepCaretInsideBlock:v,isTemplateMode:y,template:w}=(0,u.useSelect)((n=>{var o;const{isFeatureActive:a,__experimentalGetPreviewDeviceType:r,isEditingTemplate:l,getEditedPostTemplate:i,getHiddenBlockTypes:c}=n(on),{getEntityRecord:d,getPostType:u,getEntityRecords:m,canUser:g}=n(qe.store),{getEditorSettings:h}=n(T.store),{getBlockTypes:_}=n(s.store);let E;if(["wp_template","wp_template_part"].includes(t)){E=m("postType",t,{wp_id:e})?.[0]}else E=d("postType",t,e);const b=h().supportsTemplateMode,f=null!==(o=u(t)?.viewable)&&void 0!==o&&o,v=g("create","templates");return{hasFixedToolbar:a("fixedToolbar")||"Desktop"!==r(),focusMode:a("focusMode"),isDistractionFree:a("distractionFree"),hasInlineToolbar:a("inlineToolbar"),hasThemeStyles:a("themeStyles"),preferredStyleVariations:n(p.store).get("core/edit-post","preferredStyleVariations"),hiddenBlockTypes:c(),blockTypes:_(),keepCaretInsideBlock:a("keepCaretInsideBlock"),isTemplateMode:l(),template:b&&f&&v?i():null,post:E}}),[t,e]),{updatePreferredStyleVariations:S,setIsInserterOpened:k}=(0,u.useDispatch)(on),P=(0,l.useMemo)((()=>{const e={...n,__experimentalPreferredStyleVariations:{value:h,onChange:S},hasFixedToolbar:r,focusMode:i,isDistractionFree:c,hasInlineToolbar:d,__experimentalSetIsInserterOpened:k,keepCaretInsideBlock:v,defaultAllowedBlockTypes:n.allowedBlockTypes};if(E.length>0){const t=!0===n.allowedBlockTypes?f.map((({name:e})=>e)):n.allowedBlockTypes||[];e.allowedBlockTypes=t.filter((e=>!E.includes(e)))}return e}),[n,r,d,i,c,E,f,h,k,S,v]),C=(0,l.useMemo)((()=>{const e=[],t=[];n.styles?.forEach((n=>{n.__unstableType&&"theme"!==n.__unstableType?t.push(n):e.push(n)}));const o=[...n.defaultEditorStyles,...t];return n.disableLayoutStyles||m&&e.length||o.push({css:za({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})}),m&&e.length?n.styles:o}),[n,m]);return g?(0,l.createElement)(Te.ShortcutProvider,null,(0,l.createElement)(_.SlotFillProvider,null,(0,l.createElement)(Ua,{settings:P,post:g,initialEdits:o,useSubRegistry:!1,__unstableTemplate:y?w:void 0,...a},(0,l.createElement)(T.ErrorBoundary,null,(0,l.createElement)(rn.CommandMenu,null),(0,l.createElement)(Oa,{postId:e}),(0,l.createElement)(Va,{styles:C})),(0,l.createElement)(T.PostLockedModal,null)))):null};var Wa=({allowedBlocks:e,icon:t,label:n,onClick:o,small:a,role:r})=>(0,l.createElement)(E.BlockSettingsMenuControls,null,(({selectedBlocks:s,onClose:i})=>((e,t)=>{return!Array.isArray(t)||(n=t,0===e.filter((e=>!n.includes(e))).length);var n})(s,e)?(0,l.createElement)(_.MenuItem,{onClick:(0,f.compose)(o,i),icon:t,label:a?n:void 0,role:r},!a&&n):null)),qa=(0,f.compose)((0,k.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:_.MenuItem,icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(re);function ja(e){return(0,l.createElement)(se,{__unstableExplicitMenuItem:!0,scope:"core/edit-post",...e})}function Ka(e,t,n,o,a){const r=document.getElementById(e),c=(0,l.createRoot)(r);(0,u.dispatch)(p.store).setDefaults("core/edit-post",{editorMode:"visual",fixedToolbar:!1,fullscreenMode:!0,hiddenBlockTypes:[],inactivePanels:[],isPublishSidebarEnabled:!0,openPanels:["post-status"],preferredStyleVariations:{},showBlockBreadcrumbs:!0,showIconLabels:!1,showListViewByDefault:!1,themeStyles:!0,welcomeGuide:!0,welcomeGuideTemplate:!0}),(0,u.dispatch)(s.store).__experimentalReapplyBlockTypeFilters(),(0,u.select)(on).isFeatureActive("showListViewByDefault")&&(0,u.dispatch)(on).setIsListViewOpened(!0),(0,i.registerCoreBlocks)(),(0,g.registerLegacyWidgetBlock)({inserter:!1}),(0,g.registerWidgetGroupBlock)({inserter:!1}),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",((e,t)=>!(!(0,u.select)(on).isEditingTemplate()&&"core/template-part"===t.name)&&e)),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",((e,t,n,{getBlockParentsByBlockName:o})=>(0,u.select)(on).isEditingTemplate()||"core/post-content"!==t.name?e:o(n,"core/query").length>0));"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.");return-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(e=>{const t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),c.render((0,l.createElement)($a,{settings:o,postId:n,postType:t,initialEdits:a})),c}function Ya(){d()("wp.editPost.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editPost=o}(); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-site.js b/wp-includes/js/dist/edit-site.js index 4b2ea4a2fb..578d6f63b3 100644 --- a/wp-includes/js/dist/edit-site.js +++ b/wp-includes/js/dist/edit-site.js @@ -1593,8 +1593,10 @@ __webpack_require__.d(__webpack_exports__, { var actions_namespaceObject = {}; __webpack_require__.r(actions_namespaceObject); __webpack_require__.d(actions_namespaceObject, { + "closeModal": function() { return closeModal; }, "disableComplementaryArea": function() { return disableComplementaryArea; }, "enableComplementaryArea": function() { return enableComplementaryArea; }, + "openModal": function() { return openModal; }, "pinItem": function() { return pinItem; }, "setDefaultComplementaryArea": function() { return setDefaultComplementaryArea; }, "setFeatureDefaults": function() { return setFeatureDefaults; }, @@ -1610,7 +1612,8 @@ __webpack_require__.d(selectors_namespaceObject, { "getActiveComplementaryArea": function() { return getActiveComplementaryArea; }, "isComplementaryAreaLoading": function() { return isComplementaryAreaLoading; }, "isFeatureActive": function() { return isFeatureActive; }, - "isItemPinned": function() { return isItemPinned; } + "isItemPinned": function() { return isItemPinned; }, + "isModalActive": function() { return isModalActive; } }); // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-site/build-module/store/actions.js @@ -1946,6 +1949,31 @@ function setFeatureDefaults(scope, defaults) { registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults); }; } +/** + * Returns an action object used in signalling that the user opened a modal. + * + * @param {string} name A string that uniquely identifies the modal. + * + * @return {Object} Action object. + */ + +function openModal(name) { + return { + type: 'OPEN_MODAL', + name + }; +} +/** + * Returns an action object signalling that the user closed a modal. + * + * @return {Object} Action object. + */ + +function closeModal() { + return { + type: 'CLOSE_MODAL' + }; +} ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js /** @@ -2018,6 +2046,18 @@ const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelect }); return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName); }); +/** + * Returns true if a modal is active, or false otherwise. + * + * @param {Object} state Global application state. + * @param {string} modalName A string that uniquely identifies the modal. + * + * @return {boolean} Whether the modal is active. + */ + +function isModalActive(state, modalName) { + return state.activeModal === modalName; +} ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js /** @@ -2056,8 +2096,29 @@ function complementaryAreas(state = {}, action) { return state; } +/** + * Reducer for storing the name of the open modal, or null if no modal is open. + * + * @param {Object} state Previous state. + * @param {Object} action Action object containing the `name` of the modal + * + * @return {Object} Updated state + */ + +function activeModal(state = null, action) { + switch (action.type) { + case 'OPEN_MODAL': + return action.name; + + case 'CLOSE_MODAL': + return null; + } + + return state; +} /* harmony default export */ var reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ - complementaryAreas + complementaryAreas, + activeModal })); ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js @@ -18763,6 +18824,7 @@ function DynamicShortcut({ + /** * Internal dependencies */ @@ -18770,6 +18832,7 @@ function DynamicShortcut({ +const KEYBOARD_SHORTCUT_HELP_MODAL_NAME = 'edit-site/keyboard-shortcut-help'; const ShortcutList = ({ shortcuts @@ -18819,10 +18882,17 @@ const ShortcutCategorySection = ({ }); }; -function KeyboardShortcutHelpModal({ - isModalActive, - toggleModal -}) { +function KeyboardShortcutHelpModal() { + const isModalActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(KEYBOARD_SHORTCUT_HELP_MODAL_NAME)); + const { + closeModal, + openModal + } = (0,external_wp_data_namespaceObject.useDispatch)(store); + + const toggleModal = () => isModalActive ? closeModal() : openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME); + + (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-site/keyboard-shortcuts', toggleModal); + if (!isModalActive) { return null; } @@ -18907,10 +18977,16 @@ function EnableFeature(props) { -function EditSitePreferencesModal({ - isModalActive, - toggleModal -}) { +const PREFERENCES_MODAL_NAME = 'edit-site/preferences'; +function EditSitePreferencesModal() { + const isModalActive = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).isModalActive(PREFERENCES_MODAL_NAME)); + const { + closeModal, + openModal + } = (0,external_wp_data_namespaceObject.useDispatch)(store); + + const toggleModal = () => isModalActive ? closeModal() : openModal(PREFERENCES_MODAL_NAME); + const registry = (0,external_wp_data_namespaceObject.useRegistry)(); const { closeGeneralSidebar, @@ -19232,8 +19308,6 @@ function ModeSwitcher() { - - /** * Internal dependencies */ @@ -19249,8 +19323,6 @@ function ModeSwitcher() { function MoreMenu({ showIconLabels }) { - const [isModalActive, toggleModal] = (0,external_wp_element_namespaceObject.useReducer)(isActive => !isActive, false); - const [isPreferencesModalActive, togglePreferencesModal] = (0,external_wp_element_namespaceObject.useReducer)(isActive => !isActive, false); const registry = (0,external_wp_data_namespaceObject.useRegistry)(); const isDistractionFree = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_preferences_namespaceObject.store).get('core/edit-site', 'distractionFree'), []); const { @@ -19258,6 +19330,9 @@ function MoreMenu({ setIsListViewOpened, closeGeneralSidebar } = (0,external_wp_data_namespaceObject.useDispatch)(store_store); + const { + openModal + } = (0,external_wp_data_namespaceObject.useDispatch)(store); const { set: setPreference } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store); @@ -19271,7 +19346,6 @@ function MoreMenu({ }); }; - (0,external_wp_keyboardShortcuts_namespaceObject.useShortcut)('core/edit-site/keyboard-shortcuts', toggleModal); return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(MoreMenuDropdown, { toggleProps: { showTooltip: !showIconLabels, @@ -19317,7 +19391,7 @@ function MoreMenu({ }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, { label: (0,external_wp_i18n_namespaceObject.__)('Tools') }, (0,external_wp_element_namespaceObject.createElement)(SiteExport, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, { - onClick: toggleModal, + onClick: () => openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME), shortcut: external_wp_keycodes_namespaceObject.displayShortcut.access('h') }, (0,external_wp_i18n_namespaceObject.__)('Keyboard shortcuts')), (0,external_wp_element_namespaceObject.createElement)(WelcomeGuideMenuItem, null), (0,external_wp_element_namespaceObject.createElement)(CopyContentMenuItem, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, { icon: library_external, @@ -19334,14 +19408,8 @@ function MoreMenu({ onClose } })), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuGroup, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, { - onClick: togglePreferencesModal - }, (0,external_wp_i18n_namespaceObject.__)('Preferences'))))), (0,external_wp_element_namespaceObject.createElement)(KeyboardShortcutHelpModal, { - isModalActive: isModalActive, - toggleModal: toggleModal - }), (0,external_wp_element_namespaceObject.createElement)(EditSitePreferencesModal, { - isModalActive: isPreferencesModalActive, - toggleModal: togglePreferencesModal - })); + onClick: () => openModal(PREFERENCES_MODAL_NAME) + }, (0,external_wp_i18n_namespaceObject.__)('Preferences'))))), (0,external_wp_element_namespaceObject.createElement)(KeyboardShortcutHelpModal, null), (0,external_wp_element_namespaceObject.createElement)(EditSitePreferencesModal, null)); } ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/undo.js @@ -21014,6 +21082,21 @@ const code = (0,external_wp_element_namespaceObject.createElement)(external_wp_p })); /* harmony default export */ var library_code = (code); +;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-close.js + + +/** + * WordPress dependencies + */ + +const keyboardClose = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "-2 -2 24 24" +}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { + d: "M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z" +})); +/* harmony default export */ var keyboard_close = (keyboardClose); + ;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/hooks/commands/use-edit-mode-commands.js /** * WordPress dependencies @@ -21034,6 +21117,8 @@ const code = (0,external_wp_element_namespaceObject.createElement)(external_wp_p + + const { useHistory: use_edit_mode_commands_useHistory } = unlock(external_wp_router_namespaceObject.privateApis); @@ -21169,6 +21254,9 @@ function useEditUICommands() { editorMode: select(store_store).getEditorMode(), activeSidebar: select(store).getActiveComplementaryArea(store_store.name) }), []); + const { + openModal + } = (0,external_wp_data_namespaceObject.useDispatch)(store); const { toggle } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store); @@ -21246,6 +21334,22 @@ function useEditUICommands() { close(); } }); + commands.push({ + name: 'core/open-preferences', + label: (0,external_wp_i18n_namespaceObject.__)('Open editor preferences'), + icon: library_cog, + callback: () => { + openModal(PREFERENCES_MODAL_NAME); + } + }); + commands.push({ + name: 'core/open-shortcut-help', + label: (0,external_wp_i18n_namespaceObject.__)('Open keyboard shortcuts'), + icon: keyboard_close, + callback: () => { + openModal(KEYBOARD_SHORTCUT_HELP_MODAL_NAME); + } + }); return { isLoading: false, commands @@ -21509,7 +21613,7 @@ function GridItem({ postId: item.type === USER_PATTERNS ? item.id : item.name, categoryId, categoryType: item.type, - canvas: 'edit' + canvas: 'view' }); const onKeyDown = event => { diff --git a/wp-includes/js/dist/edit-site.min.js b/wp-includes/js/dist/edit-site.min.js index 42357747ca..70f5a02842 100644 --- a/wp-includes/js/dist/edit-site.min.js +++ b/wp-includes/js/dist/edit-site.min.js @@ -9,11 +9,11 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t2096103.424&&p!==m))return navigator.msSaveBlob?navigator.msSaveBlob(E(c),_):f(c);l=(c=E(c)).type||s}else if(/([\x80-\xff])/.test(c)){for(var h=0,v=new Uint8Array(c.length),y=v.length;h({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),N=(e,t)=>({registry:n,dispatch:a})=>{if(!t)return;n.select(x.store).get(e,"isComplementaryAreaVisible")||n.dispatch(x.store).set(e,"isComplementaryAreaVisible",!0),a({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},P=e=>({registry:t})=>{t.select(x.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(x.store).set(e,"isComplementaryAreaVisible",!1)},M=(e,t)=>({registry:n})=>{if(!t)return;const a=n.select(x.store).get(e,"pinnedItems");!0!==a?.[t]&&n.dispatch(x.store).set(e,"pinnedItems",{...a,[t]:!0})},I=(e,t)=>({registry:n})=>{if(!t)return;const a=n.select(x.store).get(e,"pinnedItems");n.dispatch(x.store).set(e,"pinnedItems",{...a,[t]:!1})};function B(e,t){return function({registry:n}){p()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(x.store).toggle(e,t)}}function R(e,t,n){return function({registry:a}){p()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),a.dispatch(x.store).set(e,t,!!n)}}function D(e,t){return function({registry:n}){p()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(x.store).setDefaults(e,t)}}const A=(0,d.createRegistrySelector)((e=>(t,n)=>{const a=e(x.store).get(n,"isComplementaryAreaVisible");if(void 0!==a)return!1===a?null:t?.complementaryAreas?.[n]})),L=(0,d.createRegistrySelector)((e=>(t,n)=>{const a=e(x.store).get(n,"isComplementaryAreaVisible"),r=t?.complementaryAreas?.[n];return a&&void 0===r})),V=(0,d.createRegistrySelector)((e=>(t,n,a)=>{var r;return null===(r=e(x.store).get(n,"pinnedItems")?.[a])||void 0===r||r})),F=(0,d.createRegistrySelector)((e=>(t,n,a)=>(p()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(x.store).get(n,a))));var z=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:a}=t;return e[n]?e:{...e,[n]:a}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:a}=t;return{...e,[n]:a}}}return e}});const O=(0,d.createReduxStore)("core/interface",{reducer:z,actions:e,selectors:t});(0,d.register)(O);var H=window.wp.plugins,G=(0,H.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var U=G((function({as:e=y.Button,scope:t,identifier:n,icon:a,selectedIcon:r,name:o,...i}){const s=e,c=(0,d.useSelect)((e=>e(O).getActiveComplementaryArea(t)===n),[n]),{enableComplementaryArea:u,disableComplementaryArea:m}=(0,d.useDispatch)(O);return(0,l.createElement)(s,{icon:r&&c?r:a,onClick:()=>{c?m(t):u(t,n)},...i})}));var $=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:a})=>{const r=(0,l.createElement)(U,{icon:C,...a});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),r),(0,l.createElement)("div",{className:v()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,r))};const j=()=>{};function W({name:e,as:t=y.Button,onClick:n,...a}){return(0,l.createElement)(y.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||j)(...t),(e||j)(...t)}:void 0,...a})))}W.Slot=function({name:e,as:t=y.ButtonGroup,fillProps:n={},bubblesVirtually:a,...r}){return(0,l.createElement)(y.Slot,{name:e,bubblesVirtually:a,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const a=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...r},a)}))};var Z=W;const q=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(y.MenuItem,{...n});function Y({scope:e,target:t,__unstableExplicitMenuItem:n,...a}){return(0,l.createElement)(U,{as:a=>(0,l.createElement)(Z,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:q,name:`${e}/plugin-more-menu`,...a}),role:"menuitemcheckbox",selectedIcon:b,name:t,scope:e,...a})}function K({scope:e,...t}){return(0,l.createElement)(y.Fill,{name:`PinnedItems/${e}`,...t})}K.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(y.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:v()(t,"interface-pinned-items")},e)))};var X=K;function Q({scope:e,children:t,className:n}){return(0,l.createElement)(y.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{className:n},t))}const J=G((function({children:e,className:t,closeLabel:n=(0,E.__)("Close plugin"),identifier:a,header:r,headerClassName:o,icon:i,isPinnable:s=!0,panelClassName:c,scope:u,name:m,smallScreenTitle:p,title:_,toggleShortcut:g,isActiveByDefault:h,showIconLabels:f=!1}){const{isLoading:C,isActive:x,isPinned:T,activeArea:N,isSmall:P,isLarge:M}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:r}=e(O),o=t(u);return{isLoading:n(u),isActive:o===a,isPinned:r(u,a),activeArea:o,isSmall:e(k.store).isViewportMatch("< medium"),isLarge:e(k.store).isViewportMatch("large")}}),[a,u]);!function(e,t,n,a,r){const o=(0,l.useRef)(!1),i=(0,l.useRef)(!1),{enableComplementaryArea:s,disableComplementaryArea:c}=(0,d.useDispatch)(O);(0,l.useEffect)((()=>{a&&r&&!o.current?(c(e),i.current=!0):i.current&&!r&&o.current?(i.current=!1,s(e,t)):i.current&&n&&n!==t&&(i.current=!1),r!==o.current&&(o.current=r)}),[a,r,e,t,n])}(u,a,N,x,P);const{enableComplementaryArea:I,disableComplementaryArea:B,pinItem:R,unpinItem:D}=(0,d.useDispatch)(O);return(0,l.useEffect)((()=>{h&&void 0===N&&!P?I(u,a):void 0===N&&P&&B(u,a)}),[N,h,u,a,P]),(0,l.createElement)(l.Fragment,null,s&&(0,l.createElement)(X,{scope:u},T&&(0,l.createElement)(U,{scope:u,identifier:a,isPressed:x&&(!f||M),"aria-expanded":x,"aria-disabled":C,label:_,icon:f?b:i,showTooltip:!f,variant:f?"tertiary":void 0})),m&&s&&(0,l.createElement)(Y,{target:m,scope:u,icon:i},_),x&&(0,l.createElement)(Q,{className:v()("interface-complementary-area",t),scope:u},(0,l.createElement)($,{className:o,closeLabel:n,onClose:()=>B(u),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:g,scope:u,identifier:a}},r||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,_),s&&(0,l.createElement)(y.Button,{className:"interface-complementary-area__pin-unpin-item",icon:T?w:S,label:T?(0,E.__)("Unpin from toolbar"):(0,E.__)("Pin to toolbar"),onClick:()=>(T?D:R)(u,a),isPressed:T,"aria-expanded":T}))),(0,l.createElement)(y.Panel,{className:c},e)))}));J.Slot=function({scope:e,...t}){return(0,l.createElement)(y.Slot,{name:`ComplementaryArea/${e}`,...t})};var ee=J,te=window.wp.compose;function ne({children:e,className:t,ariaLabel:n,as:a="div",...r}){return(0,l.createElement)(a,{className:v()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r},e)}const ae={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var re=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:a,sidebar:r,secondarySidebar:o,notices:i,content:s,actions:c,labels:u,className:d,enableRegionNavigation:m=!0,shortcuts:p},_){const g=(0,y.__unstableUseNavigateRegions)(p);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const h={...{header:(0,E.__)("Header"),body:(0,E.__)("Content"),secondarySidebar:(0,E.__)("Block Library"),sidebar:(0,E.__)("Settings"),actions:(0,E.__)("Publish"),footer:(0,E.__)("Footer")},...u};return(0,l.createElement)("div",{...m?g:{},ref:(0,te.useMergeRefs)([_,m?g.ref:void 0]),className:v()(d,"interface-interface-skeleton",g.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(ne,{as:y.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":h.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:ae,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},a),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!o&&(0,l.createElement)(ne,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:h.secondarySidebar},o),!!i&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},i),(0,l.createElement)(ne,{className:"interface-interface-skeleton__content",ariaLabel:h.body},s),!!r&&(0,l.createElement)(ne,{className:"interface-interface-skeleton__sidebar",ariaLabel:h.sidebar},r),!!c&&(0,l.createElement)(ne,{className:"interface-interface-skeleton__actions",ariaLabel:h.actions},c))),!!t&&(0,l.createElement)(ne,{className:"interface-interface-skeleton__footer",ariaLabel:h.footer},t))}));var oe=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function ie({as:e=y.DropdownMenu,className:t,label:n=(0,E.__)("Options"),popoverProps:a,toggleProps:r,children:o}){return(0,l.createElement)(e,{className:v()("interface-more-menu-dropdown",t),icon:oe,label:n,popoverProps:{placement:"bottom-end",...a,className:v()("interface-more-menu-dropdown__content",a?.className)},toggleProps:{tooltipPosition:"bottom",...r}},(e=>o(e)))}function se({closeModal:e,children:t}){return(0,l.createElement)(y.Modal,{className:"interface-preferences-modal",title:(0,E.__)("Preferences"),onRequestClose:e},t)}var le=function({icon:e,size:t=24,...n}){return(0,l.cloneElement)(e,{width:t,height:t,...n})};var ce=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var ue=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const de="preferences-menu";function me({sections:e}){const t=(0,te.useViewportMatch)("medium"),[n,a]=(0,l.useState)(de),{tabs:r,sectionsContentMap:o}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:a})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=a,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),i=(0,l.useCallback)((e=>o[e.name]||null),[o]);let s;return s=t?(0,l.createElement)(y.TabPanel,{className:"interface-preferences__tabs",tabs:r,initialTabName:n!==de?n:void 0,onSelect:a,orientation:"vertical"},i):(0,l.createElement)(y.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(y.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(y.CardBody,null,(0,l.createElement)(y.__experimentalItemGroup,null,r.map((e=>(0,l.createElement)(y.__experimentalNavigatorButton,{key:e.name,path:e.name,as:y.__experimentalItem,isAction:!0},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(y.__experimentalTruncate,null,e.title)),(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(le,{icon:(0,E.isRTL)()?ce:ue})))))))))),e.length&&e.map((e=>(0,l.createElement)(y.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(y.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(y.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(y.__experimentalNavigatorBackButton,{icon:(0,E.isRTL)()?ue:ce,"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(y.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(y.CardBody,null,e.content)))))),s}var pe=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var _e=function({help:e,label:t,isChecked:n,onChange:a,children:r}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(y.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:a}),r)},ge=window.wp.widgets,he=window.wp.hooks,ve=window.wp.mediaUtils;(0,he.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",(()=>ve.MediaUpload));var ye=window.lodash,Ee=window.wp.blockEditor,fe=window.wp.notices,be={grad:.9,turn:360,rad:360/(2*Math.PI)},we=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Se=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},ke=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Ce=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},xe=function(e){return{r:ke(e.r,0,255),g:ke(e.g,0,255),b:ke(e.b,0,255),a:ke(e.a)}},Te=function(e){return{r:Se(e.r),g:Se(e.g),b:Se(e.b),a:Se(e.a,3)}},Ne=/^#([0-9a-f]{3,8})$/i,Pe=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Me=function(e){var t=e.r,n=e.g,a=e.b,r=e.a,o=Math.max(t,n,a),i=o-Math.min(t,n,a),s=i?o===t?(n-a)/i:o===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:o?i/o*100:0,v:o/255*100,a:r}},Ie=function(e){var t=e.h,n=e.s,a=e.v,r=e.a;t=t/360*6,n/=100,a/=100;var o=Math.floor(t),i=a*(1-n),s=a*(1-(t-o)*n),l=a*(1-(1-t+o)*n),c=o%6;return{r:255*[a,s,i,i,l,a][c],g:255*[l,a,a,s,i,i][c],b:255*[i,i,l,a,a,s][c],a:r}},Be=function(e){return{h:Ce(e.h),s:ke(e.s,0,100),l:ke(e.l,0,100),a:ke(e.a)}},Re=function(e){return{h:Se(e.h),s:Se(e.s),l:Se(e.l),a:Se(e.a,3)}},De=function(e){return Ie((n=(t=e).s,{h:t.h,s:(n*=((a=t.l)<50?a:100-a)/100)>0?2*n/(a+n)*100:0,v:a+n,a:t.a}));var t,n,a},Ae=function(e){return{h:(t=Me(e)).h,s:(r=(200-(n=t.s))*(a=t.v)/100)>0&&r<200?n*a/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,a,r},Le=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ve=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Fe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ze=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Oe={string:[[function(e){var t=Ne.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Se(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Se(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Fe.exec(e)||ze.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:xe({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Le.exec(e)||Ve.exec(e);if(!t)return null;var n,a,r=Be({h:(n=t[1],a=t[2],void 0===a&&(a="deg"),Number(n)*(be[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return De(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,a=e.b,r=e.a,o=void 0===r?1:r;return we(t)&&we(n)&&we(a)?xe({r:Number(t),g:Number(n),b:Number(a),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,a=e.l,r=e.a,o=void 0===r?1:r;if(!we(t)||!we(n)||!we(a))return null;var i=Be({h:Number(t),s:Number(n),l:Number(a),a:Number(o)});return De(i)},"hsl"],[function(e){var t=e.h,n=e.s,a=e.v,r=e.a,o=void 0===r?1:r;if(!we(t)||!we(n)||!we(a))return null;var i=function(e){return{h:Ce(e.h),s:ke(e.s,0,100),v:ke(e.v,0,100),a:ke(e.a)}}({h:Number(t),s:Number(n),v:Number(a),a:Number(o)});return Ie(i)},"hsv"]]},He=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=(e=Te(this.rgba)).r,n=e.g,a=e.b,o=(r=e.a)<1?Pe(Se(255*r)):"","#"+Pe(t)+Pe(n)+Pe(a)+o;var e,t,n,a,r,o},e.prototype.toRgb=function(){return Te(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Te(this.rgba)).r,n=e.g,a=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+a+", "+r+")":"rgb("+t+", "+n+", "+a+")";var e,t,n,a,r},e.prototype.toHsl=function(){return Re(Ae(this.rgba))},e.prototype.toHslString=function(){return t=(e=Re(Ae(this.rgba))).h,n=e.s,a=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+a+"%, "+r+")":"hsl("+t+", "+n+"%, "+a+"%)";var e,t,n,a,r},e.prototype.toHsv=function(){return e=Me(this.rgba),{h:Se(e.h),s:Se(e.s),v:Se(e.v),a:Se(e.a,3)};var e},e.prototype.invert=function(){return Ze({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ze(Ue(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ze(Ue(this.rgba,-e))},e.prototype.grayscale=function(){return Ze(Ue(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ze(je(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ze(je(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ze({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Se(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Ae(this.rgba);return"number"==typeof e?Ze({h:e,s:t.s,l:t.l,a:t.a}):Se(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ze(e).toHex()},e}(),Ze=function(e){return e instanceof We?e:new We(e)},qe=[],Ye=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Ke=function(e){return.2126*Ye(e.r)+.7152*Ye(e.g)+.0722*Ye(e.b)};var Xe=window.wp.privateApis;const{lock:Qe,unlock:Je}=(0,Xe.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-site"),{useGlobalSetting:et}=Je(Ee.privateApis);!function(e){e.forEach((function(e){qe.indexOf(e)<0&&(e(We,Oe),qe.push(e))}))}([function(e){e.prototype.luminance=function(){return e=Ke(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,a,r,o,i,s,l,c=t instanceof e?t:new e(t);return o=this.rgba,i=c.toRgb(),n=(s=Ke(o))>(l=Ke(i))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(a=2)&&(a=0),void 0===r&&(r=Math.pow(10,a)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(o=(n=t).size)?"normal":o,"AAA"===(r=void 0===(a=n.level)?"AA":a)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,a,r,o,i}}]);const{GlobalStylesContext:tt,useBlockEditingMode:nt}=Je(Ee.privateApis),at={"color.background":"color","color.text":"color","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.caption.color.text":"color","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient","typography.fontSize":"font-size","typography.fontFamily":"font-family"},rt={"color.background":"backgroundColor","color.text":"textColor","color.gradient":"gradient","typography.fontSize":"fontSize","typography.fontFamily":"fontFamily"};function ot(e,t){const n=function(e,t){const{supportedPanels:n}=(0,d.useSelect)((n=>({supportedPanels:Je(n(c.store)).getSupportedStyles(e,t)})),[e,t]);return n}(e);return(0,l.useMemo)((()=>n.flatMap((e=>{if(!c.__EXPERIMENTAL_STYLE_PROPERTY[e])return[];const{value:n}=c.__EXPERIMENTAL_STYLE_PROPERTY[e],a=n.join("."),r=t[rt[a]],o=r?`var:preset|${at[a]}|${r}`:(0,ye.get)(t.style,n);return o?[{path:n,value:o}]:[]}))),[n,e,t])}function it(e){return e?JSON.parse(JSON.stringify(e)):{}}function st({name:e,attributes:t,setAttributes:n}){const a=ot(e,t),{user:r,setUserConfig:o}=(0,l.useContext)(tt),{__unstableMarkNextChangeAsNotPersistent:i}=(0,d.useDispatch)(Ee.store),{createSuccessNotice:s}=(0,d.useDispatch)(fe.store),u=(0,l.useCallback)((()=>{if(0===a.length)return;const{style:l}=t,u=it(l),d=it(r);for(const{path:t,value:n}of a)(0,ye.set)(u,t,void 0),(0,ye.set)(d,["styles","blocks",e,...t],n);i(),n({style:u}),o((()=>d),{undoIgnore:!0}),s((0,E.sprintf)((0,E.__)("%s styles applied."),(0,c.getBlockType)(e).title),{type:"snackbar",actions:[{label:(0,E.__)("Undo"),onClick(){i(),n({style:l}),o((()=>r),{undoIgnore:!0})}}]})}),[a,t,r,e]);return(0,l.createElement)(y.BaseControl,{className:"edit-site-push-changes-to-global-styles-control",help:(0,E.sprintf)((0,E.__)("Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks."),(0,c.getBlockType)(e).title)},(0,l.createElement)(y.BaseControl.VisualLabel,null,(0,E.__)("Styles")),(0,l.createElement)(y.Button,{variant:"primary",disabled:0===a.length,onClick:u},(0,E.__)("Apply globally")))}const lt=(0,te.createHigherOrderComponent)((e=>t=>{const n=nt();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),"default"===n&&(0,l.createElement)(Ee.InspectorAdvancedControls,null,(0,l.createElement)(st,{...t})))}));(0,he.addFilter)("editor.BlockEdit","core/edit-site/push-changes-to-global-styles",lt);var ct=window.wp.router,ut=window.wp.url;function dt(){return void 0!==(0,ut.getQueryArg)(window.location.href,"wp_theme_preview")}function mt(){return dt()?(0,ut.getQueryArg)(window.location.href,"wp_theme_preview"):null}const{useHistory:pt}=Je(ct.privateApis);function _t(e={},t,n=!1){const a=pt();const r=(0,ut.getQueryArgs)(window.location.href),o=(0,ut.removeQueryArgs)(window.location.href,...Object.keys(r));dt()&&(e={...e,wp_theme_preview:mt()});return{href:(0,ut.addQueryArgs)(o,e),onClick:function(r){r.preventDefault(),n?a.replace(e,t):a.push(e,t)}}}function gt({params:e={},state:t,replace:n=!1,children:a,...r}){const{href:o,onClick:i}=_t(e,t,n);return(0,l.createElement)("a",{href:o,onClick:i,...r},a)}const{useLocation:ht}=Je(ct.privateApis);function vt({attributes:e}){const{theme:t,slug:n}=e,{params:a}=ht(),r=(0,d.useSelect)((e=>e(_.store).getEntityRecord("postType","wp_template_part",`${t}//${n}`)),[t,n]),o=_t({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:a.postId});return r?(0,l.createElement)(Ee.BlockControls,{group:"other"},(0,l.createElement)(y.ToolbarButton,{...o,onClick:e=>{o.onClick(e)}},(0,E.__)("Edit"))):null}const yt=(0,te.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:a}=t,r="core/template-part"===a&&n.slug;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(vt,{attributes:n}))}),"withEditBlockControls");(0,he.addFilter)("editor.BlockEdit","core/edit-site/template-part-edit-button",yt);const{useLocation:Et}=Je(ct.privateApis),{useBlockEditingMode:ft}=Je(Ee.privateApis);function bt({attributes:e}){const{ref:t}=e,{params:n}=Et(),a=ft(),r=(0,d.useSelect)((e=>e(_.store).getEntityRecord("postType","wp_navigation",t)),[t]),o=_t({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:n.postId});return r&&"default"===a?(0,l.createElement)(Ee.BlockControls,{group:"other"},(0,l.createElement)(y.ToolbarButton,{...o,onClick:e=>{o.onClick(e)}},(0,E.__)("Edit"))):null}const wt=(0,te.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:a}=t,r="core/navigation"===a&&n.ref;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(bt,{attributes:n}))}),"withEditBlockControls");(0,he.addFilter)("editor.BlockEdit","core/edit-site/navigation-edit-button",wt);var St=(0,d.combineReducers)({deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},settings:function(e={},t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},editedPost:function(e={},t){switch(t.type){case"SET_EDITED_POST":return{postType:t.postType,id:t.id,context:t.context};case"SET_EDITED_POST_CONTEXT":return{...e,context:t.context}}return e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value;case"SET_CANVAS_MODE":return!1}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},saveViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_SAVE_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},canvasMode:function(e="init",t){return"SET_CANVAS_MODE"===t.type?t.mode:e},editorCanvasContainerView:function(e,t){return"SET_EDITOR_CANVAS_CONTAINER_VIEW"===t.type?t.view:e},hasPageContentFocus:function(e=!1,t){switch(t.type){case"SET_EDITED_POST":return!!t.context?.postId;case"SET_HAS_PAGE_CONTENT_FOCUS":return t.hasPageContentFocus}return e}}),kt=window.wp.apiFetch,Ct=n.n(kt),xt=window.wp.a11y,Tt=window.wp.htmlEntities;const Nt="core/edit-site";function Pt(e){return!!e&&("custom"===e?.source&&e?.has_theme_file)}function Mt(e){return function({registry:t}){p()("select( 'core/edit-site' ).toggleFeature( featureName )",{since:"6.0",alternative:"select( 'core/preferences').toggle( 'core/edit-site', featureName )"}),t.dispatch(x.store).toggle("core/edit-site",e)}}function It(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}const Bt=(e,t)=>async({dispatch:n,registry:a})=>{if(!t)try{const n=await a.resolveSelect(_.store).getEntityRecord("postType","wp_template",e);t=n?.slug}catch(e){}n({type:"SET_EDITED_POST",postType:"wp_template",id:e,context:{templateSlug:t}})},Rt=e=>async({dispatch:t,registry:n})=>{const a=await n.dispatch(_.store).saveEntityRecord("postType","wp_template",e);e.content&&n.dispatch(_.store).editEntityRecord("postType","wp_template",a.id,{blocks:(0,c.parse)(e.content)},{undoIgnore:!0}),t({type:"SET_EDITED_POST",postType:"wp_template",id:a.id,context:{templateSlug:a.slug}})},Dt=e=>async({registry:t})=>{try{await t.dispatch(_.store).deleteEntityRecord("postType",e.type,e.id,{force:!0});const n=t.select(_.store).getLastEntityDeleteError("postType",e.type,e.id);if(n)throw n;t.dispatch(fe.store).createSuccessNotice((0,E.sprintf)((0,E.__)('"%s" deleted.'),(0,Tt.decodeEntities)(e.title.rendered)),{type:"snackbar",id:"site-editor-template-deleted-success"})}catch(e){const n=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the template.");t.dispatch(fe.store).createErrorNotice(n,{type:"snackbar"})}};function At(e){return{type:"SET_EDITED_POST",postType:"wp_template_part",id:e}}function Lt(e){return{type:"SET_EDITED_POST",postType:"wp_navigation",id:e}}function Vt(e,t){return{type:"SET_EDITED_POST",postType:e,id:t}}function Ft(){return p()("dispatch( 'core/edit-site' ).setHomeTemplateId",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function zt(e){return{type:"SET_EDITED_POST_CONTEXT",context:e}}const Ot=e=>async({dispatch:t,registry:n})=>{if(!e.path&&e.context?.postId){const t=await n.resolveSelect(_.store).getEntityRecord("postType",e.context.postType||"post",e.context.postId);e.path=(0,ut.getPathAndQueryString)(t?.link)}const a=await n.resolveSelect(_.store).__experimentalGetTemplateForLink(e.path);if(a)return t({type:"SET_EDITED_POST",postType:"wp_template",id:a.id,context:{...e.context,templateSlug:a.slug}}),a.id};function Ht(){return p()("dispatch( 'core/edit-site' ).setNavigationPanelActiveMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Gt(){return p()("dispatch( 'core/edit-site' ).openNavigationPanelToMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Ut(){return p()("dispatch( 'core/edit-site' ).setIsNavigationPanelOpened",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function $t(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function jt(e){return{type:"UPDATE_SETTINGS",settings:e}}function Wt(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function Zt(e){return{type:"SET_IS_SAVE_VIEW_OPENED",isOpen:e}}const qt=(e,{allowUndo:t=!0}={})=>async({registry:n})=>{const a="edit-site-template-reverted";if(n.dispatch(fe.store).removeNotice(a),Pt(e))try{const r=n.select(_.store).getEntityConfig("postType",e.type);if(!r)return void n.dispatch(fe.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const o=(0,ut.addQueryArgs)(`${r.baseURL}/${e.id}`,{context:"edit",source:"theme"}),i=await Ct()({path:o});if(!i)return void n.dispatch(fe.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const s=({blocks:e=[]})=>(0,c.__unstableSerializeAndClean)(e),l=n.select(_.store).getEditedEntityRecord("postType",e.type,e.id);n.dispatch(_.store).editEntityRecord("postType",e.type,e.id,{content:s,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const u=(0,c.parse)(i?.content?.raw);if(n.dispatch(_.store).editEntityRecord("postType",e.type,i.id,{content:s,blocks:u,source:"theme"}),t){const t=()=>{n.dispatch(_.store).editEntityRecord("postType",e.type,l.id,{content:s,blocks:l.blocks,source:"custom"})};n.dispatch(fe.store).createSuccessNotice((0,E.__)("Template reverted."),{type:"snackbar",id:a,actions:[{label:(0,E.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("Template revert failed. Please reload.");n.dispatch(fe.store).createErrorNotice(t,{type:"snackbar"})}else n.dispatch(fe.store).createErrorNotice((0,E.__)("This template is not revertable."),{type:"snackbar"})},Yt=e=>({registry:t})=>{t.dispatch(O).enableComplementaryArea(Nt,e)},Kt=()=>({registry:e})=>{e.dispatch(O).disableComplementaryArea(Nt)},Xt=e=>({registry:t})=>{t.dispatch("core/preferences").set("core/edit-site","editorMode",e),"visual"!==e&&t.dispatch(Ee.store).clearSelectedBlock(),"visual"===e?(0,xt.speak)((0,E.__)("Visual editor selected"),"assertive"):"text"===e&&(0,xt.speak)((0,E.__)("Code editor selected"),"assertive")},Qt=e=>({dispatch:t,registry:n})=>{e&&n.dispatch(Ee.store).clearSelectedBlock(),t({type:"SET_HAS_PAGE_CONTENT_FOCUS",hasPageContentFocus:e})},Jt=e=>({registry:t,dispatch:n})=>{t.dispatch(Ee.store).__unstableSetEditorMode("edit"),n({type:"SET_CANVAS_MODE",mode:e}),"edit"===e&&t.select(x.store).get("core/edit-site","showListViewByDefault")&&n.setIsListViewOpened(!0)},en=e=>({dispatch:t})=>{t({type:"SET_EDITOR_CANVAS_CONTAINER_VIEW",view:e})};var tn={};function nn(e){return[e]}function an(e,t,n){var a;if(e.length!==t.length)return!1;for(a=n;a({...e,[t.id]:t})),{}):{},a=[],r=[...e];for(;r.length;){const{innerBlocks:e,...t}=r.shift();if(r.unshift(...e),(0,c.isTemplatePart)(t)){const{attributes:{theme:e,slug:r}}=t,o=n[`${e}//${r}`];o&&a.push({templatePart:o,block:t})}}return a})),sn=(0,d.createRegistrySelector)((e=>(t,n)=>e(x.store).get("core/edit-site",n)));function ln(e,t){return p()("select( 'core/edit-site' ).isFeatureActive",{since:"6.0",alternative:"select( 'core/preferences' ).get"}),!!sn(e,t)}function cn(e){return e.deviceType}const un=(0,d.createRegistrySelector)((e=>()=>e(_.store).canUser("create","media"))),dn=(0,d.createRegistrySelector)((e=>()=>"web"===l.Platform.OS?e(_.store).getEntityRecords("postType","wp_block",{per_page:-1}):[])),mn=function(e,t){var n,a=t||nn;function r(e){var t,a,r,o,i,s=n,l=!0;for(t=0;t{const n={...e.settings,outlineMode:!0,focusMode:!!sn(e,"focusMode"),isDistractionFree:!!sn(e,"distractionFree"),hasFixedToolbar:!!sn(e,"fixedToolbar"),keepCaretInsideBlock:!!sn(e,"keepCaretInsideBlock"),showIconLabels:!!sn(e,"showIconLabels"),__experimentalSetIsInserterOpened:t,__experimentalReusableBlocks:dn(e),__experimentalPreferPatternsOnRoot:"wp_template"===_n(e)};return un(e)?(n.mediaUpload=({onError:t,...n})=>{(0,ve.uploadMedia)({wpAllowedMimeTypes:e.settings.allowedMimeTypes,onError:({message:e})=>t(e),...n})},n):n}),(e=>[un(e),e.settings,sn(e,"focusMode"),sn(e,"distractionFree"),sn(e,"fixedToolbar"),sn(e,"keepCaretInsideBlock"),sn(e,"showIconLabels"),dn(e),_n(e)]));function pn(){p()("select( 'core/edit-site' ).getHomeTemplateId",{since:"6.2",version:"6.4"})}function _n(e){return e.editedPost.postType}function gn(e){return e.editedPost.id}function hn(e){return e.editedPost.context}function vn(e){return{context:e.editedPost.context}}function yn(e){return!!e.blockInserterPanel}const En=(0,d.createRegistrySelector)((e=>t=>{if("object"==typeof t.blockInserterPanel){const{rootClientId:e,insertionIndex:n,filterValue:a}=t.blockInserterPanel;return{rootClientId:e,insertionIndex:n,filterValue:a}}if(Nn(t)){const[t]=e(Ee.store).__experimentalGetGlobalBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return{rootClientId:void 0,insertionIndex:void 0,filterValue:void 0}}));function fn(e){return e.listViewPanel}function bn(e){return e.saveViewPanel}const wn=(0,d.createRegistrySelector)((e=>t=>{const n=_n(t),a=gn(t),r=e(_.store).getEditedEntityRecord("postType",n,a),o=e(_.store).getEntityRecords("postType","wp_template_part",{per_page:-1});return on(r.blocks,o)}));function Sn(e){return sn(e,"editorMode")}function kn(){p()("dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu",{since:"6.2",version:"6.4"})}function Cn(){p()("dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu",{since:"6.2",version:"6.4"})}function xn(){p()("dispatch( 'core/edit-site' ).isNavigationOpened",{since:"6.2",version:"6.4"})}function Tn(e){return!!e.editedPost.context?.postId}function Nn(e){return!!Tn(e)&&e.hasPageContentFocus}function Pn(e){return e.canvasMode}function Mn(e){return e.editorCanvasContainerView}const In={reducer:St,actions:r,selectors:i},Bn=(0,d.createReduxStore)(Nt,In);(0,d.register)(Bn),Je(Bn).registerPrivateSelectors(s),Je(Bn).registerPrivateActions(o);var Rn=window.wp.keyboardShortcuts,Dn=window.wp.commands,An=window.wp.coreCommands;var Ln=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"}));var Vn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));var Fn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var zn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var On=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function Hn(e){return(0,l.createElement)(y.Button,{...e,className:v()("edit-site-sidebar-button",e.className)})}function Gn({isRoot:e,title:t,actions:n,meta:a,content:r,footer:o,description:i,backPath:s}){const{dashboardLink:c}=(0,d.useSelect)((e=>{const{getSettings:t}=Je(e(Bn));return{dashboardLink:t().__experimentalDashboardLink}}),[]),{getTheme:u}=(0,d.useSelect)(_.store),{goTo:m}=(0,y.__experimentalUseNavigator)(),p=u(mt()),g=(0,E.isRTL)()?ue:ce;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen__main",spacing:0,justify:"flex-start"},(0,l.createElement)(y.__experimentalHStack,{spacing:4,alignment:"flex-start",className:"edit-site-sidebar-navigation-screen__title-icon"},!e&&!s&&(0,l.createElement)(y.__experimentalNavigatorToParentButton,{as:Hn,icon:(0,E.isRTL)()?ue:ce,label:(0,E.__)("Back"),showTooltip:!1}),!e&&s&&(0,l.createElement)(Hn,{onClick:()=>m(s,{isBack:!0}),icon:g,label:(0,E.__)("Back"),showTooltip:!1}),e&&(0,l.createElement)(Hn,{icon:g,label:dt()?(0,E.__)("Go back to the theme showcase"):(0,E.__)("Go back to the Dashboard"),href:dt()?"themes.php":c||"index.php"}),(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen__title",color:"#e0e0e0",level:1,size:20},dt()?(0,E.sprintf)("Previewing %1$s: %2$s",p?.name?.rendered,t):t),n&&(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__actions"},n)),a&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__meta"},a)),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__content"},i&&(0,l.createElement)("p",{className:"edit-site-sidebar-navigation-screen__description"},i),r)),o&&(0,l.createElement)("footer",{className:"edit-site-sidebar-navigation-screen__footer"},o))}var Un=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var $n=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function jn({className:e,icon:t,withChevron:n=!1,suffix:a,children:r,...o}){return(0,l.createElement)(y.__experimentalItem,{className:v()("edit-site-sidebar-navigation-item",{"with-suffix":!n&&a},e),...o},(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start"},t&&(0,l.createElement)(le,{style:{fill:"currentcolor"},icon:t,size:24}),(0,l.createElement)(y.FlexBlock,null,r),n&&(0,l.createElement)(le,{icon:(0,E.isRTL)()?Un:$n,className:"edit-site-sidebar-navigation-item__drilldown-indicator",size:24}),!n&&a))}var Wn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));var Zn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"}));var qn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),Yn=qn,Kn=window.wp.date,Xn=window.wp.keycodes,Qn=n(1919),Jn=n.n(Qn); +*/!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t2096103.424&&p!==m))return navigator.msSaveBlob?navigator.msSaveBlob(E(c),_):f(c);l=(c=E(c)).type||s}else if(/([\x80-\xff])/.test(c)){for(var h=0,v=new Uint8Array(c.length),y=v.length;h({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),N=(e,t)=>({registry:n,dispatch:a})=>{if(!t)return;n.select(x.store).get(e,"isComplementaryAreaVisible")||n.dispatch(x.store).set(e,"isComplementaryAreaVisible",!0),a({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},M=e=>({registry:t})=>{t.select(x.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(x.store).set(e,"isComplementaryAreaVisible",!1)},P=(e,t)=>({registry:n})=>{if(!t)return;const a=n.select(x.store).get(e,"pinnedItems");!0!==a?.[t]&&n.dispatch(x.store).set(e,"pinnedItems",{...a,[t]:!0})},I=(e,t)=>({registry:n})=>{if(!t)return;const a=n.select(x.store).get(e,"pinnedItems");n.dispatch(x.store).set(e,"pinnedItems",{...a,[t]:!1})};function B(e,t){return function({registry:n}){p()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(x.store).toggle(e,t)}}function R(e,t,n){return function({registry:a}){p()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),a.dispatch(x.store).set(e,t,!!n)}}function L(e,t){return function({registry:n}){p()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(x.store).setDefaults(e,t)}}function D(e){return{type:"OPEN_MODAL",name:e}}function A(){return{type:"CLOSE_MODAL"}}const V=(0,d.createRegistrySelector)((e=>(t,n)=>{const a=e(x.store).get(n,"isComplementaryAreaVisible");if(void 0!==a)return!1===a?null:t?.complementaryAreas?.[n]})),F=(0,d.createRegistrySelector)((e=>(t,n)=>{const a=e(x.store).get(n,"isComplementaryAreaVisible"),r=t?.complementaryAreas?.[n];return a&&void 0===r})),z=(0,d.createRegistrySelector)((e=>(t,n,a)=>{var r;return null===(r=e(x.store).get(n,"pinnedItems")?.[a])||void 0===r||r})),O=(0,d.createRegistrySelector)((e=>(t,n,a)=>(p()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(x.store).get(n,a))));function H(e,t){return e.activeModal===t}var G=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:a}=t;return e[n]?e:{...e,[n]:a}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:a}=t;return{...e,[n]:a}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const U=(0,d.createReduxStore)("core/interface",{reducer:G,actions:e,selectors:t});(0,d.register)(U);var $=window.wp.plugins,j=(0,$.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var W=j((function({as:e=y.Button,scope:t,identifier:n,icon:a,selectedIcon:r,name:o,...i}){const s=e,c=(0,d.useSelect)((e=>e(U).getActiveComplementaryArea(t)===n),[n]),{enableComplementaryArea:u,disableComplementaryArea:m}=(0,d.useDispatch)(U);return(0,l.createElement)(s,{icon:r&&c?r:a,onClick:()=>{c?m(t):u(t,n)},...i})}));var Z=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:a})=>{const r=(0,l.createElement)(W,{icon:C,...a});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),r),(0,l.createElement)("div",{className:v()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,r))};const q=()=>{};function Y({name:e,as:t=y.Button,onClick:n,...a}){return(0,l.createElement)(y.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||q)(...t),(e||q)(...t)}:void 0,...a})))}Y.Slot=function({name:e,as:t=y.ButtonGroup,fillProps:n={},bubblesVirtually:a,...r}){return(0,l.createElement)(y.Slot,{name:e,bubblesVirtually:a,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const a=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...r},a)}))};var K=Y;const X=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(y.MenuItem,{...n});function Q({scope:e,target:t,__unstableExplicitMenuItem:n,...a}){return(0,l.createElement)(W,{as:a=>(0,l.createElement)(K,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:X,name:`${e}/plugin-more-menu`,...a}),role:"menuitemcheckbox",selectedIcon:b,name:t,scope:e,...a})}function J({scope:e,...t}){return(0,l.createElement)(y.Fill,{name:`PinnedItems/${e}`,...t})}J.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(y.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:v()(t,"interface-pinned-items")},e)))};var ee=J;function te({scope:e,children:t,className:n}){return(0,l.createElement)(y.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{className:n},t))}const ne=j((function({children:e,className:t,closeLabel:n=(0,E.__)("Close plugin"),identifier:a,header:r,headerClassName:o,icon:i,isPinnable:s=!0,panelClassName:c,scope:u,name:m,smallScreenTitle:p,title:_,toggleShortcut:g,isActiveByDefault:h,showIconLabels:f=!1}){const{isLoading:C,isActive:x,isPinned:T,activeArea:N,isSmall:M,isLarge:P}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:r}=e(U),o=t(u);return{isLoading:n(u),isActive:o===a,isPinned:r(u,a),activeArea:o,isSmall:e(k.store).isViewportMatch("< medium"),isLarge:e(k.store).isViewportMatch("large")}}),[a,u]);!function(e,t,n,a,r){const o=(0,l.useRef)(!1),i=(0,l.useRef)(!1),{enableComplementaryArea:s,disableComplementaryArea:c}=(0,d.useDispatch)(U);(0,l.useEffect)((()=>{a&&r&&!o.current?(c(e),i.current=!0):i.current&&!r&&o.current?(i.current=!1,s(e,t)):i.current&&n&&n!==t&&(i.current=!1),r!==o.current&&(o.current=r)}),[a,r,e,t,n])}(u,a,N,x,M);const{enableComplementaryArea:I,disableComplementaryArea:B,pinItem:R,unpinItem:L}=(0,d.useDispatch)(U);return(0,l.useEffect)((()=>{h&&void 0===N&&!M?I(u,a):void 0===N&&M&&B(u,a)}),[N,h,u,a,M]),(0,l.createElement)(l.Fragment,null,s&&(0,l.createElement)(ee,{scope:u},T&&(0,l.createElement)(W,{scope:u,identifier:a,isPressed:x&&(!f||P),"aria-expanded":x,"aria-disabled":C,label:_,icon:f?b:i,showTooltip:!f,variant:f?"tertiary":void 0})),m&&s&&(0,l.createElement)(Q,{target:m,scope:u,icon:i},_),x&&(0,l.createElement)(te,{className:v()("interface-complementary-area",t),scope:u},(0,l.createElement)(Z,{className:o,closeLabel:n,onClose:()=>B(u),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:g,scope:u,identifier:a}},r||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,_),s&&(0,l.createElement)(y.Button,{className:"interface-complementary-area__pin-unpin-item",icon:T?w:S,label:T?(0,E.__)("Unpin from toolbar"):(0,E.__)("Pin to toolbar"),onClick:()=>(T?L:R)(u,a),isPressed:T,"aria-expanded":T}))),(0,l.createElement)(y.Panel,{className:c},e)))}));ne.Slot=function({scope:e,...t}){return(0,l.createElement)(y.Slot,{name:`ComplementaryArea/${e}`,...t})};var ae=ne,re=window.wp.compose;function oe({children:e,className:t,ariaLabel:n,as:a="div",...r}){return(0,l.createElement)(a,{className:v()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r},e)}const ie={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var se=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:a,sidebar:r,secondarySidebar:o,notices:i,content:s,actions:c,labels:u,className:d,enableRegionNavigation:m=!0,shortcuts:p},_){const g=(0,y.__unstableUseNavigateRegions)(p);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const h={...{header:(0,E.__)("Header"),body:(0,E.__)("Content"),secondarySidebar:(0,E.__)("Block Library"),sidebar:(0,E.__)("Settings"),actions:(0,E.__)("Publish"),footer:(0,E.__)("Footer")},...u};return(0,l.createElement)("div",{...m?g:{},ref:(0,re.useMergeRefs)([_,m?g.ref:void 0]),className:v()(d,"interface-interface-skeleton",g.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(oe,{as:y.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":h.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:ie,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},a),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!o&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:h.secondarySidebar},o),!!i&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},i),(0,l.createElement)(oe,{className:"interface-interface-skeleton__content",ariaLabel:h.body},s),!!r&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__sidebar",ariaLabel:h.sidebar},r),!!c&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__actions",ariaLabel:h.actions},c))),!!t&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__footer",ariaLabel:h.footer},t))}));var le=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function ce({as:e=y.DropdownMenu,className:t,label:n=(0,E.__)("Options"),popoverProps:a,toggleProps:r,children:o}){return(0,l.createElement)(e,{className:v()("interface-more-menu-dropdown",t),icon:le,label:n,popoverProps:{placement:"bottom-end",...a,className:v()("interface-more-menu-dropdown__content",a?.className)},toggleProps:{tooltipPosition:"bottom",...r}},(e=>o(e)))}function ue({closeModal:e,children:t}){return(0,l.createElement)(y.Modal,{className:"interface-preferences-modal",title:(0,E.__)("Preferences"),onRequestClose:e},t)}var de=function({icon:e,size:t=24,...n}){return(0,l.cloneElement)(e,{width:t,height:t,...n})};var me=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var pe=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const _e="preferences-menu";function ge({sections:e}){const t=(0,re.useViewportMatch)("medium"),[n,a]=(0,l.useState)(_e),{tabs:r,sectionsContentMap:o}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:a})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=a,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),i=(0,l.useCallback)((e=>o[e.name]||null),[o]);let s;return s=t?(0,l.createElement)(y.TabPanel,{className:"interface-preferences__tabs",tabs:r,initialTabName:n!==_e?n:void 0,onSelect:a,orientation:"vertical"},i):(0,l.createElement)(y.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(y.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(y.CardBody,null,(0,l.createElement)(y.__experimentalItemGroup,null,r.map((e=>(0,l.createElement)(y.__experimentalNavigatorButton,{key:e.name,path:e.name,as:y.__experimentalItem,isAction:!0},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(y.__experimentalTruncate,null,e.title)),(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(de,{icon:(0,E.isRTL)()?me:pe})))))))))),e.length&&e.map((e=>(0,l.createElement)(y.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(y.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(y.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(y.__experimentalNavigatorBackButton,{icon:(0,E.isRTL)()?pe:me,"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(y.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(y.CardBody,null,e.content)))))),s}var he=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var ve=function({help:e,label:t,isChecked:n,onChange:a,children:r}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(y.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:a}),r)},ye=window.wp.widgets,Ee=window.wp.hooks,fe=window.wp.mediaUtils;(0,Ee.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",(()=>fe.MediaUpload));var be=window.lodash,we=window.wp.blockEditor,Se=window.wp.notices,ke={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},xe=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Te=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Ne=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Me=function(e){return{r:Te(e.r,0,255),g:Te(e.g,0,255),b:Te(e.b,0,255),a:Te(e.a)}},Pe=function(e){return{r:xe(e.r),g:xe(e.g),b:xe(e.b),a:xe(e.a,3)}},Ie=/^#([0-9a-f]{3,8})$/i,Be=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Re=function(e){var t=e.r,n=e.g,a=e.b,r=e.a,o=Math.max(t,n,a),i=o-Math.min(t,n,a),s=i?o===t?(n-a)/i:o===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:o?i/o*100:0,v:o/255*100,a:r}},Le=function(e){var t=e.h,n=e.s,a=e.v,r=e.a;t=t/360*6,n/=100,a/=100;var o=Math.floor(t),i=a*(1-n),s=a*(1-(t-o)*n),l=a*(1-(1-t+o)*n),c=o%6;return{r:255*[a,s,i,i,l,a][c],g:255*[l,a,a,s,i,i][c],b:255*[i,i,l,a,a,s][c],a:r}},De=function(e){return{h:Ne(e.h),s:Te(e.s,0,100),l:Te(e.l,0,100),a:Te(e.a)}},Ae=function(e){return{h:xe(e.h),s:xe(e.s),l:xe(e.l),a:xe(e.a,3)}},Ve=function(e){return Le((n=(t=e).s,{h:t.h,s:(n*=((a=t.l)<50?a:100-a)/100)>0?2*n/(a+n)*100:0,v:a+n,a:t.a}));var t,n,a},Fe=function(e){return{h:(t=Re(e)).h,s:(r=(200-(n=t.s))*(a=t.v)/100)>0&&r<200?n*a/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,a,r},ze=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Oe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,He=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ge=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ue={string:[[function(e){var t=Ie.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?xe(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?xe(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=He.exec(e)||Ge.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Me({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ze.exec(e)||Oe.exec(e);if(!t)return null;var n,a,r=De({h:(n=t[1],a=t[2],void 0===a&&(a="deg"),Number(n)*(ke[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ve(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,a=e.b,r=e.a,o=void 0===r?1:r;return Ce(t)&&Ce(n)&&Ce(a)?Me({r:Number(t),g:Number(n),b:Number(a),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,a=e.l,r=e.a,o=void 0===r?1:r;if(!Ce(t)||!Ce(n)||!Ce(a))return null;var i=De({h:Number(t),s:Number(n),l:Number(a),a:Number(o)});return Ve(i)},"hsl"],[function(e){var t=e.h,n=e.s,a=e.v,r=e.a,o=void 0===r?1:r;if(!Ce(t)||!Ce(n)||!Ce(a))return null;var i=function(e){return{h:Ne(e.h),s:Te(e.s,0,100),v:Te(e.v,0,100),a:Te(e.a)}}({h:Number(t),s:Number(n),v:Number(a),a:Number(o)});return Le(i)},"hsv"]]},$e=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=(e=Pe(this.rgba)).r,n=e.g,a=e.b,o=(r=e.a)<1?Be(xe(255*r)):"","#"+Be(t)+Be(n)+Be(a)+o;var e,t,n,a,r,o},e.prototype.toRgb=function(){return Pe(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Pe(this.rgba)).r,n=e.g,a=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+a+", "+r+")":"rgb("+t+", "+n+", "+a+")";var e,t,n,a,r},e.prototype.toHsl=function(){return Ae(Fe(this.rgba))},e.prototype.toHslString=function(){return t=(e=Ae(Fe(this.rgba))).h,n=e.s,a=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+a+"%, "+r+")":"hsl("+t+", "+n+"%, "+a+"%)";var e,t,n,a,r},e.prototype.toHsv=function(){return e=Re(this.rgba),{h:xe(e.h),s:xe(e.s),v:xe(e.v),a:xe(e.a,3)};var e},e.prototype.invert=function(){return Ke({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ke(We(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ke(We(this.rgba,-e))},e.prototype.grayscale=function(){return Ke(We(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ke(qe(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ke(qe(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ke({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):xe(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Fe(this.rgba);return"number"==typeof e?Ke({h:e,s:t.s,l:t.l,a:t.a}):xe(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ke(e).toHex()},e}(),Ke=function(e){return e instanceof Ye?e:new Ye(e)},Xe=[],Qe=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Je=function(e){return.2126*Qe(e.r)+.7152*Qe(e.g)+.0722*Qe(e.b)};var et=window.wp.privateApis;const{lock:tt,unlock:nt}=(0,et.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-site"),{useGlobalSetting:at}=nt(we.privateApis);!function(e){e.forEach((function(e){Xe.indexOf(e)<0&&(e(Ye,Ue),Xe.push(e))}))}([function(e){e.prototype.luminance=function(){return e=Je(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,a,r,o,i,s,l,c=t instanceof e?t:new e(t);return o=this.rgba,i=c.toRgb(),n=(s=Je(o))>(l=Je(i))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(a=2)&&(a=0),void 0===r&&(r=Math.pow(10,a)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(o=(n=t).size)?"normal":o,"AAA"===(r=void 0===(a=n.level)?"AA":a)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,a,r,o,i}}]);const{GlobalStylesContext:rt,useBlockEditingMode:ot}=nt(we.privateApis),it={"color.background":"color","color.text":"color","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.caption.color.text":"color","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient","typography.fontSize":"font-size","typography.fontFamily":"font-family"},st={"color.background":"backgroundColor","color.text":"textColor","color.gradient":"gradient","typography.fontSize":"fontSize","typography.fontFamily":"fontFamily"};function lt(e,t){const n=function(e,t){const{supportedPanels:n}=(0,d.useSelect)((n=>({supportedPanels:nt(n(c.store)).getSupportedStyles(e,t)})),[e,t]);return n}(e);return(0,l.useMemo)((()=>n.flatMap((e=>{if(!c.__EXPERIMENTAL_STYLE_PROPERTY[e])return[];const{value:n}=c.__EXPERIMENTAL_STYLE_PROPERTY[e],a=n.join("."),r=t[st[a]],o=r?`var:preset|${it[a]}|${r}`:(0,be.get)(t.style,n);return o?[{path:n,value:o}]:[]}))),[n,e,t])}function ct(e){return e?JSON.parse(JSON.stringify(e)):{}}function ut({name:e,attributes:t,setAttributes:n}){const a=lt(e,t),{user:r,setUserConfig:o}=(0,l.useContext)(rt),{__unstableMarkNextChangeAsNotPersistent:i}=(0,d.useDispatch)(we.store),{createSuccessNotice:s}=(0,d.useDispatch)(Se.store),u=(0,l.useCallback)((()=>{if(0===a.length)return;const{style:l}=t,u=ct(l),d=ct(r);for(const{path:t,value:n}of a)(0,be.set)(u,t,void 0),(0,be.set)(d,["styles","blocks",e,...t],n);i(),n({style:u}),o((()=>d),{undoIgnore:!0}),s((0,E.sprintf)((0,E.__)("%s styles applied."),(0,c.getBlockType)(e).title),{type:"snackbar",actions:[{label:(0,E.__)("Undo"),onClick(){i(),n({style:l}),o((()=>r),{undoIgnore:!0})}}]})}),[a,t,r,e]);return(0,l.createElement)(y.BaseControl,{className:"edit-site-push-changes-to-global-styles-control",help:(0,E.sprintf)((0,E.__)("Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks."),(0,c.getBlockType)(e).title)},(0,l.createElement)(y.BaseControl.VisualLabel,null,(0,E.__)("Styles")),(0,l.createElement)(y.Button,{variant:"primary",disabled:0===a.length,onClick:u},(0,E.__)("Apply globally")))}const dt=(0,re.createHigherOrderComponent)((e=>t=>{const n=ot();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),"default"===n&&(0,l.createElement)(we.InspectorAdvancedControls,null,(0,l.createElement)(ut,{...t})))}));(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/push-changes-to-global-styles",dt);var mt=window.wp.router,pt=window.wp.url;function _t(){return void 0!==(0,pt.getQueryArg)(window.location.href,"wp_theme_preview")}function gt(){return _t()?(0,pt.getQueryArg)(window.location.href,"wp_theme_preview"):null}const{useHistory:ht}=nt(mt.privateApis);function vt(e={},t,n=!1){const a=ht();const r=(0,pt.getQueryArgs)(window.location.href),o=(0,pt.removeQueryArgs)(window.location.href,...Object.keys(r));_t()&&(e={...e,wp_theme_preview:gt()});return{href:(0,pt.addQueryArgs)(o,e),onClick:function(r){r.preventDefault(),n?a.replace(e,t):a.push(e,t)}}}function yt({params:e={},state:t,replace:n=!1,children:a,...r}){const{href:o,onClick:i}=vt(e,t,n);return(0,l.createElement)("a",{href:o,onClick:i,...r},a)}const{useLocation:Et}=nt(mt.privateApis);function ft({attributes:e}){const{theme:t,slug:n}=e,{params:a}=Et(),r=(0,d.useSelect)((e=>e(_.store).getEntityRecord("postType","wp_template_part",`${t}//${n}`)),[t,n]),o=vt({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:a.postId});return r?(0,l.createElement)(we.BlockControls,{group:"other"},(0,l.createElement)(y.ToolbarButton,{...o,onClick:e=>{o.onClick(e)}},(0,E.__)("Edit"))):null}const bt=(0,re.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:a}=t,r="core/template-part"===a&&n.slug;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(ft,{attributes:n}))}),"withEditBlockControls");(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/template-part-edit-button",bt);const{useLocation:wt}=nt(mt.privateApis),{useBlockEditingMode:St}=nt(we.privateApis);function kt({attributes:e}){const{ref:t}=e,{params:n}=wt(),a=St(),r=(0,d.useSelect)((e=>e(_.store).getEntityRecord("postType","wp_navigation",t)),[t]),o=vt({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:n.postId});return r&&"default"===a?(0,l.createElement)(we.BlockControls,{group:"other"},(0,l.createElement)(y.ToolbarButton,{...o,onClick:e=>{o.onClick(e)}},(0,E.__)("Edit"))):null}const Ct=(0,re.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:a}=t,r="core/navigation"===a&&n.ref;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(kt,{attributes:n}))}),"withEditBlockControls");(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/navigation-edit-button",Ct);var xt=(0,d.combineReducers)({deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},settings:function(e={},t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},editedPost:function(e={},t){switch(t.type){case"SET_EDITED_POST":return{postType:t.postType,id:t.id,context:t.context};case"SET_EDITED_POST_CONTEXT":return{...e,context:t.context}}return e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value;case"SET_CANVAS_MODE":return!1}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},saveViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_SAVE_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},canvasMode:function(e="init",t){return"SET_CANVAS_MODE"===t.type?t.mode:e},editorCanvasContainerView:function(e,t){return"SET_EDITOR_CANVAS_CONTAINER_VIEW"===t.type?t.view:e},hasPageContentFocus:function(e=!1,t){switch(t.type){case"SET_EDITED_POST":return!!t.context?.postId;case"SET_HAS_PAGE_CONTENT_FOCUS":return t.hasPageContentFocus}return e}}),Tt=window.wp.apiFetch,Nt=n.n(Tt),Mt=window.wp.a11y,Pt=window.wp.htmlEntities;const It="core/edit-site";function Bt(e){return!!e&&("custom"===e?.source&&e?.has_theme_file)}function Rt(e){return function({registry:t}){p()("select( 'core/edit-site' ).toggleFeature( featureName )",{since:"6.0",alternative:"select( 'core/preferences').toggle( 'core/edit-site', featureName )"}),t.dispatch(x.store).toggle("core/edit-site",e)}}function Lt(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}const Dt=(e,t)=>async({dispatch:n,registry:a})=>{if(!t)try{const n=await a.resolveSelect(_.store).getEntityRecord("postType","wp_template",e);t=n?.slug}catch(e){}n({type:"SET_EDITED_POST",postType:"wp_template",id:e,context:{templateSlug:t}})},At=e=>async({dispatch:t,registry:n})=>{const a=await n.dispatch(_.store).saveEntityRecord("postType","wp_template",e);e.content&&n.dispatch(_.store).editEntityRecord("postType","wp_template",a.id,{blocks:(0,c.parse)(e.content)},{undoIgnore:!0}),t({type:"SET_EDITED_POST",postType:"wp_template",id:a.id,context:{templateSlug:a.slug}})},Vt=e=>async({registry:t})=>{try{await t.dispatch(_.store).deleteEntityRecord("postType",e.type,e.id,{force:!0});const n=t.select(_.store).getLastEntityDeleteError("postType",e.type,e.id);if(n)throw n;t.dispatch(Se.store).createSuccessNotice((0,E.sprintf)((0,E.__)('"%s" deleted.'),(0,Pt.decodeEntities)(e.title.rendered)),{type:"snackbar",id:"site-editor-template-deleted-success"})}catch(e){const n=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the template.");t.dispatch(Se.store).createErrorNotice(n,{type:"snackbar"})}};function Ft(e){return{type:"SET_EDITED_POST",postType:"wp_template_part",id:e}}function zt(e){return{type:"SET_EDITED_POST",postType:"wp_navigation",id:e}}function Ot(e,t){return{type:"SET_EDITED_POST",postType:e,id:t}}function Ht(){return p()("dispatch( 'core/edit-site' ).setHomeTemplateId",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Gt(e){return{type:"SET_EDITED_POST_CONTEXT",context:e}}const Ut=e=>async({dispatch:t,registry:n})=>{if(!e.path&&e.context?.postId){const t=await n.resolveSelect(_.store).getEntityRecord("postType",e.context.postType||"post",e.context.postId);e.path=(0,pt.getPathAndQueryString)(t?.link)}const a=await n.resolveSelect(_.store).__experimentalGetTemplateForLink(e.path);if(a)return t({type:"SET_EDITED_POST",postType:"wp_template",id:a.id,context:{...e.context,templateSlug:a.slug}}),a.id};function $t(){return p()("dispatch( 'core/edit-site' ).setNavigationPanelActiveMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function jt(){return p()("dispatch( 'core/edit-site' ).openNavigationPanelToMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Wt(){return p()("dispatch( 'core/edit-site' ).setIsNavigationPanelOpened",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Zt(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function qt(e){return{type:"UPDATE_SETTINGS",settings:e}}function Yt(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function Kt(e){return{type:"SET_IS_SAVE_VIEW_OPENED",isOpen:e}}const Xt=(e,{allowUndo:t=!0}={})=>async({registry:n})=>{const a="edit-site-template-reverted";if(n.dispatch(Se.store).removeNotice(a),Bt(e))try{const r=n.select(_.store).getEntityConfig("postType",e.type);if(!r)return void n.dispatch(Se.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const o=(0,pt.addQueryArgs)(`${r.baseURL}/${e.id}`,{context:"edit",source:"theme"}),i=await Nt()({path:o});if(!i)return void n.dispatch(Se.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const s=({blocks:e=[]})=>(0,c.__unstableSerializeAndClean)(e),l=n.select(_.store).getEditedEntityRecord("postType",e.type,e.id);n.dispatch(_.store).editEntityRecord("postType",e.type,e.id,{content:s,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const u=(0,c.parse)(i?.content?.raw);if(n.dispatch(_.store).editEntityRecord("postType",e.type,i.id,{content:s,blocks:u,source:"theme"}),t){const t=()=>{n.dispatch(_.store).editEntityRecord("postType",e.type,l.id,{content:s,blocks:l.blocks,source:"custom"})};n.dispatch(Se.store).createSuccessNotice((0,E.__)("Template reverted."),{type:"snackbar",id:a,actions:[{label:(0,E.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("Template revert failed. Please reload.");n.dispatch(Se.store).createErrorNotice(t,{type:"snackbar"})}else n.dispatch(Se.store).createErrorNotice((0,E.__)("This template is not revertable."),{type:"snackbar"})},Qt=e=>({registry:t})=>{t.dispatch(U).enableComplementaryArea(It,e)},Jt=()=>({registry:e})=>{e.dispatch(U).disableComplementaryArea(It)},en=e=>({registry:t})=>{t.dispatch("core/preferences").set("core/edit-site","editorMode",e),"visual"!==e&&t.dispatch(we.store).clearSelectedBlock(),"visual"===e?(0,Mt.speak)((0,E.__)("Visual editor selected"),"assertive"):"text"===e&&(0,Mt.speak)((0,E.__)("Code editor selected"),"assertive")},tn=e=>({dispatch:t,registry:n})=>{e&&n.dispatch(we.store).clearSelectedBlock(),t({type:"SET_HAS_PAGE_CONTENT_FOCUS",hasPageContentFocus:e})},nn=e=>({registry:t,dispatch:n})=>{t.dispatch(we.store).__unstableSetEditorMode("edit"),n({type:"SET_CANVAS_MODE",mode:e}),"edit"===e&&t.select(x.store).get("core/edit-site","showListViewByDefault")&&n.setIsListViewOpened(!0)},an=e=>({dispatch:t})=>{t({type:"SET_EDITOR_CANVAS_CONTAINER_VIEW",view:e})};var rn={};function on(e){return[e]}function sn(e,t,n){var a;if(e.length!==t.length)return!1;for(a=n;a({...e,[t.id]:t})),{}):{},a=[],r=[...e];for(;r.length;){const{innerBlocks:e,...t}=r.shift();if(r.unshift(...e),(0,c.isTemplatePart)(t)){const{attributes:{theme:e,slug:r}}=t,o=n[`${e}//${r}`];o&&a.push({templatePart:o,block:t})}}return a})),un=(0,d.createRegistrySelector)((e=>(t,n)=>e(x.store).get("core/edit-site",n)));function dn(e,t){return p()("select( 'core/edit-site' ).isFeatureActive",{since:"6.0",alternative:"select( 'core/preferences' ).get"}),!!un(e,t)}function mn(e){return e.deviceType}const pn=(0,d.createRegistrySelector)((e=>()=>e(_.store).canUser("create","media"))),_n=(0,d.createRegistrySelector)((e=>()=>"web"===l.Platform.OS?e(_.store).getEntityRecords("postType","wp_block",{per_page:-1}):[])),gn=function(e,t){var n,a=t||on;function r(e){var t,a,r,o,i,s=n,l=!0;for(t=0;t{const n={...e.settings,outlineMode:!0,focusMode:!!un(e,"focusMode"),isDistractionFree:!!un(e,"distractionFree"),hasFixedToolbar:!!un(e,"fixedToolbar"),keepCaretInsideBlock:!!un(e,"keepCaretInsideBlock"),showIconLabels:!!un(e,"showIconLabels"),__experimentalSetIsInserterOpened:t,__experimentalReusableBlocks:_n(e),__experimentalPreferPatternsOnRoot:"wp_template"===vn(e)};return pn(e)?(n.mediaUpload=({onError:t,...n})=>{(0,fe.uploadMedia)({wpAllowedMimeTypes:e.settings.allowedMimeTypes,onError:({message:e})=>t(e),...n})},n):n}),(e=>[pn(e),e.settings,un(e,"focusMode"),un(e,"distractionFree"),un(e,"fixedToolbar"),un(e,"keepCaretInsideBlock"),un(e,"showIconLabels"),_n(e),vn(e)]));function hn(){p()("select( 'core/edit-site' ).getHomeTemplateId",{since:"6.2",version:"6.4"})}function vn(e){return e.editedPost.postType}function yn(e){return e.editedPost.id}function En(e){return e.editedPost.context}function fn(e){return{context:e.editedPost.context}}function bn(e){return!!e.blockInserterPanel}const wn=(0,d.createRegistrySelector)((e=>t=>{if("object"==typeof t.blockInserterPanel){const{rootClientId:e,insertionIndex:n,filterValue:a}=t.blockInserterPanel;return{rootClientId:e,insertionIndex:n,filterValue:a}}if(In(t)){const[t]=e(we.store).__experimentalGetGlobalBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return{rootClientId:void 0,insertionIndex:void 0,filterValue:void 0}}));function Sn(e){return e.listViewPanel}function kn(e){return e.saveViewPanel}const Cn=(0,d.createRegistrySelector)((e=>t=>{const n=vn(t),a=yn(t),r=e(_.store).getEditedEntityRecord("postType",n,a),o=e(_.store).getEntityRecords("postType","wp_template_part",{per_page:-1});return cn(r.blocks,o)}));function xn(e){return un(e,"editorMode")}function Tn(){p()("dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu",{since:"6.2",version:"6.4"})}function Nn(){p()("dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu",{since:"6.2",version:"6.4"})}function Mn(){p()("dispatch( 'core/edit-site' ).isNavigationOpened",{since:"6.2",version:"6.4"})}function Pn(e){return!!e.editedPost.context?.postId}function In(e){return!!Pn(e)&&e.hasPageContentFocus}function Bn(e){return e.canvasMode}function Rn(e){return e.editorCanvasContainerView}const Ln={reducer:xt,actions:r,selectors:i},Dn=(0,d.createReduxStore)(It,Ln);(0,d.register)(Dn),nt(Dn).registerPrivateSelectors(s),nt(Dn).registerPrivateActions(o);var An=window.wp.keyboardShortcuts,Vn=window.wp.commands,Fn=window.wp.coreCommands;var zn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"}));var On=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));var Hn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var Gn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var Un=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function $n(e){return(0,l.createElement)(y.Button,{...e,className:v()("edit-site-sidebar-button",e.className)})}function jn({isRoot:e,title:t,actions:n,meta:a,content:r,footer:o,description:i,backPath:s}){const{dashboardLink:c}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Dn));return{dashboardLink:t().__experimentalDashboardLink}}),[]),{getTheme:u}=(0,d.useSelect)(_.store),{goTo:m}=(0,y.__experimentalUseNavigator)(),p=u(gt()),g=(0,E.isRTL)()?pe:me;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen__main",spacing:0,justify:"flex-start"},(0,l.createElement)(y.__experimentalHStack,{spacing:4,alignment:"flex-start",className:"edit-site-sidebar-navigation-screen__title-icon"},!e&&!s&&(0,l.createElement)(y.__experimentalNavigatorToParentButton,{as:$n,icon:(0,E.isRTL)()?pe:me,label:(0,E.__)("Back"),showTooltip:!1}),!e&&s&&(0,l.createElement)($n,{onClick:()=>m(s,{isBack:!0}),icon:g,label:(0,E.__)("Back"),showTooltip:!1}),e&&(0,l.createElement)($n,{icon:g,label:_t()?(0,E.__)("Go back to the theme showcase"):(0,E.__)("Go back to the Dashboard"),href:_t()?"themes.php":c||"index.php"}),(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen__title",color:"#e0e0e0",level:1,size:20},_t()?(0,E.sprintf)("Previewing %1$s: %2$s",p?.name?.rendered,t):t),n&&(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__actions"},n)),a&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__meta"},a)),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__content"},i&&(0,l.createElement)("p",{className:"edit-site-sidebar-navigation-screen__description"},i),r)),o&&(0,l.createElement)("footer",{className:"edit-site-sidebar-navigation-screen__footer"},o))}var Wn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var Zn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function qn({className:e,icon:t,withChevron:n=!1,suffix:a,children:r,...o}){return(0,l.createElement)(y.__experimentalItem,{className:v()("edit-site-sidebar-navigation-item",{"with-suffix":!n&&a},e),...o},(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start"},t&&(0,l.createElement)(de,{style:{fill:"currentcolor"},icon:t,size:24}),(0,l.createElement)(y.FlexBlock,null,r),n&&(0,l.createElement)(de,{icon:(0,E.isRTL)()?Wn:Zn,className:"edit-site-sidebar-navigation-item__drilldown-indicator",size:24}),!n&&a))}var Yn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));var Kn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"}));var Xn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),Qn=Xn,Jn=window.wp.date,ea=window.wp.keycodes,ta=n(1919),na=n.n(ta); /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -function ea(e){return"[object Object]"===Object.prototype.toString.call(e)}function ta(e){var t,n;return!1!==ea(e)&&(void 0===(t=e.constructor)||!1!==ea(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:na,cleanEmptyObject:aa}=Je(Ee.privateApis);function ra(e,t){return Jn()(e,t,{isMergeableObject:ta})}function oa(){const[e,t,n]=function(){const{globalStylesId:e,isReady:t,settings:n,styles:a}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:n}=e(_.store),a=e(_.store).__experimentalGetCurrentGlobalStylesId(),r=a?t("root","globalStyles",a):void 0;let o=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(o=!a||n("getEditedEntityRecord",["root","globalStyles",a])),{globalStylesId:a,isReady:o,settings:r?.settings,styles:r?.styles}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(_.store),{editEntityRecord:o}=(0,d.useDispatch)(_.store);return[t,(0,l.useMemo)((()=>({settings:null!=n?n:{},styles:null!=a?a:{}})),[n,a]),(0,l.useCallback)(((t,n={})=>{var a,i;const s=r("root","globalStyles",e),l=t({styles:null!==(a=s?.styles)&&void 0!==a?a:{},settings:null!==(i=s?.settings)&&void 0!==i?i:{}});o("root","globalStyles",e,{styles:aa(l.styles)||{},settings:aa(l.settings)||{}},n)}),[e])]}(),[a,r]=function(){const e=(0,d.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),o=(0,l.useMemo)((()=>r&&t?ra(r,t):{}),[t,r]);return(0,l.useMemo)((()=>({isReady:e&&a,user:t,base:r,merged:o,setUserConfig:n})),[o,t,r,n,e,a])}function ia({children:e}){const t=oa();return t.isReady?(0,l.createElement)(na.Provider,{value:t},e):null}const{useGlobalSetting:sa,useGlobalStyle:la,useGlobalStylesOutput:ca}=Je(Ee.privateApis),ua={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},da={hover:{opacity:1},start:{opacity:.5}},ma={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};var pa=({label:e,isFocused:t,withHoverView:n})=>{const[a]=la("typography.fontWeight"),[r="serif"]=la("typography.fontFamily"),[o=r]=la("elements.h1.typography.fontFamily"),[i=a]=la("elements.h1.typography.fontWeight"),[s="black"]=la("color.text"),[c=s]=la("elements.h1.color.text"),[u="white"]=la("color.background"),[d]=la("color.gradient"),[m]=ca(),p=(0,te.useReducedMotion)(),[_]=sa("color.palette.core"),[g]=sa("color.palette.theme"),[h]=sa("color.palette.custom"),[v,E]=(0,l.useState)(!1),[f,{width:b}]=(0,te.useResizeObserver)(),w=b?b/248:1,S=(null!=g?g:[]).concat(null!=h?h:[]).concat(null!=_?_:[]),k=S.filter((({color:e})=>e!==u&&e!==c)).slice(0,2),C=(0,l.useMemo)((()=>m?[...m,{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}",isGlobalStyles:!0}]:m),[m]),x=!!b;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative"}},f),x&&(0,l.createElement)(Ee.__unstableIframe,{className:"edit-site-global-styles-preview__iframe",style:{height:152*w},onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),tabIndex:-1},(0,l.createElement)(Ee.__unstableEditorStyles,{styles:C}),(0,l.createElement)(y.__unstableMotion.div,{style:{height:152*w,width:"100%",background:null!=d?d:u,cursor:n?"pointer":void 0},initial:"start",animate:(v||t)&&!p&&e?"hover":"start"},(0,l.createElement)(y.__unstableMotion.div,{variants:ua,style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(y.__experimentalHStack,{spacing:10*w,justify:"center",style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(y.__unstableMotion.div,{style:{fontFamily:o,fontSize:65*w,color:c,fontWeight:i},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"}},"Aa"),(0,l.createElement)(y.__experimentalVStack,{spacing:4*w},k.map((({slug:e,color:t},n)=>(0,l.createElement)(y.__unstableMotion.div,{key:e,style:{height:32*w,width:32*w,background:t,borderRadius:32*w/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}})))))),(0,l.createElement)(y.__unstableMotion.div,{variants:n&&da,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1}},(0,l.createElement)(y.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"}},S.slice(0,4).map((({color:e},t)=>(0,l.createElement)("div",{key:t,style:{height:"100%",background:e,flexGrow:1}}))))),(0,l.createElement)(y.__unstableMotion.div,{variants:ma,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0}},(0,l.createElement)(y.__experimentalVStack,{spacing:3*w,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*w,boxSizing:"border-box"}},e&&(0,l.createElement)("div",{style:{fontSize:40*w,fontFamily:o,color:c,fontWeight:i,lineHeight:"1em",textAlign:"center"}},e))))))};const{GlobalStylesContext:_a,areGlobalStyleConfigsEqual:ga}=Je(Ee.privateApis);function ha({variation:e}){const[t,n]=(0,l.useState)(!1),{base:a,user:r,setUserConfig:o}=(0,l.useContext)(_a),i=(0,l.useMemo)((()=>{var t,n;return{user:{settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}},base:a,merged:ra(a,e),setUserConfig:()=>{}}}),[e,a]),s=()=>{o((()=>({settings:e.settings,styles:e.styles})))},c=(0,l.useMemo)((()=>ga(r,e)),[r,e]);let u=e?.title;return e?.description&&(u=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),e?.title,e?.description)),(0,l.createElement)(_a.Provider,{value:i},(0,l.createElement)("div",{className:v()("edit-site-global-styles-variations_item",{"is-active":c}),role:"button",onClick:s,onKeyDown:e=>{e.keyCode===Xn.ENTER&&(e.preventDefault(),s())},tabIndex:"0","aria-label":u,"aria-current":c,onFocus:()=>n(!0),onBlur:()=>n(!1)},(0,l.createElement)("div",{className:"edit-site-global-styles-variations_item-preview"},(0,l.createElement)(pa,{label:e?.title,isFocused:t,withHoverView:!0}))))}function va(){const e=(0,d.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()),[]),t=(0,l.useMemo)((()=>[{title:(0,E.__)("Default"),settings:{},styles:{}},...(null!=e?e:[]).map((e=>{var t,n;return{...e,settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}}}))]),[e]);return(0,l.createElement)(y.__experimentalGrid,{columns:2,className:"edit-site-global-styles-style-variations-container"},t.map(((e,t)=>(0,l.createElement)(ha,{key:t,variation:e}))))}function ya({variation:e="default",direction:t,resizeWidthBy:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:`resizable-editor__drag-handle is-${t} is-variation-${e}`,"aria-label":(0,E.__)("Drag to resize"),"aria-describedby":`resizable-editor__resize-help-${t}`,onKeyDown:function(e){const{keyCode:a}=e;"left"===t&&a===Xn.LEFT||"right"===t&&a===Xn.RIGHT?n(20):("left"===t&&a===Xn.RIGHT||"right"===t&&a===Xn.LEFT)&&n(-20)}}),(0,l.createElement)(y.VisuallyHidden,{id:`resizable-editor__resize-help-${t}`},(0,E.__)("Use left and right arrow keys to resize the canvas.")))}const Ea={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var fa=function({enableResizing:e,height:t,children:n}){const[a,r]=(0,l.useState)("100%"),o=(0,l.useRef)(),i=(0,l.useCallback)((e=>{o.current&&r(o.current.offsetWidth+e)}),[]);return(0,l.createElement)(y.ResizableBox,{ref:e=>{o.current=e?.resizable},size:{width:e?a:"100%",height:e&&t?t:"100%"},onResizeStop:(e,t,n)=>{r(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{right:e,left:e},showHandle:e,resizeRatio:2,handleComponent:{left:(0,l.createElement)(ya,{direction:"left",resizeWidthBy:i}),right:(0,l.createElement)(ya,{direction:"right",resizeWidthBy:i})},handleClasses:void 0,handleStyles:{left:Ea,right:Ea}},n)};function ba(e){switch(e){case"style-book":return(0,E.__)("Style Book");case"global-styles-revisions":return(0,E.__)("Global styles revisions");default:return""}}const{createPrivateSlotFill:wa}=Je(y.privateApis),{privateKey:Sa,Slot:ka,Fill:Ca}=wa("EditSiteEditorCanvasContainerSlot");function xa({children:e,closeButtonLabel:t,onClose:n,enableResizing:a=!1}){const{editorCanvasContainerView:r,showListViewByDefault:o}=(0,d.useSelect)((e=>({editorCanvasContainerView:Je(e(Bn)).getEditorCanvasContainerView(),showListViewByDefault:e(x.store).get("core/edit-site","showListViewByDefault")})),[]),[i,s]=(0,l.useState)(!1),{setEditorCanvasContainerView:c}=Je((0,d.useDispatch)(Bn)),u=(0,te.useFocusOnMount)("firstElement"),m=(0,te.useFocusReturn)(),p=(0,l.useMemo)((()=>ba(r)),[r]),{setIsListViewOpened:_}=(0,d.useDispatch)(Bn);function g(){"function"==typeof n&&n(),_(o),c(void 0),s(!0)}const h=Array.isArray(e)?l.Children.map(e,((e,t)=>0===t?(0,l.cloneElement)(e,{ref:m}):e)):(0,l.cloneElement)(e,{ref:m});if(i)return null;const v=n||t;return(0,l.createElement)(Ca,null,(0,l.createElement)(fa,{enableResizing:a},(0,l.createElement)("section",{className:"edit-site-editor-canvas-container",ref:v?u:null,onKeyDown:function(e){e.keyCode!==Xn.ESCAPE||e.defaultPrevented||(e.preventDefault(),g())},"aria-label":p},v&&(0,l.createElement)(y.Button,{className:"edit-site-editor-canvas-container__close-button",icon:C,label:t||(0,E.__)("Close"),onClick:g,showTooltip:!1}),h)))}xa.Slot=ka;var Ta=xa;const{ExperimentalBlockEditorProvider:Na,useGlobalStyle:Pa}=Je(Ee.privateApis);function Ma(){return[{name:"core/heading",title:(0,E.__)("Headings"),category:"text",blocks:[(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:1}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:2}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:3}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:4}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:5})]},...(0,c.getBlockTypes)().filter((e=>{const{name:t,example:n,supports:a}=e;return"core/heading"!==t&&!!n&&!1!==a.inserter})).map((e=>({name:e.name,title:e.title,category:e.category,blocks:(0,c.getBlockFromExample)(e.name,e.example)})))]}const Ia=({category:e,examples:t,isSelected:n,onClick:a,onSelect:r,settings:o,sizes:i,title:s})=>{const[c,u]=(0,l.useState)(!1),d={role:"button",onFocus:()=>u(!0),onBlur:()=>u(!1),onKeyDown:e=>{if(e.defaultPrevented)return;const{keyCode:t}=e;!a||t!==Xn.ENTER&&t!==Xn.SPACE||(e.preventDefault(),a(e))},onClick:e=>{e.defaultPrevented||a&&(e.preventDefault(),a(e))},readonly:!0},m=a?"body { cursor: pointer; } body * { pointer-events: none; }":"";return(0,l.createElement)(Ee.__unstableIframe,{className:v()("edit-site-style-book__iframe",{"is-focused":c&&!!a,"is-button":!!a}),name:"style-book-canvas",tabIndex:0,...a?d:{}},(0,l.createElement)(Ee.__unstableEditorStyles,{styles:o.styles}),(0,l.createElement)("style",null,'.is-root-container { display: flow-root; }\n\t\t\t\t\t\tbody { position: relative; padding: 32px !important; }\n\t.edit-site-style-book__examples {\n\t\tmax-width: 900px;\n\t\tmargin: 0 auto;\n\t}\n\n\t.edit-site-style-book__example {\n\t\tborder-radius: 2px;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 40px;\n\t\tmargin-bottom: 40px;\n\t\tpadding: 16px;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t}\n\n\t.edit-site-style-book__example.is-selected {\n\t\tbox-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t}\n\n\t.edit-site-style-book__example:focus:not(:disabled) {\n\t\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\toutline: 3px solid transparent;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example {\n\t\tflex-direction: row;\n\t}\n\n\t.edit-site-style-book__example-title {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\tfont-size: 11px;\n\t\tfont-weight: 500;\n\t\tline-height: normal;\n\t\tmargin: 0;\n\t\ttext-align: left;\n\t\ttext-transform: uppercase;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {\n\t\ttext-align: right;\n\t\twidth: 120px;\n\t}\n\n\t.edit-site-style-book__example-preview {\n\t\twidth: 100%;\n\t}\n\n\t.edit-site-style-book__example-preview .block-editor-block-list__insertion-point,\n\t.edit-site-style-book__example-preview .block-list-appender {\n\t\tdisplay: none;\n\t}\n\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {\n\t\tmargin-top: 0;\n\t}\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {\n\t\tmargin-bottom: 0;\n\t}\n'+m),(0,l.createElement)(Ba,{className:v()("edit-site-style-book__examples",{"is-wide":i.width>600}),examples:t,category:e,label:s?(0,E.sprintf)((0,E.__)("Examples of blocks in the %s category"),s):(0,E.__)("Examples of blocks"),isSelected:n,onSelect:r}))},Ba=(0,l.memo)((({className:e,examples:t,category:n,label:a,isSelected:r,onSelect:o})=>{const i=(0,y.__unstableUseCompositeState)({orientation:"vertical"});return(0,l.createElement)(y.__unstableComposite,{...i,className:e,"aria-label":a},t.filter((e=>!n||e.category===n)).map((e=>(0,l.createElement)(Ra,{key:e.name,id:`example-${e.name}`,composite:i,title:e.title,blocks:e.blocks,isSelected:r(e.name),onClick:()=>{o?.(e.name)}}))))})),Ra=({composite:e,id:t,title:n,blocks:a,isSelected:r,onClick:o})=>{const i=(0,d.useSelect)((e=>e(Ee.store).getSettings()),[]),s=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),c=(0,l.useMemo)((()=>Array.isArray(a)?a:[a]),[a]);return(0,l.createElement)(y.__unstableCompositeItem,{...e,className:v()("edit-site-style-book__example",{"is-selected":r}),id:t,"aria-label":(0,E.sprintf)((0,E.__)("Open %s styles in Styles panel"),n),onClick:o,role:"button",as:"div"},(0,l.createElement)("span",{className:"edit-site-style-book__example-title"},n),(0,l.createElement)("div",{className:"edit-site-style-book__example-preview","aria-hidden":!0},(0,l.createElement)(y.Disabled,{className:"edit-site-style-book__example-preview__content"},(0,l.createElement)(Na,{value:c,settings:s},(0,l.createElement)(Ee.BlockList,{renderAppender:!1})))))};var Da=function({enableResizing:e=!0,isSelected:t,onClick:n,onSelect:a,showCloseButton:r=!0,showTabs:o=!0}){const[i,s]=(0,te.useResizeObserver)(),[u]=Pa("color.text"),[m]=Pa("color.background"),p=(0,l.useMemo)(Ma,[]),_=(0,l.useMemo)((()=>(0,c.getCategories)().filter((e=>p.some((t=>t.category===e.slug)))).map((e=>({name:e.slug,title:e.title,icon:e.icon})))),[p]),g=(0,d.useSelect)((e=>e(Ee.store).getSettings()),[]),h=(0,l.useMemo)((()=>({...g,__unstableIsPreviewMode:!0})),[g]);return(0,l.createElement)(Ta,{enableResizing:e,closeButtonLabel:r?(0,E.__)("Close Style Book"):null},(0,l.createElement)("div",{className:v()("edit-site-style-book",{"is-wide":s.width>600,"is-button":!!n}),style:{color:u,background:m}},i,o?(0,l.createElement)(y.TabPanel,{className:"edit-site-style-book__tab-panel",tabs:_},(e=>(0,l.createElement)(Ia,{category:e.name,examples:p,isSelected:t,onSelect:a,settings:h,sizes:s,title:e.title}))):(0,l.createElement)(Ia,{examples:p,isSelected:t,onClick:n,onSelect:a,settings:h,sizes:s})))};const Aa={per_page:-1,_fields:"id,name,avatar_urls",context:"view",capabilities:["edit_theme_options"]},La=[],{GlobalStylesContext:Va}=Je(Ee.privateApis);function Fa(){const{user:e}=(0,l.useContext)(Va),{authors:t,currentUser:n,isDirty:a,revisions:r}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getCurrentUser:n,getUsers:a,getCurrentThemeGlobalStylesRevisions:r}=e(_.store),o=t(),i=n(),s=o.length>0,l=r()||La;return{authors:a(Aa)||La,currentUser:i,isDirty:s,revisions:l}}),[]);return(0,l.useMemo)((()=>{let o=[];if(!t.length||!r.length)return{revisions:o,hasUnsavedChanges:a,isLoading:!0};if(o=r.map((e=>({...e,author:t.find((t=>t.id===e.author))}))),"unsaved"!==o[0].id&&(o[0].isLatest=!0),a&&e&&Object.keys(e).length>0&&n){const t={id:"unsaved",styles:e?.styles,settings:e?.settings,author:{name:n?.name,avatar_urls:n?.avatar_urls},modified:new Date};o.unshift(t)}return{revisions:o,hasUnsavedChanges:a,isLoading:!1}}),[a,r,n,t,e])}const za=()=>{};function Oa(e){const{openGeneralSidebar:t,toggleFeature:n}=(0,d.useDispatch)(Bn),{setCanvasMode:a}=Je((0,d.useDispatch)(Bn)),{createNotice:r}=(0,d.useDispatch)(fe.store);return(0,d.useSelect)((e=>!!e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length),[])?(0,l.createElement)(y.__experimentalNavigatorButton,{...e,as:jn,path:"/wp_global_styles"}):(0,l.createElement)(jn,{...e,onClick:()=>{n("distractionFree",!1),r("info",(0,E.__)("Distraction free mode turned off"),{isDismissible:!0,type:"snackbar"}),a("edit"),t("edit-site/global-styles")}})}function Ha(){const{storedSettings:e}=(0,d.useSelect)((e=>{const{getSettings:t}=Je(e(Bn));return{storedSettings:t(!1)}}),[]);return(0,l.createElement)(Ee.BlockEditorProvider,{settings:e,onChange:za,onInput:za},(0,l.createElement)(va,null))}function Ga({onClickRevisions:e}){const{revisions:t,isLoading:n}=Fa(),{revisionsCount:a}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{revisionsCount:null!==(t=(r?n("root","globalStyles",r):void 0)?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),r=a>=2,o=t?.[0]?.modified;return r&&!n&&o?(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-global-styles__footer"},(0,l.createElement)(jn,{className:"edit-site-sidebar-navigation-screen-global-styles__revisions",label:(0,E.__)("Revisions"),onClick:e},(0,l.createElement)(y.__experimentalVStack,{as:"span",alignment:"center",spacing:5,direction:"row",justify:"space-between"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-global-styles__revisions__label"},(0,E.__)("Last modified")),(0,l.createElement)("span",null,(0,l.createElement)("time",{dateTime:o},(0,Kn.humanTimeDiff)(o))),(0,l.createElement)(y.Icon,{icon:Wn,style:{fill:"currentcolor"}})))):null}function Ua(){const{openGeneralSidebar:e,setIsListViewOpened:t}=(0,d.useDispatch)(Bn),n=(0,te.useViewportMatch)("medium","<"),{setCanvasMode:a,setEditorCanvasContainerView:r}=Je((0,d.useDispatch)(Bn)),o=(0,d.useSelect)((e=>"style-book"===Je(e(Bn)).getEditorCanvasContainerView()),[]),i=(0,l.useCallback)((async()=>Promise.all([a("edit"),e("edit-site/global-styles")])),[a,e]),s=(0,l.useCallback)((async()=>{await i(),r("style-book"),t(!1)}),[i,r,t]),c=(0,l.useCallback)((async()=>{await i(),r("global-styles-revisions")}),[i,r]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Gn,{title:(0,E.__)("Styles"),description:(0,E.__)("Choose a different style combination for the theme styles."),content:(0,l.createElement)(Ha,null),footer:(0,l.createElement)(Ga,{onClickRevisions:c}),actions:(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)(Hn,{icon:Zn,label:(0,E.__)("Style Book"),onClick:()=>r(o?void 0:"style-book"),isPressed:o}),(0,l.createElement)(Hn,{icon:Yn,label:(0,E.__)("Edit styles"),onClick:async()=>await i()}))}),o&&!n&&(0,l.createElement)(Da,{enableResizing:!1,isSelected:()=>!1,onClick:s,onSelect:s,showCloseButton:!1,showTabs:!1}))}function $a(){const{location:e}=(0,y.__experimentalUseNavigator)(),{setEditorCanvasContainerView:t}=Je((0,d.useDispatch)(Bn));return(0,l.useEffect)((()=>{"/"===e?.path&&t(void 0)}),[t,e?.path]),(0,l.createElement)(Gn,{isRoot:!0,title:(0,E.__)("Design"),description:(0,E.__)("Customize the appearance of your website using the block editor."),content:(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(y.__experimentalNavigatorButton,{as:jn,path:"/navigation",withChevron:!0,icon:Ln},(0,E.__)("Navigation")),(0,l.createElement)(Oa,{withChevron:!0,icon:Vn},(0,E.__)("Styles")),(0,l.createElement)(y.__experimentalNavigatorButton,{as:jn,path:"/page",withChevron:!0,icon:Fn},(0,E.__)("Pages")),(0,l.createElement)(y.__experimentalNavigatorButton,{as:jn,path:"/wp_template",withChevron:!0,icon:zn},(0,E.__)("Templates")),(0,l.createElement)(y.__experimentalNavigatorButton,{as:jn,path:"/library",withChevron:!0,icon:On},(0,E.__)("Library")))})}var ja=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var Wa=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var Za=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const qa="header",Ya="wp_template_part",Ka="pattern",Xa="wp_template_part",Qa="wp_block",Ja="custom-patterns",er=["core","pattern-directory/core","pattern-directory/featured","pattern-directory/theme"],tr="fully",nr="unsynced",ar=(e,t,n)=>t===n.findIndex((t=>e.name===t.name));function rr({closeModal:e,onCreate:t,onError:n}){const[a,r]=(0,l.useState)(""),[o,i]=(0,l.useState)(tr),[s,c]=(0,l.useState)(!1),{createErrorNotice:u}=(0,d.useDispatch)(fe.store),{saveEntityRecord:m}=(0,d.useDispatch)(_.store);return(0,l.createElement)(y.Modal,{title:(0,E.__)("Create pattern"),onRequestClose:e,overlayClassName:"edit-site-create-pattern-modal"},(0,l.createElement)("p",null,(0,E.__)("Turn this block into a pattern to reuse later")),(0,l.createElement)("form",{onSubmit:async e=>{e.preventDefault(),a&&(c(!0),await async function(){if(a)try{const e=await m("postType","wp_block",{title:a||(0,E.__)("Untitled Pattern"),content:"",status:"publish",meta:{sync_status:o}},{throwOnError:!0});t({pattern:e,categoryId:Ja})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the pattern.");u(t,{type:"snackbar"}),n()}else u((0,E.__)("Please enter a pattern name."),{type:"snackbar"})}())}},(0,l.createElement)(y.__experimentalVStack,{spacing:"4"},(0,l.createElement)(y.TextControl,{className:"edit-site-create-pattern-modal__input",label:(0,E.__)("Name"),onChange:r,placeholder:(0,E.__)("My pattern"),required:!0,value:a,__nextHasNoMarginBottom:!0}),(0,l.createElement)(y.ToggleControl,{label:(0,E.__)("Synced"),onChange:()=>{i(o===tr?nr:tr)},help:o===tr?(0,E.__)("Content is synced"):(0,E.__)("Content is not synced"),checked:o===tr}),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",disabled:!a,isBusy:s},(0,E.__)("Create"))))))}function or({closeModal:e,blocks:t=[],onCreate:n,onError:a}){const{createErrorNotice:r}=(0,d.useDispatch)(fe.store),{saveEntityRecord:o}=(0,d.useDispatch)(_.store),i=(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_template_part",{per_page:-1})),[]),[s,u]=(0,l.useState)(""),[m,p]=(0,l.useState)("uncategorized"),[h,v]=(0,l.useState)(!1),f=(0,te.useInstanceId)(or),w=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]);async function S(){if(s)try{const e=((e,t)=>{const n=e.toLowerCase(),a=t.map((e=>e.title.rendered.toLowerCase()));if(!a.includes(n))return e;let r=2;for(;a.includes(`${n} ${r}`);)r++;return`${e} ${r}`})(s,i),a=(e=>(0,ye.kebabCase)(e).replace(/[^\w-]+/g,"")||"wp-custom-part")(e),r=await o("postType","wp_template_part",{slug:a,title:e,content:(0,c.serialize)(t),area:m},{throwOnError:!0});await n(r)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template part.");r(t,{type:"snackbar"}),a?.()}else r((0,E.__)("Please enter a title."),{type:"snackbar"})}return(0,l.createElement)(y.Modal,{title:(0,E.__)("Create template part"),onRequestClose:e,overlayClassName:"edit-site-create-template-part-modal"},(0,l.createElement)("form",{onSubmit:async e=>{e.preventDefault(),s&&(v(!0),await S())}},(0,l.createElement)(y.__experimentalVStack,{spacing:"4"},(0,l.createElement)(y.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:s,onChange:u,required:!0}),(0,l.createElement)(y.BaseControl,{label:(0,E.__)("Area"),id:`edit-site-create-template-part-modal__area-selection-${f}`,className:"edit-site-create-template-part-modal__area-base-control"},(0,l.createElement)(y.__experimentalRadioGroup,{label:(0,E.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:`edit-site-create-template-part-modal__area-selection-${f}`,onChange:p,checked:m},w.map((({icon:e,label:t,area:n,description:a})=>(0,l.createElement)(y.__experimentalRadio,{key:t,value:n,className:"edit-site-create-template-part-modal__area-radio"},(0,l.createElement)(y.Flex,{align:"start",justify:"start"},(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(y.Icon,{icon:e})),(0,l.createElement)(y.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},t,(0,l.createElement)("div",null,a)),(0,l.createElement)(y.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},m===n&&(0,l.createElement)(y.Icon,{icon:b})))))))),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",disabled:!s,isBusy:h},(0,E.__)("Create"))))))}const{useHistory:ir}=Je(ct.privateApis);function sr(){const e=ir(),[t,n]=(0,l.useState)(!1),[a,r]=(0,l.useState)(!1);function o(){n(!1),r(!1)}return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.DropdownMenu,{controls:[{icon:Wa,onClick:()=>r(!0),title:(0,E.__)("Create template part")},{icon:ja,onClick:()=>n(!0),title:(0,E.__)("Create pattern")}],toggleProps:{as:Hn},icon:Za,label:(0,E.__)("Create pattern")}),t&&(0,l.createElement)(rr,{closeModal:()=>n(!1),onCreate:function({pattern:t,categoryId:a}){n(!1),e.push({postId:t.id,postType:"wp_block",categoryType:"wp_block",categoryId:a,canvas:"edit"})},onError:o}),a&&(0,l.createElement)(or,{closeModal:()=>r(!1),blocks:[],onCreate:function(t){r(!1),e.push({postId:t.id,postType:"wp_template_part",canvas:"edit"})},onError:o}))}function lr({count:e,icon:t,id:n,isActive:a,label:r,type:o}){const i=_t({path:"/library",categoryType:o,categoryId:n},{backPath:"/library"});if(e)return(0,l.createElement)(jn,{...i,icon:t,suffix:(0,l.createElement)("span",null,e),"aria-current":a?"true":void 0},r)}function cr(){const e=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=Je(e(Bn)),a=n();return null!==(t=a.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:a.__experimentalBlockPatternCategories}));return[...e||[],...(0,d.useSelect)((e=>e(_.store).getBlockPatternCategories()))||[]]}(),t=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=Je(e(Bn));return null!==(t=n().__experimentalAdditionalBlockPatterns)&&void 0!==t?t:n().__experimentalBlockPatterns})),t=(0,d.useSelect)((e=>e(_.store).getBlockPatterns()));return(0,l.useMemo)((()=>[...e||[],...t||[]].filter((e=>!er.includes(e.source))).filter(ar)),[e,t])}(),n=(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_block",{per_page:-1}))),a=(0,l.useMemo)((()=>{const a={},r=[];return e.forEach((e=>{a[e.name]||(a[e.name]={...e,count:0})})),t.forEach((e=>{e.categories?.forEach((e=>{a[e]&&(a[e].count+=1)}))})),e.forEach((e=>{a[e.name].count&&r.push(a[e.name])})),n?.length&&r.push({count:n.length||0,name:"custom-patterns",label:(0,E.__)("Custom patterns")}),r}),[e,t,n]);return{patternCategories:a,hasPatterns:!!a.length}}const ur={header:(0,E.__)("Headers"),footer:(0,E.__)("Footers"),sidebar:(0,E.__)("Sidebar"),uncategorized:(0,E.__)("Uncategorized")};function dr(){const e=(0,te.useViewportMatch)("medium","<"),{categoryType:t,categoryId:n}=(0,ut.getQueryArgs)(window.location.href),a=n||qa,r=t||Ya,{templatePartAreas:o,hasTemplateParts:i,isLoading:s}=function(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType","wp_template_part",{per_page:-1});return{hasTemplateParts:!!e&&!!e.length,isLoading:t,templatePartAreas:(n=e,(n||[]).reduce(((e,t)=>(e[e[t.area]?t.area:"uncategorized"].push(t),e)),{header:[],footer:[],sidebar:[],uncategorized:[]}))};var n}(),{patternCategories:c,hasPatterns:u}=cr(),m=(0,d.useSelect)((e=>!!e(Bn).getSettings().supportsTemplatePartsMode),[]);return(0,l.createElement)(Gn,{isRoot:m,title:(0,E.__)("Library"),description:(0,E.__)("Manage what patterns are available when editing your site."),actions:(0,l.createElement)(sr,null),footer:(0,l.createElement)(y.__experimentalItemGroup,null,!e&&(0,l.createElement)(jn,{as:"a",href:"edit.php?post_type=wp_block",withChevron:!0},(0,E.__)("Manage all custom patterns"))),content:(0,l.createElement)(l.Fragment,null,s&&(0,E.__)("Loading library"),!s&&(0,l.createElement)(l.Fragment,null,!i&&!u&&(0,l.createElement)(y.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-library__group"},(0,l.createElement)(y.__experimentalItem,null,(0,E.__)("No template parts or patterns found"))),i&&(0,l.createElement)(y.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-library__group"},Object.entries(o).map((([e,t])=>(0,l.createElement)(lr,{key:e,count:t.length,icon:(0,g.getTemplatePartIcon)(e),label:ur[e],id:e,type:"wp_template_part",isActive:a===e&&"wp_template_part"===r})))),u&&(0,l.createElement)(y.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-library__group"},c.map((e=>(0,l.createElement)(lr,{key:e.name,count:e.count,label:e.label,icon:ja,id:e.name,type:"pattern",isActive:a===`${e.name}`&&"pattern"===r}))))))})}var mr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));var pr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));var _r=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));var gr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));var hr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));var vr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"}));var yr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"}));var Er=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var fr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"}));var br=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"}));var wr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));var Sr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var kr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));function Cr(e=""){const[t,n]=(0,l.useState)(e),[a,r]=(0,l.useState)(e),o=(0,te.useDebounce)(r,250);return(0,l.useEffect)((()=>{a!==t&&o(t)}),[a,t]),[t,n,a]}var xr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const Tr=()=>(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_template",{per_page:-1})),[]),Nr=()=>(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplateTypes()),[]),Pr=()=>{const e=(0,d.useSelect)((e=>e(_.store).getPostTypes({per_page:-1})),[]);return(0,l.useMemo)((()=>{const t=["attachment"];return e?.filter((({viewable:e,slug:n})=>e&&!t.includes(n)))}),[e])};function Mr(e){const t=(0,l.useMemo)((()=>e?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{})));return(0,l.useCallback)((({labels:e,slug:n})=>{const a=e.singular_name.toLowerCase();return t[a]>1&&a!==n}),[t])}function Ir(){const e=Pr(),t=(0,l.useMemo)((()=>e?.filter((e=>e.has_archive))),[e]),n=Tr(),a=Mr(t);return(0,l.useMemo)((()=>t?.filter((e=>!(n||[]).some((t=>t.slug==="archive-"+e.slug)))).map((e=>{let t;return t=a(e)?(0,E.sprintf)((0,E.__)("Archive: %1$s (%2$s)"),e.labels.singular_name,e.slug):(0,E.sprintf)((0,E.__)("Archive: %s"),e.labels.singular_name),{slug:"archive-"+e.slug,description:(0,E.sprintf)((0,E.__)("Displays an archive with the latest posts of type: %s."),e.labels.singular_name),title:t,icon:e.icon?.startsWith("dashicons-")?e.icon.slice(10):gr,templatePrefix:"archive"}}))||[]),[t,n,a])}const Br=e=>{const t=(()=>{const e=(0,d.useSelect)((e=>e(_.store).getTaxonomies({per_page:-1})),[]);return(0,l.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))),[e])})(),n=Tr(),a=Nr(),r=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return["category","post_tag"].includes(t)||(n=`taxonomy-${n}`),"post_tag"===t&&(n="tag"),e[t]=n,e}),{})),[t]),o=t?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{}),i=Lr("taxonomy",r),s=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c}=n,u=r[l],d=a?.find((({slug:e})=>e===u)),m=s?.includes(u),p=((e,t)=>{if(["category","post_tag"].includes(t))return!1;const n=e.singular_name.toLowerCase();return o[n]>1&&n!==t})(c,l);let _=c.singular_name;p&&(_=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),c.singular_name,l));const g=d?{...d,templatePrefix:r[l]}:{slug:u,title:_,description:(0,E.sprintf)((0,E.__)("Displays taxonomy: %s."),c.singular_name),icon:br,templatePrefix:r[l]},h=i?.[l]?.hasEntities;return h&&(g.onClick=t=>{e({type:"taxonomy",slug:l,config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"count",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${r[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:r[l]}}},labels:c,hasGeneralTemplate:m,template:t})}),m&&!h||t.push(g),t}),[]);return(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let a="taxonomiesMenuItems";return["category","tag"].includes(n)&&(a="defaultTaxonomiesMenuItems"),e[a].push(t),e}),{defaultTaxonomiesMenuItems:[],taxonomiesMenuItems:[]})),[c])},Rr={user:"author"},Dr={user:{who:"authors"}};const Ar=(e,t,n={})=>{const a=(e=>{const t=Tr();return(0,l.useMemo)((()=>Object.entries(e||{}).reduce(((e,[n,a])=>{const r=(t||[]).reduce(((e,t)=>{const n=`${a}-`;return t.slug.startsWith(n)&&e.push(t.slug.substring(n.length)),e}),[]);return r.length&&(e[n]=r),e}),{})),[e,t])})(t);return(0,d.useSelect)((t=>Object.entries(a||{}).reduce(((a,[r,o])=>{const i=t(_.store).getEntityRecords(e,r,{_fields:"id",context:"view",slug:o,...n[r]});return i?.length&&(a[r]=i),a}),{})),[a])},Lr=(e,t,n={})=>{const a=Ar(e,t,n);return(0,d.useSelect)((r=>Object.keys(t||{}).reduce(((t,o)=>{const i=a?.[o]?.map((({id:e})=>e))||[];return t[o]={hasEntities:!!r(_.store).getEntityRecords(e,o,{per_page:1,_fields:"id",context:"view",exclude:i,...n[o]})?.length,existingEntitiesIds:i},t}),{})),[t,a])},Vr=[];function Fr({suggestion:e,search:t,onSelect:n,entityForSuggestions:a,composite:r}){const o="edit-site-custom-template-modal__suggestions_list__list-item";return(0,l.createElement)(y.__unstableCompositeItem,{role:"option",as:y.Button,...r,className:o,onClick:()=>n(a.config.getSpecificTemplate(e))},(0,l.createElement)(y.__experimentalText,{size:"body",lineHeight:1.53846153846,weight:500,className:`${o}__title`},(0,l.createElement)(y.TextHighlight,{text:(0,Tt.decodeEntities)(e.name),highlight:t})),e.link&&(0,l.createElement)(y.__experimentalText,{size:"body",lineHeight:1.53846153846,className:`${o}__info`},e.link))}function zr(e,t){const{config:n}=e,a=(0,l.useMemo)((()=>({order:"asc",context:"view",search:t,per_page:t?20:10,...n.queryArgs(t)})),[t,n]),{records:r,hasResolved:o}=(0,_.useEntityRecords)(e.type,e.slug,a),[i,s]=(0,l.useState)(Vr);return(0,l.useEffect)((()=>{if(!o)return;let e=Vr;var t,a;r?.length&&(e=r,n.recordNamePath&&(t=e,a=n.recordNamePath,e=(t||[]).map((e=>({...e,name:(0,Tt.decodeEntities)((0,ye.get)(e,a))}))))),s(e)}),[r,o]),i}function Or({entityForSuggestions:e,onSelect:t}){const n=(0,y.__unstableUseCompositeState)({orientation:"vertical"}),[a,r,o]=Cr(),i=zr(e,o),{labels:s}=e,[c,u]=(0,l.useState)(!1);return!c&&i?.length>9&&u(!0),(0,l.createElement)(l.Fragment,null,c&&(0,l.createElement)(y.SearchControl,{__nextHasNoMarginBottom:!0,onChange:r,value:a,label:s.search_items,placeholder:s.search_items}),!!i?.length&&(0,l.createElement)(y.__unstableComposite,{...n,role:"listbox",className:"edit-site-custom-template-modal__suggestions_list","aria-label":(0,E.__)("Suggestions list")},i.map((a=>(0,l.createElement)(Fr,{key:a.slug,suggestion:a,search:o,onSelect:t,entityForSuggestions:e,composite:n})))),o&&!i?.length&&(0,l.createElement)(y.__experimentalText,{as:"p",className:"edit-site-custom-template-modal__no-results"},s.not_found))}var Hr=function({onSelect:e,entityForSuggestions:t}){const[n,a]=(0,l.useState)(t.hasGeneralTemplate);return(0,l.createElement)(y.__experimentalVStack,{spacing:4,className:"edit-site-custom-template-modal__contents-wrapper",alignment:"left"},!n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalText,{as:"p"},(0,E.__)("Select whether to create a single template for all items or a specific one.")),(0,l.createElement)(y.Flex,{className:"edit-site-custom-template-modal__contents",gap:"4",align:"initial"},(0,l.createElement)(y.FlexItem,{isBlock:!0,as:y.Button,onClick:()=>{const{slug:n,title:a,description:r,templatePrefix:o}=t.template;e({slug:n,title:a,description:r,templatePrefix:o})}},(0,l.createElement)(y.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.all_items),(0,l.createElement)(y.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For all items"))),(0,l.createElement)(y.FlexItem,{isBlock:!0,as:y.Button,onClick:()=>{a(!0)}},(0,l.createElement)(y.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.singular_name),(0,l.createElement)(y.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For a specific item"))))),n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalText,{as:"p"},(0,E.__)("This template will be used only for the specific item chosen.")),(0,l.createElement)(Or,{entityForSuggestions:t,onSelect:e})))};var Gr=function({onClose:e,createTemplate:t}){const[n,a]=(0,l.useState)(""),r=(0,E.__)("Custom Template"),[o,i]=(0,l.useState)(!1);return(0,l.createElement)("form",{onSubmit:async function(e){if(e.preventDefault(),!o){i(!0);try{await t({slug:"wp-custom-template-"+(0,ye.kebabCase)(n||r),title:n||r},!1)}finally{i(!1)}}}},(0,l.createElement)(y.__experimentalVStack,{spacing:6},(0,l.createElement)(y.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:a,placeholder:r,disabled:o,help:(0,E.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(y.__experimentalHStack,{className:"edit-site-custom-generic-template__modal-actions",justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",isBusy:o,"aria-disabled":o},(0,E.__)("Create")))))};function Ur(){const e="edit-site-template-actions-loading-screen-modal";return(0,l.createElement)(y.Modal,{isFullScreen:!0,isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:()=>{},__experimentalHideHeader:!0,className:e},(0,l.createElement)("div",{className:`${e}__content`},(0,l.createElement)(y.Spinner,null)))}const{useHistory:$r}=Je(ct.privateApis),jr=["front-page","home","single","page","index","archive","author","category","date","tag","search","404"],Wr={"front-page":mr,home:pr,single:_r,page:Fn,archive:gr,search:hr,404:vr,index:yr,category:Er,author:fr,taxonomy:br,date:wr,tag:Sr,attachment:kr};function Zr({title:e,direction:t,className:n,description:a,icon:r,onClick:o,children:i}){return(0,l.createElement)(y.Button,{className:n,onClick:o,label:a,showTooltip:!!a},(0,l.createElement)(y.Flex,{as:"span",spacing:2,align:"center",justify:"center",style:{width:"100%"},direction:t},(0,l.createElement)("div",{className:"edit-site-add-new-template__template-icon"},(0,l.createElement)(y.Icon,{icon:r})),(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-add-new-template__template-name",alignment:"center",spacing:0},(0,l.createElement)(y.__experimentalText,{weight:500,lineHeight:1.53846153846},e),i)))}const qr=1,Yr=2,Kr=3;function Xr({postType:e,toggleProps:t,showIcon:n=!0}){const[a,r]=(0,l.useState)(!1),[o,i]=(0,l.useState)(qr),[s,c]=(0,l.useState)({}),[u,m]=(0,l.useState)(!1),p=$r(),{saveEntityRecord:g}=(0,d.useDispatch)(_.store),{createErrorNotice:h,createSuccessNotice:f}=(0,d.useDispatch)(fe.store),{setTemplate:b}=Je((0,d.useDispatch)(Bn)),{homeUrl:w}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home}}),[]),S={"front-page":w,date:(0,E.sprintf)((0,E.__)("E.g. %s"),w+"/"+(new Date).getFullYear())};async function k(e,t=!0){if(!u){m(!0);try{const{title:n,description:a,slug:r}=e,o=await g("postType","wp_template",{description:a,slug:r.toString(),status:"publish",title:n,is_wp_suggestion:t},{throwOnError:!0});b(o.id,o.slug),p.push({postId:o.id,postType:o.type,canvas:"edit"}),f((0,E.sprintf)((0,E.__)('"%s" successfully created.'),(0,Tt.decodeEntities)(o.title?.rendered||n)),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template.");h(t,{type:"snackbar"})}finally{m(!1)}}}const C=()=>{r(!1),i(qr)},x=function(e,t){const n=Tr(),a=Nr(),r=(n||[]).map((({slug:e})=>e)),o=(a||[]).filter((e=>jr.includes(e.slug)&&!r.includes(e.slug))),i=n=>{t?.(),e(n)},s=[...o],{defaultTaxonomiesMenuItems:c,taxonomiesMenuItems:u}=Br(i),{defaultPostTypesMenuItems:d,postTypesMenuItems:m}=(e=>{const t=Pr(),n=Tr(),a=Nr(),r=Mr(t),o=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return"page"!==t&&(n=`single-${n}`),e[t]=n,e}),{})),[t]),i=Lr("postType",o),s=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c,icon:u}=n,d=o[l],m=a?.find((({slug:e})=>e===d)),p=s?.includes(d),_=r(n);let g=(0,E.sprintf)((0,E.__)("Single item: %s"),c.singular_name);_&&(g=(0,E.sprintf)((0,E.__)("Single item: %1$s (%2$s)"),c.singular_name,l));const h=m?{...m,templatePrefix:o[l]}:{slug:d,title:g,description:(0,E.sprintf)((0,E.__)("Displays a single item: %s."),c.singular_name),icon:u?.startsWith("dashicons-")?u.slice(10):xr,templatePrefix:o[l]},v=i?.[l]?.hasEntities;return v&&(h.onClick=t=>{e({type:"postType",slug:l,config:{recordNamePath:"title.rendered",queryArgs:({search:e})=>({_fields:"id,title,slug,link",orderBy:e?"relevance":"modified",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${o[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:o[l]}}},labels:c,hasGeneralTemplate:p,template:t})}),p&&!v||t.push(h),t}),[]),u=(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let a="postTypesMenuItems";return"page"===n&&(a="defaultPostTypesMenuItems"),e[a].push(t),e}),{defaultPostTypesMenuItems:[],postTypesMenuItems:[]})),[c]);return u})(i),p=function(e){const t=Tr(),n=Nr(),a=Lr("root",Rr,Dr);let r=n?.find((({slug:e})=>"author"===e));r||(r={description:(0,E.__)("Displays latest posts written by a single author."),slug:"author",title:"Author"});const o=!!t?.find((({slug:e})=>"author"===e));if(a.user?.hasEntities&&(r={...r,templatePrefix:"author"},r.onClick=t=>{e({type:"root",slug:"user",config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"registered_date",exclude:a.user.existingEntitiesIds,who:"authors"}),getSpecificTemplate:e=>{const t=`author-${e.slug}`;return{title:t,slug:t,templatePrefix:"author"}}},labels:{singular_name:(0,E.__)("Author"),search_items:(0,E.__)("Search Authors"),not_found:(0,E.__)("No authors found."),all_items:(0,E.__)("All Authors")},hasGeneralTemplate:o,template:t})}),!o||a.user?.hasEntities)return r}(i);[...c,...d,p].forEach((e=>{if(!e)return;const t=s.findIndex((t=>t.slug===e.slug));t>-1?s[t]=e:s.push(e)})),s?.sort(((e,t)=>jr.indexOf(e.slug)-jr.indexOf(t.slug)));return[...s,...Ir(),...m,...u]}(c,(()=>i(Yr)));if(!x.length)return null;const{as:T=y.Button,...N}=null!=t?t:{};let P=(0,E.__)("Add template");return o===Yr?P=(0,E.sprintf)((0,E.__)("Add template: %s"),s.labels.singular_name):o===Kr&&(P=(0,E.__)("Create custom template")),(0,l.createElement)(l.Fragment,null,u&&(0,l.createElement)(Ur,null),(0,l.createElement)(T,{...N,onClick:()=>r(!0),icon:n?Za:null,label:e.labels.add_new_item},n?null:e.labels.add_new_item),a&&(0,l.createElement)(y.Modal,{title:P,className:v()("edit-site-add-new-template__modal",{"edit-site-add-new-template__modal_template_list":o===qr,"edit-site-custom-template-modal":o===Yr}),onRequestClose:C,overlayClassName:o===Kr?"edit-site-custom-generic-template__modal":void 0},o===qr&&(0,l.createElement)(y.__experimentalGrid,{columns:3,gap:4,align:"flex-start",justify:"center",className:"edit-site-add-new-template__template-list__contents"},(0,l.createElement)(y.Flex,{className:"edit-site-add-new-template__template-list__prompt"},(0,E.__)("Select what the new template should apply to:")),x.map((e=>{const{title:t,slug:n,onClick:a}=e;return(0,l.createElement)(Zr,{key:n,title:t,direction:"column",className:"edit-site-add-new-template__template-button",description:S[n],icon:Wr[n]||zn,onClick:()=>a?a(e):k(e)})})),(0,l.createElement)(Zr,{title:(0,E.__)("Custom template"),direction:"row",className:"edit-site-add-new-template__custom-template-button",icon:Yn,onClick:()=>i(Kr)},(0,l.createElement)(y.__experimentalText,{lineHeight:1.53846153846},(0,E.__)("A custom template can be manually applied to any post or page.")))),o===Yr&&(0,l.createElement)(Hr,{onSelect:k,entityForSuggestions:s}),o===Kr&&(0,l.createElement)(Gr,{onClose:C,createTemplate:k})))}function Qr({templateType:e="wp_template",...t}){const n=(0,d.useSelect)((t=>t(_.store).getPostType(e)),[e]);return n&&"wp_template"===e?(0,l.createElement)(Xr,{...t,postType:n}):null}const Jr={wp_template:{labels:{title:(0,E.__)("Templates"),loading:(0,E.__)("Loading templates"),notFound:(0,E.__)("No templates found"),manage:(0,E.__)("Manage all templates"),description:(0,E.__)("Express the layout of your site with templates.")}},wp_template_part:{labels:{title:(0,E.__)("Library"),loading:(0,E.__)("Loading library"),notFound:(0,E.__)("No patterns found"),manage:(0,E.__)("Manage all template parts"),reusableBlocks:(0,E.__)("Manage patterns"),description:(0,E.__)("Template Parts are small pieces of a layout that can be reused across multiple templates and always appear the same way. Common template parts include the site header, footer, or sidebar.")},sortCallback:e=>{const t=e.reduce(((e,t)=>(e[e[t.area]?t.area:"rest"].push(t),e)),{header:[],footer:[],sidebar:[],rest:[]});return[...t.header,...t.footer,...t.sidebar,...t.rest]}}},eo=({postType:e,postId:t,...n})=>{const a=_t({postType:e,postId:t});return(0,l.createElement)(jn,{...a,...n})};function to(){const{params:{postType:e}}=(0,y.__experimentalUseNavigator)(),t=(0,te.useViewportMatch)("medium","<"),n=(0,d.useSelect)((e=>!!e(Bn).getSettings().supportsTemplatePartsMode),[]),{records:a,isResolving:r}=(0,_.useEntityRecords)("postType",e,{per_page:-1});let o=a?[...a]:[];o.sort(((e,t)=>e.title.rendered.localeCompare(t.title.rendered))),Jr[e].sortCallback&&(o=Jr[e].sortCallback(o));const i=_t({path:"/"+e+"/all"}),s=!t&&!n,c="wp_template"===e;return(0,l.createElement)(Gn,{isRoot:n,title:Jr[e].labels.title,description:Jr[e].labels.description,actions:s&&(0,l.createElement)(Qr,{templateType:e,toggleProps:{as:Hn}}),content:(0,l.createElement)(l.Fragment,null,r&&Jr[e].labels.loading,!r&&(0,l.createElement)(y.__experimentalItemGroup,null,!a?.length&&(0,l.createElement)(y.__experimentalItem,null,Jr[e].labels.notFound),o.map((t=>(0,l.createElement)(eo,{postType:e,postId:t.id,key:t.id,withChevron:!0,icon:!c&&(0,g.getTemplatePartIcon)(t.area)},(0,Tt.decodeEntities)(t.title?.rendered||t.slug)))))),footer:!t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(jn,{withChevron:!0,...i},Jr[e].labels.manage),!!Jr[e].labels.reusableBlocks&&(0,l.createElement)(jn,{as:"a",href:"edit.php?post_type=wp_block"},Jr[e].labels.reusableBlocks))})}function no(e,t){const{record:n,title:a,description:r,isLoaded:o,icon:i}=(0,d.useSelect)((n=>{const{getEditedPostType:a,getEditedPostId:r}=n(Bn),{getEditedEntityRecord:o,hasFinishedResolution:i}=n(_.store),{__experimentalGetTemplateInfo:s}=n(g.store),l=null!=e?e:a(),c=null!=t?t:r(),u=o("postType",l,c),d=c&&i("getEditedEntityRecord",["postType",l,c]),m=s(u);return{record:u,title:m.title,description:m.description,isLoaded:d,icon:m.icon}}),[e,t]);return{isLoaded:o,icon:i,record:n,getTitle:()=>a?(0,Tt.decodeEntities)(a):null,getDescription:()=>r?(0,Tt.decodeEntities)(r):null}}var ao=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));var ro=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));const oo=["wp_template","wp_template_part"];function io(e,t){return(0,d.useSelect)((n=>{const{getTheme:a,getPlugin:r,getEntityRecord:o,getMedia:i,getUser:s,getEditedEntityRecord:l}=n(_.store),c=l("postType",e,t);if(oo.includes(c.type)){if(c.has_theme_file&&("theme"===c.origin||!c.origin&&["theme","custom"].includes(c.source)))return{type:"theme",icon:zn,text:a(c.theme)?.name?.rendered||c.theme,isCustomized:"custom"===c.source};if(c.has_theme_file&&"plugin"===c.origin)return{type:"plugin",icon:ao,text:r(c.theme)?.name||c.theme,isCustomized:"custom"===c.source};if(!c.has_theme_file&&"custom"===c.source&&!c.author){const e=o("root","__unstableBase");return{type:"site",icon:ro,imageUrl:e?.site_logo?i(e.site_logo)?.source_url:void 0,text:e?.name,isCustomized:!1}}}const u=s(c.author);return{type:"user",icon:fr,imageUrl:u?.avatar_urls?.[48],text:u?.nickname,isCustomized:!1}}),[e,t])}function so({imageUrl:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:v()("edit-site-list-added-by__avatar",{"is-loaded":t})},(0,l.createElement)("img",{onLoad:()=>n(!0),alt:"",src:e}))}function lo({postType:e,postId:t}){const{text:n,icon:a,imageUrl:r,isCustomized:o}=io(e,t);return(0,l.createElement)(y.__experimentalHStack,{alignment:"left"},r?(0,l.createElement)(so,{imageUrl:r}):(0,l.createElement)("div",{className:"edit-site-list-added-by__icon"},(0,l.createElement)(y.Icon,{icon:a})),(0,l.createElement)("span",null,n,o&&(0,l.createElement)("span",{className:"edit-site-list-added-by__customized-info"},"wp_template"===e?(0,E._x)("Customized","template"):(0,E._x)("Customized","template part"))))}function co(e){return!!e&&("custom"===e.source&&!e.has_theme_file)}function uo({template:e,onClose:t}){const[n,a]=(0,l.useState)((()=>e.title.rendered)),[r,o]=(0,l.useState)(!1),{editEntityRecord:i,saveEditedEntityRecord:s}=(0,d.useDispatch)(_.store),{createSuccessNotice:c,createErrorNotice:u}=(0,d.useDispatch)(fe.store);if("wp_template"===e.type&&!e.is_custom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuItem,{onClick:()=>{o(!0),a(e.title.rendered)}},(0,E.__)("Rename")),r&&(0,l.createElement)(y.Modal,{title:(0,E.__)("Rename"),onRequestClose:()=>{o(!1)},overlayClassName:"edit-site-list__rename-modal"},(0,l.createElement)("form",{onSubmit:async function(r){r.preventDefault();try{await i("postType",e.type,e.id,{title:n}),a(""),o(!1),t(),await s("postType",e.type,e.id,{throwOnError:!0}),c((0,E.__)("Entity renamed."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while renaming the entity.");u(t,{type:"snackbar"})}}},(0,l.createElement)(y.__experimentalVStack,{spacing:"5"},(0,l.createElement)(y.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:a,required:!0}),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>{o(!1)}},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit"},(0,E.__)("Save")))))))}function mo({postType:e,postId:t,className:n,toggleProps:a,onRemove:r}){const o=(0,d.useSelect)((n=>n(_.store).getEntityRecord("postType",e,t)),[e,t]),{removeTemplate:i,revertTemplate:s}=(0,d.useDispatch)(Bn),{saveEditedEntityRecord:c}=(0,d.useDispatch)(_.store),{createSuccessNotice:u,createErrorNotice:m}=(0,d.useDispatch)(fe.store),p=co(o),g=Pt(o);if(!p&&!g)return null;return(0,l.createElement)(y.DropdownMenu,{icon:oe,label:(0,E.__)("Actions"),className:n,toggleProps:a},(({onClose:e})=>(0,l.createElement)(y.MenuGroup,null,p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(uo,{template:o,onClose:e}),(0,l.createElement)(y.MenuItem,{isDestructive:!0,isTertiary:!0,onClick:()=>{i(o),r?.(),e()}},(0,E.__)("Delete"))),g&&(0,l.createElement)(y.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{!async function(){try{await s(o,{allowUndo:!1}),await c("postType",o.type,o.id),u((0,E.sprintf)((0,E.__)('"%s" reverted.'),o.title.rendered),{type:"snackbar",id:"edit-site-template-reverted"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while reverting the entity.");m(t,{type:"snackbar"})}}(),e()}},(0,E.__)("Clear customizations")))))}var po=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function _o({children:e}){return(0,l.createElement)(y.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__label"},e)}function go({label:e,children:t,className:n}){return(0,l.createElement)(y.__experimentalHStack,{key:e,spacing:5,alignment:"left",className:v()("edit-site-sidebar-navigation-details-screen-panel__row",n)},t)}function ho({children:e}){return(0,l.createElement)(y.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__value"},e)}function vo({title:e,children:t,spacing:n}){return(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-sidebar-navigation-details-screen-panel",spacing:n},e&&(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-sidebar-navigation-details-screen-panel__heading",level:2},e),t)}const yo={};function Eo({postId:e,icon:t,title:n}){var a;const r={header:Wa,footer:po},o=_t({postType:"wp_template_part",postId:e});return(0,l.createElement)(jn,{className:"edit-site-sidebar-navigation-screen-template__template-area-button",...o,icon:null!==(a=r[t])&&void 0!==a?a:zn,withChevron:!0},(0,l.createElement)(y.__experimentalTruncate,{limit:20,ellipsizeMode:"tail",numberOfLines:1,className:"edit-site-sidebar-navigation-screen-template__template-area-label-text"},(0,Tt.decodeEntities)(n)))}function fo(){const e=(0,y.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{editEntityRecord:a}=(0,d.useDispatch)(_.store),{allowCommentsOnNewPosts:r,templatePartAreas:o,postsPerPage:i,postsPageTitle:s,postsPageId:c,currentTemplateParts:u}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","site"),{getSettings:a}=Je(e(Bn)),r=e(Bn).getCurrentTemplateTemplateParts(),o=a(),i=n?.page_for_posts?e(_.store).getEntityRecord("postType","page",n?.page_for_posts):yo;return{allowCommentsOnNewPosts:"open"===n?.default_comment_status,postsPageTitle:i?.title?.rendered,postsPageId:i?.id,postsPerPage:n?.posts_per_page,templatePartAreas:o?.defaultTemplatePartAreas,currentTemplateParts:r}}),[t,n]),[m,p]=(0,l.useState)(""),[g,h]=(0,l.useState)(1),[v,f]=(0,l.useState)("");(0,l.useEffect)((()=>{p(r),f(s),h(i)}),[s,r,i]);const b=(0,l.useMemo)((()=>u.length&&o?u.map((({templatePart:e})=>({...o?.find((({area:t})=>t===e?.area)),...e}))):[]),[u,o]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(vo,{spacing:6},c&&(0,l.createElement)(go,null,(0,l.createElement)(y.__experimentalInputControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:(0,E.__)("No Title"),size:"__unstable-large",value:v,onChange:(0,te.debounce)((e=>{f(e),a("postType","page",c,{title:e})}),300),label:(0,E.__)("Blog title"),help:(0,E.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media.")})),(0,l.createElement)(go,null,(0,l.createElement)(y.__experimentalNumberControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:0,value:g,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:e=>{h(e),a("root","site",void 0,{posts_per_page:e})},label:(0,E.__)("Posts per page"),help:(0,E.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.")}))),(0,l.createElement)(vo,{title:(0,E.__)("Discussion"),spacing:3},(0,l.createElement)(go,null,(0,l.createElement)(y.CheckboxControl,{className:"edit-site-sidebar-navigation-screen__input-control",label:"Allow comments on new posts",help:"Changes will apply to new posts only. Individual posts may override these settings.",checked:m,onChange:e=>{p(e),a("root","site",void 0,{default_comment_status:e?"open":null})}}))),(0,l.createElement)(vo,{title:(0,E.__)("Areas"),spacing:3},(0,l.createElement)(y.__experimentalItemGroup,null,b.map((({label:e,icon:t,theme:n,slug:a,title:r})=>(0,l.createElement)(go,{key:a},(0,l.createElement)(Eo,{postId:`${n}//${a}`,title:r?.rendered||e,icon:t})))))))}function bo({lastModifiedDateTime:e}){return(0,l.createElement)(l.Fragment,null,e&&(0,l.createElement)(go,{className:"edit-site-sidebar-navigation-screen-details-footer"},(0,l.createElement)(_o,null,(0,E.__)("Last modified")),(0,l.createElement)(ho,null,(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)(""),(0,Kn.humanTimeDiff)(e)),{time:(0,l.createElement)("time",{dateTime:e})}))))}function wo(){const e=(0,y.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{setCanvasMode:a}=Je((0,d.useDispatch)(Bn)),{title:r,content:o,description:i,footer:s}=function(e,t){const{getDescription:n,getTitle:a,record:r}=no(e,t),o=(0,d.useSelect)((e=>e(_.store).getCurrentTheme()),[]),i=io(e,t),s="theme"===i.type&&r.theme===o?.stylesheet,c=a();let u=n();!u&&i.text&&(u=(0,E.__)("This is a custom template that can be applied manually to any Post or Page."));const m="home"===r?.slug||"index"===r?.slug?(0,l.createElement)(fo,null):null,p=r?.modified?(0,l.createElement)(bo,{lastModifiedDateTime:r.modified}):null;return{title:c,description:(0,l.createElement)(l.Fragment,null,u,i.text&&!s&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(y.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-customized"},(0,E._x)("(Customized)","template")))),content:m,footer:p}}(t,n);return(0,l.createElement)(Gn,{title:r,actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(mo,{postType:t,postId:n,toggleProps:{as:Hn},onRemove:()=>{e.goTo(`/${t}/all`)}}),(0,l.createElement)(Hn,{onClick:()=>a("edit"),label:(0,E.__)("Edit"),icon:qn})),description:i,content:o,footer:s})}const{useLocation:So}=Je(ct.privateApis);function ko(){const{params:{postId:e,postType:t}={}}=So(),{isRequestingSite:n,homepageId:a,url:r}=(0,d.useSelect)((e=>{const{getSite:t,getUnstableBase:n}=e(_.store),a=t(),r=n();return{isRequestingSite:!r,homepageId:"page"===a?.show_on_front?a.page_on_front:null,url:r?.home}}),[]),{setEditedEntity:o,setTemplate:i,setTemplatePart:s,setPage:c,setNavigationMenu:u}=(0,d.useDispatch)(Bn);(0,l.useEffect)((()=>{if(t&&e)switch(t){case"wp_template":i(e);break;case"wp_template_part":s(e);break;case"wp_navigation":u(e);break;case"wp_block":o(t,e);break;default:c({context:{postType:t,postId:e}})}else a?c({context:{postType:"page",postId:a}}):n||c({path:r})}),[r,e,t,a,n,o,c,i,s,u])}var Co=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var xo=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const To={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},{useHistory:No}=Je(ct.privateApis);function Po(e){const t=No(),{block:n}=e,{clientId:a}=n,{moveBlocksDown:r,moveBlocksUp:o,removeBlocks:i}=(0,d.useDispatch)(Ee.store),s=(0,E.sprintf)((0,E.__)("Remove %s"),(0,Ee.BlockTitle)({clientId:a,maximumLength:25})),c=(0,E.sprintf)((0,E.__)("Go to %s"),(0,Ee.BlockTitle)({clientId:a,maximumLength:25})),u=(0,d.useSelect)((e=>{const{getBlockRootClientId:t}=e(Ee.store);return t(a)}),[a]),m=(0,l.useCallback)((e=>{const{attributes:n,name:a}=e;"post-type"===n.kind&&n.id&&n.type&&t&&t.push({postType:n.type,postId:n.id,...dt()&&{wp_theme_preview:mt()}}),"core/page-list-item"===a&&n.id&&t&&t.push({postType:"page",postId:n.id,...dt()&&{wp_theme_preview:mt()}})}),[t]);return(0,l.createElement)(y.DropdownMenu,{icon:oe,label:(0,E.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:To,noIcons:!0,...e},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{icon:Co,onClick:()=>{o([a],u),e()}},(0,E.__)("Move up")),(0,l.createElement)(y.MenuItem,{icon:xo,onClick:()=>{r([a],u),e()}},(0,E.__)("Move down")),n.attributes?.id&&(0,l.createElement)(y.MenuItem,{onClick:()=>{m(n),e()}},c)),(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>{i([a],!1),e()}},s)))))}const{PrivateListView:Mo}=Je(Ee.privateApis),Io=["postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}];function Bo({rootClientId:e}){const{listViewRootClientId:t,isLoading:n}=(0,d.useSelect)((t=>{const{areInnerBlocksControlled:n,getBlockName:a,getBlockCount:r,getBlockOrder:o}=t(Ee.store),{isResolving:i}=t(_.store),s=o(e),l=1===s.length&&"core/page-list"===a(s[0])&&r(s[0])>0,c=i("getEntityRecords",Io);return{listViewRootClientId:l?s[0]:e,isLoading:!n(e)||c}}),[e]),{replaceBlock:a,__unstableMarkNextChangeAsNotPersistent:r}=(0,d.useDispatch)(Ee.store),o=(0,l.useCallback)((e=>{"core/navigation-link"!==e.name||e.attributes.url||(r(),a(e.clientId,(0,c.createBlock)("core/navigation-link",e.attributes)))}),[r,a]);return(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)(Mo,{rootClientId:t,onSelect:o,blockSettingsMenu:Po,showAppender:!1}),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor"},(0,l.createElement)(Ee.BlockTools,null,(0,l.createElement)(Ee.BlockList,null))))}const Ro=()=>{};function Do({navigationMenuId:e}){const{storedSettings:t}=(0,d.useSelect)((e=>{const{getSettings:t}=Je(e(Bn));return{storedSettings:t(!1)}}),[]),n=(0,l.useMemo)((()=>e?[(0,c.createBlock)("core/navigation",{ref:e})]:[]),[e]);return e&&n?.length?(0,l.createElement)(Ee.BlockEditorProvider,{settings:t,value:n,onChange:Ro,onInput:Ro},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__content"},(0,l.createElement)(Bo,{rootClientId:n[0].clientId}))):null}function Ao({id:e}){const[t]=(0,_.useEntityProp)("postType","wp_navigation","title",e);return e?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"12",upperCase:!0},t?.rendered||(0,E.__)("Navigation")),(0,l.createElement)(Do,{navigationMenuId:e})):null}function Lo({id:e}){const[t]=(0,_.useEntityProp)("postType","wp_navigation","title",e),n=_t({postId:e,postType:"wp_navigation"});return e?(0,l.createElement)(jn,{withChevron:!0,...n},t||(0,E.__)("(no title)")):null}function Vo({menus:e}){return(0,l.createElement)(y.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu-list"},e.map((e=>(0,l.createElement)(Lo,{key:e,id:e}))))}function Fo({menus:e}){return e.length?1===e.length?(0,l.createElement)(Ao,{id:e[0]}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"12",upperCase:!0},(0,E.__)("Navigation")),(0,l.createElement)(Vo,{menus:e})):null}function zo(){const{params:e}=(0,y.__experimentalUseNavigator)(),{postType:t,postId:n}=e,{setCanvasMode:a}=Je((0,d.useDispatch)(Bn));ko();const r=function(e,t){const{getDescription:n,getTitle:a,record:r}=no(e,t),o=(0,d.useSelect)((e=>e(_.store).getCurrentTheme()),[]),i=io(e,t),s="theme"===i.type&&r.theme===o?.stylesheet,c=a();let u=n();return!u&&i.text&&(u=(0,E.sprintf)((0,E.__)("This is your %s pattern."),a())),!u&&"wp_block"===e&&r?.title&&(u=(0,E.sprintf)((0,E.__)("This is your %s pattern."),r.title)),{title:c,description:(0,l.createElement)(l.Fragment,null,u,i.text&&!s&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(y.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-customized"},(0,E._x)("(Customized)","pattern")))),footer:r?.modified?(0,l.createElement)(bo,{lastModifiedDateTime:r.modified}):null}}(t,n),o=function(e,t){const{record:n}=no(e,t);if("wp_template_part"!==e)return;const a=function(e,t){if(!e||!t?.length)return[];const n=t=>{if(!t)return[];const a=[];for(const r of t)if(r.name===e&&a.push(r),r?.innerBlocks){const e=n(r.innerBlocks);e.length&&a.push(...e)}return a};return n(t)}("core/navigation",n?.blocks)?.map((e=>e.attributes.ref));return a?.length?(0,l.createElement)(Fo,{menus:a}):void 0}(t,n);return(0,l.createElement)(Gn,{actions:(0,l.createElement)(Hn,{onClick:()=>a("edit"),label:(0,E.__)("Edit"),icon:qn}),backPath:"/library",content:o,...r})}const{useLocation:Oo,useHistory:Ho}=Je(ct.privateApis);function Go(e){var t;let n=null!==(t=e?.path)&&void 0!==t?t:"/";if(e?.postType&&e?.postId)switch(e.postType){case"wp_block":case"wp_template":case"wp_template_part":case"page":n=`/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`;break;default:n=`/navigation/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`}return n}const Uo={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"};function $o({menuTitle:e,onClose:t,onSave:n}){const[a,r]=(0,l.useState)(e),o=a!==e&&a?.trim()?.length>0;return(0,l.createElement)(y.Modal,{title:(0,E.__)("Rename"),onRequestClose:t},(0,l.createElement)("form",{className:"sidebar-navigation__rename-modal-form"},(0,l.createElement)(y.__experimentalVStack,{spacing:"3"},(0,l.createElement)(y.TextControl,{__nextHasNoMarginBottom:!0,value:a,placeholder:(0,E.__)("Navigation title"),onChange:r}),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{disabled:!o,variant:"primary",type:"submit",onClick:e=>{e.preventDefault(),o&&(n({title:a}),t())}},(0,E.__)("Save"))))))}function jo({onClose:e,onConfirm:t}){return(0,l.createElement)(y.Modal,{title:(0,E.__)("Delete"),onRequestClose:e},(0,l.createElement)("form",null,(0,l.createElement)(y.__experimentalVStack,{spacing:"3"},(0,l.createElement)("p",null,(0,E.__)("Are you sure you want to delete this Navigation menu?")),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:e},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",onClick:n=>{n.preventDefault(),t(),e()}},(0,E.__)("Delete"))))))}const Wo={position:"bottom right"};function Zo(e){const{onDelete:t,onSave:n,onDuplicate:a,menuTitle:r}=e,[o,i]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!1),u=()=>{i(!1),c(!1)};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.DropdownMenu,{className:"sidebar-navigation__more-menu",icon:oe,popoverProps:Wo},(({onClose:e})=>(0,l.createElement)("div",null,(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>{i(!0),e()}},(0,E.__)("Rename")),(0,l.createElement)(y.MenuItem,{onClick:()=>{a(),e()}},(0,E.__)("Duplicate"))),(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>{c(!0),e()}},(0,E.__)("Delete")))))),s&&(0,l.createElement)(jo,{onClose:u,onConfirm:t}),o&&(0,l.createElement)($o,{onClose:u,menuTitle:r,onSave:n}))}function qo({navigationMenu:e,handleDelete:t,handleDuplicate:n,handleSave:a}){const r=e?.title?.rendered;return(0,l.createElement)(ni,{actions:(0,l.createElement)(Zo,{menuTitle:(0,Tt.decodeEntities)(r),onDelete:t,onSave:a,onDuplicate:n}),title:(0,Tt.decodeEntities)(r),description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(Do,{navigationMenuId:e?.id}))}const Yo="wp_navigation";function Ko(){const{params:{postId:e}}=(0,y.__experimentalUseNavigator)(),{record:t,isResolving:n}=(0,_.useEntityRecord)("postType",Yo,e),{isSaving:a,isDeleting:r}=(0,d.useSelect)((t=>{const{isSavingEntityRecord:n,isDeletingEntityRecord:a,getEditedEntityRecord:r}=t(_.store);return{isSaving:n("postType",Yo,e),isDeleting:a("postType",Yo,e),getEditedEntityRecord:r}}),[e]),o=n||a||r,i=t?.title?.rendered||t?.slug,{handleSave:s,handleDelete:c,handleDuplicate:u}=ei(),m=()=>c(t),p=e=>s(t,e),g=()=>u(t);return o?(0,l.createElement)(ni,{description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(y.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):o||t?t?.content?.raw?(0,l.createElement)(qo,{navigationMenu:t,handleDelete:m,handleSave:p,handleDuplicate:g}):(0,l.createElement)(ni,{actions:(0,l.createElement)(Zo,{menuTitle:(0,Tt.decodeEntities)(i),onDelete:m,onSave:p,onDuplicate:g}),title:(0,Tt.decodeEntities)(i),description:(0,E.__)("This Navigation Menu is empty.")}):(0,l.createElement)(ni,{description:(0,E.__)("Navigation Menu missing.")})}function Xo(){const{goTo:e}=(0,y.__experimentalUseNavigator)(),{deleteEntityRecord:t}=(0,d.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(fe.store);return async r=>{const o=r?.id;try{await t("postType",Yo,o,{force:!0},{throwOnError:!0}),n((0,E.__)("Deleted Navigation menu"),{type:"snackbar"}),e("/navigation")}catch(e){a((0,E.sprintf)((0,E.__)("Unable to delete Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function Qo(){const{getEditedEntityRecord:e}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(_.store);return{getEditedEntityRecord:t}}),[]),{editEntityRecord:t,saveEditedEntityRecord:n}=(0,d.useDispatch)(_.store),{createSuccessNotice:a,createErrorNotice:r}=(0,d.useDispatch)(fe.store);return async(o,i)=>{if(!i)return;const s=o?.id,l=e("postType","wp_navigation",s);t("postType",Yo,s,i);try{await n("postType",Yo,s,{throwOnError:!0}),a((0,E.__)("Renamed Navigation menu"),{type:"snackbar"})}catch(e){t("postType",Yo,s,l),r((0,E.sprintf)((0,E.__)("Unable to rename Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function Jo(){const{goTo:e}=(0,y.__experimentalUseNavigator)(),{saveEntityRecord:t}=(0,d.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(fe.store);return async r=>{const o=r?.title?.rendered||r?.slug;try{const a=await t("postType",Yo,{title:(0,E.sprintf)((0,E.__)("%s (Copy)"),o),content:r?.content?.raw,status:"publish"},{throwOnError:!0});a&&(n((0,E.__)("Duplicated Navigation menu"),{type:"snackbar"}),e(`/navigation/${Yo}/${a.id}`))}catch(e){a((0,E.sprintf)((0,E.__)("Unable to duplicate Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function ei(){return{handleDelete:Xo(),handleSave:Qo(),handleDuplicate:Jo()}}function ti(){const{records:e,isResolving:t,hasResolved:n}=(0,_.useEntityRecords)("postType","wp_navigation",Uo),a=t&&!n,r=(0,d.useSelect)((e=>e(_.store).getNavigationFallbackId)),o=e?.[0];o||t||!n||r();const{handleSave:i,handleDelete:s,handleDuplicate:c}=ei(),u=!!e?.length;return a?(0,l.createElement)(ni,null,(0,l.createElement)(y.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):a||u?1===e?.length?(0,l.createElement)(qo,{navigationMenu:o,handleDelete:()=>s(o),handleDuplicate:()=>c(o),handleSave:e=>i(o,e)}):(0,l.createElement)(ni,null,(0,l.createElement)(y.__experimentalItemGroup,null,e?.map((({id:e,title:t,status:n},a)=>(0,l.createElement)(ai,{postId:e,key:e,withChevron:!0,icon:Ln},function(e,t,n){return e?.rendered?"publish"===n?(0,Tt.decodeEntities)(e?.rendered):(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),(0,Tt.decodeEntities)(e?.rendered),n):(0,E.sprintf)((0,E.__)("(no title %s)"),t)}(t,a+1,n)))))):(0,l.createElement)(ni,{description:(0,E.__)("No Navigation Menus found.")})}function ni({children:e,actions:t,title:n,description:a}){return(0,l.createElement)(Gn,{title:n||(0,E.__)("Navigation"),actions:t,description:a||(0,E.__)("Manage your Navigation menus."),content:e})}const ai=({postId:e,...t})=>{const n=_t({postId:e,postType:"wp_navigation"});return(0,l.createElement)(jn,{...n,...t})},ri={wp_template:{title:(0,E.__)("All templates"),description:(0,E.__)("Create new templates, or reset any customizations made to the templates supplied by your theme.")},wp_template_part:{title:(0,E.__)("All template parts"),description:(0,E.__)("Create new template parts, or reset any customizations made to the template parts supplied by your theme.")}};function oi(){const{params:{postType:e}}=(0,y.__experimentalUseNavigator)();return(0,l.createElement)(Gn,{title:ri[e].title,description:ri[e].description})}function ii({className:e="edit-site-save-button__button",variant:t="primary",showTooltip:n=!0,defaultLabel:a,icon:r}){const{isDirty:o,isSaving:i,isSaveViewOpen:s}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(_.store),a=t(),{isSaveViewOpened:r}=e(Bn);return{isDirty:a.length>0,isSaving:a.some((e=>n(e.kind,e.name,e.key))),isSaveViewOpen:r()}}),[]),{setIsSaveViewOpened:c}=(0,d.useDispatch)(Bn),u=dt()||o,m=i||!u,p=dt()?i?(0,E.__)("Activating"):m?(0,E.__)("Saved"):o?(0,E.__)("Activate & Save"):(0,E.__)("Activate"):i?(0,E.__)("Saving"):m?(0,E.__)("Saved"):a||(0,E.__)("Save");return(0,l.createElement)(y.Button,{variant:t,className:e,"aria-disabled":m,"aria-expanded":s,isBusy:i,onClick:m?void 0:()=>c(!0),label:p,shortcut:m?void 0:Xn.displayShortcut.primary("s"),showTooltip:n,icon:r},p)}const{useLocation:si}=Je(ct.privateApis),li=[{kind:"postType",name:"wp_navigation"}];function ci(){const{params:e}=si(),{__unstableMarkLastChangeAsPersistent:t}=(0,d.useDispatch)(Ee.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(fe.store),{dirtyCurrentEntity:r,countUnsavedChanges:o,isDirty:i,isSaving:s}=(0,d.useSelect)((t=>{const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:a}=t(_.store),r=n();let o=null;return 1===r.length&&(e.path?.includes("wp_global_styles")?o=r.find((e=>"globalStyles"===e.name)):e.postId&&(o=r.find((t=>t.name===e.postType&&String(t.key)===e.postId)))),{dirtyCurrentEntity:o,isDirty:r.length>0,isSaving:r.some((e=>a(e.kind,e.name,e.key))),countUnsavedChanges:r.length}}),[e.path,e.postType,e.postId]),{editEntityRecord:c,saveEditedEntityRecord:u,__experimentalSaveSpecifiedEntityEdits:m}=(0,d.useDispatch)(_.store),p=s||!i&&!dt();let g=r?(0,E.__)("Save"):(0,E.sprintf)((0,E._n)("Review %d change…","Review %d changes…",o),o);s&&(g=(0,E.__)("Saving"));return(0,l.createElement)(y.__experimentalHStack,{className:"edit-site-save-hub",alignment:"right",spacing:4},r?(0,l.createElement)(y.Button,{variant:"primary",onClick:async()=>{if(!r)return;const{kind:e,name:o,key:i,property:s}=r;try{"root"===r.kind&&"site"===o?await m("root","site",void 0,[s]):(li.some((t=>t.kind===e&&t.name===o))&&c(e,o,i,{status:"publish"}),await u(e,o,i)),t(),n((0,E.__)("Site updated."),{type:"snackbar"})}catch(e){a(`${(0,E.__)("Saving failed.")} ${e}`)}},isBusy:s,disabled:s,"aria-disabled":s,className:"edit-site-save-hub__button"},g):(0,l.createElement)(ii,{className:"edit-site-save-hub__button",variant:p?null:"primary",showTooltip:!1,icon:p&&!s?b:null,defaultLabel:g}))}var ui=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"}));function di({onSave:e,onClose:t}){const[n,a]=(0,l.useState)(!1),[r,o]=(0,l.useState)(""),{saveEntityRecord:i}=(0,d.useDispatch)(_.store),{createErrorNotice:s,createSuccessNotice:c}=(0,d.useDispatch)(fe.store);return(0,l.createElement)(y.Modal,{title:(0,E.__)("Draft a new page"),onRequestClose:t},(0,l.createElement)("form",{onSubmit:async function(t){if(t.preventDefault(),!n){a(!0);try{const t=await i("postType","page",{status:"draft",title:r,slug:(0,ye.kebabCase)(r||(0,E.__)("No title"))},{throwOnError:!0});e(t),c((0,E.sprintf)((0,E.__)('"%s" successfully created.'),t.title?.rendered||r),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the page.");s(t,{type:"snackbar"})}finally{a(!1)}}}},(0,l.createElement)(y.__experimentalVStack,{spacing:3},(0,l.createElement)(y.TextControl,{autoFocus:!0,label:(0,E.__)("Page title"),onChange:o,placeholder:(0,E.__)("No title"),value:r}),(0,l.createElement)(y.__experimentalHStack,{spacing:2,justify:"end"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",isBusy:n,"aria-disabled":n},(0,E.__)("Create draft"))))))}const{useHistory:mi}=Je(ct.privateApis),pi=({postType:e="page",postId:t,...n})=>{const a=_t({postType:e,postId:t});return(0,l.createElement)(jn,{...a,...n})};function _i(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType","page",{status:"any",per_page:-1}),{records:n,isResolving:a}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),r=n?.filter((({slug:e})=>["404","search"].includes(e))),o=n?.find((e=>"front-page"===e.slug))||n?.find((e=>"home"===e.slug))||n?.find((e=>"index"===e.slug)),i=e?.concat(r,[o]),{frontPage:s,postsPage:c}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","site");return{frontPage:n?.page_on_front,postsPage:n?.page_for_posts}}),[]),u=s===c,m=e&&[...e];if(!u&&m?.length){const e=m.findIndex((e=>e.id===s)),t=m.splice(e,1);m?.splice(0,0,...t);const n=m.findIndex((e=>e.id===c)),a=m.splice(n,1);m.splice(1,0,...a)}const[p,g]=(0,l.useState)(!1),h=mi();return(0,l.createElement)(l.Fragment,null,p&&(0,l.createElement)(di,{onSave:({type:e,id:t})=>{h.push({postId:t,postType:e,canvas:"edit"}),g(!1)},onClose:()=>g(!1)}),(0,l.createElement)(Gn,{title:(0,E.__)("Pages"),description:(0,E.__)("Browse and edit pages on your site."),actions:(0,l.createElement)(Hn,{icon:Za,label:(0,E.__)("Draft a new page"),onClick:()=>g(!0)}),content:(0,l.createElement)(l.Fragment,null,(t||a)&&(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(y.__experimentalItem,null,(0,E.__)("Loading pages"))),!(t||a)&&(0,l.createElement)(y.__experimentalItemGroup,null,!i?.length&&(0,l.createElement)(y.__experimentalItem,null,(0,E.__)("No page found")),u&&o&&(0,l.createElement)(pi,{postType:"wp_template",postId:o.id,key:o.id,icon:mr,withChevron:!0},(0,l.createElement)(y.__experimentalTruncate,{numberOfLines:1},(0,Tt.decodeEntities)(o.title?.rendered||(0,E.__)("(no title)")))),m?.map((e=>{let t;switch(e.id){case s:t=mr;break;case c:t=ui;break;default:t=Fn}return(0,l.createElement)(pi,{postId:e.id,key:e.id,icon:t,withChevron:!0},(0,l.createElement)(y.__experimentalTruncate,{numberOfLines:1},(0,Tt.decodeEntities)(e?.title?.rendered||(0,E.__)("(no title)"))))})))),footer:(0,l.createElement)(y.__experimentalVStack,{spacing:0},r?.map((e=>(0,l.createElement)(pi,{postType:"wp_template",postId:e.id,key:e.id,icon:zn,withChevron:!0},(0,l.createElement)(y.__experimentalTruncate,{numberOfLines:1},(0,Tt.decodeEntities)(e.title?.rendered||(0,E.__)("(no title)")))))),(0,l.createElement)(jn,{className:"edit-site-sidebar-navigation-screen-pages__see-all",href:"edit.php?post_type=page",onClick:()=>{document.location="edit.php?post_type=page"}},(0,E.__)("Manage all pages")))}))}var gi=window.wp.dom,hi=window.wp.escapeHtml,vi=window.wp.wordcount;const yi=(0,l.createElement)(f.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm-1.067-5.6 4.2-5.667.8.6-4.8 6.467-3-2.267.6-.8 2.2 1.667Z"})),Ei=(0,l.createElement)(f.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 8a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0ZM16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-8 4a4 4 0 0 0 0-8v8Z"})),fi=(0,l.createElement)(f.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 8a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0ZM16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0ZM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}));function bi({status:e,date:t,short:n}){const a=(0,Kn.humanTimeDiff)(t);let r="",o=fi;switch(e){case"publish":r=t?(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("Published "),a),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Published"),o=yi;break;case"future":const e=(0,Kn.dateI18n)(n?"M j":"F j",(0,Kn.getDate)(t));r=t?(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("Scheduled: "),e),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Scheduled");break;case"draft":r=(0,E.__)("Draft"),o=Ei;break;case"pending":r=(0,E.__)("Pending");break;case"private":r=(0,E.__)("Private");break;case"protected":r=(0,E.__)("Password protected")}return(0,l.createElement)("div",{className:v()("edit-site-sidebar-navigation-screen-page__status",{[`has-status has-${e}-status`]:!!e})},o," ",r)}function wi({id:e}){const{record:t}=(0,_.useEntityRecord)("postType","page",e),{parentTitle:n,templateTitle:a}=(0,d.useSelect)((e=>{const{getEditedPostContext:n}=Je(e(Bn)),a=n(),r=e(_.store).getEntityRecords("postType","wp_template",{per_page:-1}),o="page"===a?.postType?a?.templateSlug:null,i=r&&o?r.find((e=>e.slug===o))?.title?.rendered:null;return{parentTitle:t?.parent?e(_.store).getEntityRecord("postType","page",t.parent,{_fields:["title"]})?.title?.rendered:null,templateTitle:i}}),[t?.parent]);return(0,l.createElement)(vo,{spacing:5,title:(0,E.__)("Details")},function(e){if(!e)return[];const t=[{label:(0,E.__)("Status"),value:(0,l.createElement)(bi,{status:e?.password?"protected":e.status,date:e?.date,short:!0})},{label:(0,E.__)("Slug"),value:(0,l.createElement)(y.__experimentalTruncate,{numberOfLines:1},(0,ut.safeDecodeURIComponent)(e.slug))}];e?.templateTitle&&t.push({label:(0,E.__)("Template"),value:(0,Tt.decodeEntities)(e.templateTitle)}),e?.parentTitle&&t.push({label:(0,E.__)("Parent"),value:(0,Tt.decodeEntities)(e.parentTitle||(0,E.__)("(no title)"))});const n=(0,E._x)("words","Word count type. Do not translate!"),a=e?.content?.rendered?(0,vi.count)(e.content.rendered,n):0,r=Math.round(a/189);return a&&t.push({label:(0,E.__)("Words"),value:a.toLocaleString()||(0,E.__)("Unknown")},{label:(0,E.__)("Time to read"),value:r>1?(0,E.sprintf)((0,E.__)("%s mins"),r.toLocaleString()):(0,E.__)("< 1 min")}),t}({parentTitle:n,templateTitle:a,...t}).map((({label:e,value:t})=>(0,l.createElement)(go,{key:e},(0,l.createElement)(_o,null,e),(0,l.createElement)(ho,null,t)))))}function Si({postId:e,onRemove:t}){const[n,a]=(0,l.useState)(!1),{createSuccessNotice:r,createErrorNotice:o}=(0,d.useDispatch)(fe.store),{deleteEntityRecord:i}=(0,d.useDispatch)(_.store),s=(0,d.useSelect)((t=>t(_.store).getEntityRecord("postType","page",e)),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuItem,{onClick:()=>a(!0),isDestructive:!0},(0,E.__)("Delete")),(0,l.createElement)(y.__experimentalConfirmDialog,{isOpen:n,onConfirm:async function(){try{await i("postType","page",e,{},{throwOnError:!0}),r((0,E.sprintf)((0,E.__)('"%s" deleted.'),(0,Tt.decodeEntities)(s.title.rendered)),{type:"snackbar",id:"edit-site-page-removed"}),t?.()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the page.");o(t,{type:"snackbar"})}finally{a(!1)}},onCancel:()=>a(!1)},(0,E.__)("Are you sure you want to delete this page?")))}function ki({postId:e,className:t,toggleProps:n,onRemove:a}){return(0,l.createElement)(y.DropdownMenu,{icon:oe,label:(0,E.__)("Actions"),className:t,toggleProps:n},(()=>(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(Si,{postId:e,onRemove:a}))))}function Ci(){const e=(0,y.__experimentalUseNavigator)(),{setCanvasMode:t}=Je((0,d.useDispatch)(Bn)),{params:{postId:n}}=(0,y.__experimentalUseNavigator)(),{record:a}=(0,_.useEntityRecord)("postType","page",n),{featuredMediaAltText:r,featuredMediaSourceUrl:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=a?.featured_media?t("postType","attachment",a?.featured_media):null;return{featuredMediaSourceUrl:n?.media_details.sizes?.medium?.source_url||n?.source_url,featuredMediaAltText:(0,hi.escapeAttribute)(n?.alt_text||n?.description?.raw||"")}}),[a]),i=r?(0,Tt.decodeEntities)(r):(0,Tt.decodeEntities)(a?.title?.rendered||(0,E.__)("Featured image"));return a?(0,l.createElement)(Gn,{title:(0,Tt.decodeEntities)(a?.title?.rendered||(0,E.__)("(no title)")),actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ki,{postId:n,toggleProps:{as:Hn},onRemove:()=>{e.goTo("/page")}}),(0,l.createElement)(Hn,{onClick:()=>t("edit"),label:(0,E.__)("Edit"),icon:qn})),meta:(0,l.createElement)(y.ExternalLink,{className:"edit-site-sidebar-navigation-screen__page-link",href:a.link},(0,ut.filterURLForDisplay)((0,ut.safeDecodeURIComponent)(a.link))),content:(0,l.createElement)(l.Fragment,null,!!o&&(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-page__featured-image-wrapper",alignment:"left",spacing:2},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-page__featured-image has-image"},(0,l.createElement)("img",{alt:i,src:o}))),!!a?.excerpt?.rendered&&(0,l.createElement)(y.__experimentalTruncate,{className:"edit-site-sidebar-navigation-screen-page__excerpt",numberOfLines:3},(0,gi.__unstableStripHTML)(a.excerpt.rendered)),(0,l.createElement)(wi,{id:n})),footer:(0,l.createElement)(bo,{lastModifiedDateTime:a?.modified})}):null}const{useLocation:xi}=Je(ct.privateApis);function Ti(){return function(){const e=Ho(),{params:t}=Oo(),{location:n,params:a,goTo:r}=(0,y.__experimentalUseNavigator)(),o=(0,l.useRef)(t),i=(0,l.useRef)(n.path),s=(0,l.useRef)(!0);(0,l.useEffect)((()=>{function t(t){if(Object.entries(t).every((([e,t])=>o.current[e]===t)))return;const n={...o.current,...t};o.current=n,e.push(n)}s.current?s.current=!1:a?.postType&&a?.postId?t({postType:a?.postType,postId:a?.postId,path:void 0}):n.path.startsWith("/page/")&&a?.postId?t({postType:"page",postId:a?.postId,path:void 0}):"/library"===n.path?t({postType:void 0,postId:void 0,canvas:void 0,path:n.path}):t({postType:void 0,postId:void 0,categoryType:void 0,categoryId:void 0,path:"/"===n.path?void 0:n.path})}),[n?.path,a,e]),(0,l.useEffect)((()=>{o.current=t;const e=Go(t);i.current!==e&&(i.current=e,r(e))}),[t,r])}(),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)($a,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/navigation"},(0,l.createElement)(ti,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/navigation/:postType/:postId"},(0,l.createElement)(Ko,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/wp_global_styles"},(0,l.createElement)(Ua,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/page"},(0,l.createElement)(_i,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/page/:postId"},(0,l.createElement)(Ci,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/:postType(wp_template)"},(0,l.createElement)(to,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/library"},(0,l.createElement)(dr,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/:postType(wp_template_part|wp_block)/:postId"},(0,l.createElement)(zo,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/:postType(wp_template)/all"},(0,l.createElement)(oi,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/:postType(wp_template)/:postId"},(0,l.createElement)(wo,null)))}var Ni=(0,l.memo)((function(){const{params:e}=xi(),t=(0,l.useRef)(Go(e));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalNavigatorProvider,{className:"edit-site-sidebar__content",initialPath:t.current},(0,l.createElement)(Ti,null)),(0,l.createElement)(ci,null))}));var Pi=(0,l.createElement)(f.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var Mi=(0,l.createElement)(f.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));function Ii({className:e,identifier:t,title:n,icon:a,children:r,closeLabel:o,header:i,headerClassName:s,panelClassName:c}){const u=(0,d.useSelect)((e=>e(Bn).getSettings().showIconLabels),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ee,{className:e,scope:"core/edit-site",identifier:t,title:n,icon:a,closeLabel:o,header:i,headerClassName:s,panelClassName:c,showIconLabels:u},r),(0,l.createElement)(Y,{scope:"core/edit-site",identifier:t,icon:a},n))}function Bi({className:e,...t}){return(0,l.createElement)(y.Icon,{className:v()(e,"edit-site-global-styles-icon-with-current-color"),...t})}function Ri({icon:e,children:t,...n}){return(0,l.createElement)(y.__experimentalItem,{...n},e&&(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(Bi,{icon:e,size:24}),(0,l.createElement)(y.FlexItem,null,t)),!e&&t)}function Di(e){return(0,l.createElement)(y.__experimentalNavigatorButton,{as:Ri,...e})}var Ai=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));var Li=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"}));const{useHasDimensionsPanel:Vi,useHasTypographyPanel:Fi,useHasColorPanel:zi,useGlobalSetting:Oi,useSettingsForBlockElement:Hi}=Je(Ee.privateApis);var Gi=function(){const[e]=Oi(""),t=Hi(e),n=Fi(t),a=zi(t),r=Vi(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalItemGroup,null,n&&(0,l.createElement)(Di,{icon:Ai,path:"/typography","aria-label":(0,E.__)("Typography styles")},(0,E.__)("Typography")),a&&(0,l.createElement)(Di,{icon:Li,path:"/colors","aria-label":(0,E.__)("Colors styles")},(0,E.__)("Colors")),r&&(0,l.createElement)(Di,{icon:zn,path:"/layout","aria-label":(0,E.__)("Layout styles")},(0,E.__)("Layout"))))};var Ui=function(){const{useGlobalStyle:e}=Je(Ee.privateApis),[t]=e("css"),{hasVariations:n,canEditCSS:a}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a,__experimentalGetCurrentThemeGlobalStylesVariations:r}=e(_.store),o=a(),i=o?n("root","globalStyles",o):void 0;return{hasVariations:!!r()?.length,canEditCSS:null!==(t=!!i?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]);return(0,l.createElement)(y.Card,{size:"small",className:"edit-site-global-styles-screen-root"},(0,l.createElement)(y.CardBody,null,(0,l.createElement)(y.__experimentalVStack,{spacing:4},(0,l.createElement)(y.Card,null,(0,l.createElement)(y.CardMedia,null,(0,l.createElement)(pa,null))),n&&(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(Di,{path:"/variations","aria-label":(0,E.__)("Browse styles")},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(y.FlexItem,null,(0,E.__)("Browse styles")),(0,l.createElement)(Bi,{icon:(0,E.isRTL)()?ce:ue})))),(0,l.createElement)(Gi,null))),(0,l.createElement)(y.CardDivider,null),(0,l.createElement)(y.CardBody,null,(0,l.createElement)(y.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Customize the appearance of specific blocks for the whole site.")),(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(Di,{path:"/blocks","aria-label":(0,E.__)("Blocks styles")},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(y.FlexItem,null,(0,E.__)("Blocks")),(0,l.createElement)(Bi,{icon:(0,E.isRTL)()?ce:ue}))))),a&&!!t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.CardDivider,null),(0,l.createElement)(y.CardBody,null,(0,l.createElement)(y.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Add your own CSS to customize the appearance and layout of your site.")),(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(Di,{path:"/css","aria-label":(0,E.__)("Additional CSS")},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(y.FlexItem,null,(0,E.__)("Additional CSS")),(0,l.createElement)(Bi,{icon:(0,E.isRTL)()?ce:ue})))))))};function $i(e){const t=function(e){return e?.filter((e=>"block"===e.source))}((0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]));return t}function ji({name:e}){const t=$i(e);return(0,l.createElement)(y.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},t.map(((t,n)=>t?.isDefault?null:(0,l.createElement)(Di,{key:n,path:"/blocks/"+encodeURIComponent(e)+"/variations/"+encodeURIComponent(t.name),"aria-label":t.label},t.label))))}var Wi=function({title:e,description:t}){return(0,l.createElement)(y.__experimentalVStack,{spacing:0},(0,l.createElement)(y.__experimentalView,null,(0,l.createElement)(y.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,l.createElement)(y.__experimentalHStack,{spacing:2},(0,l.createElement)(y.__experimentalNavigatorToParentButton,{style:{minWidth:24,padding:0},icon:(0,E.isRTL)()?ue:ce,isSmall:!0,"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(y.__experimentalSpacer,null,(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-global-styles-header",level:2,size:13},e))))),t&&(0,l.createElement)("p",{className:"edit-site-global-styles-header__description"},t))};const{useHasDimensionsPanel:Zi,useHasTypographyPanel:qi,useHasBorderPanel:Yi,useGlobalSetting:Ki,useSettingsForBlockElement:Xi,useHasColorPanel:Qi}=Je(Ee.privateApis);function Ji(e){const[t]=Ki("",e),n=Xi(t,e),a=qi(n),r=Qi(n),o=Yi(n),i=Zi(n),s=o||i,l=!!$i(e)?.length;return a||r||s||l}function es({block:e}){if(!Ji(e.name))return null;const t=(0,E.sprintf)((0,E.__)("%s block styles"),e.title);return(0,l.createElement)(Di,{path:"/blocks/"+encodeURIComponent(e.name),"aria-label":t},(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(Ee.BlockIcon,{icon:e.icon}),(0,l.createElement)(y.FlexItem,null,e.title)))}var ts=function(){const e=function(){const e=(0,d.useSelect)((e=>e(c.store).getBlockTypes()),[]),{core:t,noncore:n}=e.reduce(((e,t)=>{const{core:n,noncore:a}=e;return(t.name.startsWith("core/")?n:a).push(t),e}),{core:[],noncore:[]});return[...t,...n]}(),[t,n]=(0,l.useState)(""),a=(0,te.useDebounce)(xt.speak,500),r=(0,d.useSelect)((e=>e(c.store).isMatchingSearchTerm),[]),o=(0,l.useMemo)((()=>t?e.filter((e=>r(e,t))):e),[t,e,r]),i=(0,l.useRef)();return(0,l.useEffect)((()=>{if(!t)return;const e=i.current.childElementCount,n=(0,E.sprintf)((0,E._n)("%d result found.","%d results found.",e),e);a(n,e)}),[t,a]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:(0,E.__)("Blocks"),description:(0,E.__)("Customize the appearance of specific blocks and for the whole site.")}),(0,l.createElement)(y.SearchControl,{__nextHasNoMarginBottom:!0,className:"edit-site-block-types-search",onChange:n,value:t,label:(0,E.__)("Search for blocks"),placeholder:(0,E.__)("Search")}),(0,l.createElement)("div",{ref:i,className:"edit-site-block-types-item-list"},o.map((e=>(0,l.createElement)(es,{block:e,key:"menu-itemblock-"+e.name})))))};var ns=({name:e,variation:t=""})=>{const n=(0,c.getBlockType)(e)?.example,a={...n,attributes:{...n?.attributes,className:"is-style-"+t}},r=n&&(0,c.getBlockFromExample)(e,t?a:n),o=n?.viewportWidth||null,i="150px";return n?(0,l.createElement)(y.__experimentalSpacer,{marginX:4,marginBottom:4},(0,l.createElement)("div",{className:"edit-site-global-styles__block-preview-panel",style:{maxHeight:i,boxSizing:"initial"}},(0,l.createElement)(Ee.BlockPreview,{blocks:r,viewportWidth:o,minHeight:i,additionalStyles:[{css:"\n\t\t\t\t\t\t\t\tbody{\n\t\t\t\t\t\t\t\t\tmin-height:150px;\n\t\t\t\t\t\t\t\t\tdisplay:flex;align-items:center;justify-content:center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"}]}))):null};var as=function({children:e,level:t}){return(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:null!=t?t:2},e)};function rs(e){if(!e)return e;const t=e.color||e.width;return!e.style&&t?{...e,style:"solid"}:!e.style||t?e:void 0}const{useHasDimensionsPanel:os,useHasTypographyPanel:is,useHasBorderPanel:ss,useGlobalSetting:ls,useSettingsForBlockElement:cs,useHasColorPanel:us,useHasEffectsPanel:ds,useHasFiltersPanel:ms,useGlobalStyle:ps,BorderPanel:_s,ColorPanel:gs,TypographyPanel:hs,DimensionsPanel:vs,EffectsPanel:ys,FiltersPanel:Es,AdvancedPanel:fs}=Je(Ee.privateApis);var bs=function({name:e,variation:t}){let n=[];t&&(n=["variations",t].concat(n));const a=n.join("."),[r]=ps(a,e,"user",{shouldDecodeEncode:!1}),[o,i]=ps(a,e,"all",{shouldDecodeEncode:!1}),[s,u]=ls("",e),m=cs(s,e),p=(0,c.getBlockType)(e),g=$i(e),h=is(m),v=us(m),f=ss(m),b=os(m),w=ds(m),S=ms(m),k=!!g?.length&&!t,{canEditCSS:C}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{canEditCSS:null!==(t=!!(r?n("root","globalStyles",r):void 0)?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),x=t?g.find((e=>e.name===t)):null,T=(0,l.useMemo)((()=>({...o,layout:m.layout})),[o,m.layout]),N=(0,l.useMemo)((()=>({...r,layout:m.layout})),[r,m.layout]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:t?x.label:p.title}),(0,l.createElement)(ns,{name:e,variation:t}),k&&(0,l.createElement)("div",{className:"edit-site-global-styles-screen-variations"},(0,l.createElement)(y.__experimentalVStack,{spacing:3},(0,l.createElement)(as,null,(0,E.__)("Style Variations")),(0,l.createElement)(ji,{name:e}))),v&&(0,l.createElement)(gs,{inheritedValue:o,value:r,onChange:i,settings:m}),h&&(0,l.createElement)(hs,{inheritedValue:o,value:r,onChange:i,settings:m}),b&&(0,l.createElement)(vs,{inheritedValue:T,value:N,onChange:e=>{const t={...e};delete t.layout,i(t),e.layout!==m.layout&&u({...s,layout:e.layout})},settings:m,includeLayoutControls:!0}),f&&(0,l.createElement)(_s,{inheritedValue:o,value:r,onChange:e=>{if(!e?.border)return void i(e);const{radius:t,...n}=e.border,a=function(e){return e?(0,y.__experimentalHasSplitBorders)(e)?{top:rs(e.top),right:rs(e.right),bottom:rs(e.bottom),left:rs(e.left)}:rs(e):e}(n),r=(0,y.__experimentalHasSplitBorders)(a)?{color:null,style:null,width:null,...a}:{top:a,right:a,bottom:a,left:a};i({...e,border:{...r,radius:t}})},settings:m}),w&&(0,l.createElement)(ys,{inheritedValue:T,value:N,onChange:i,settings:m,includeLayoutControls:!0}),S&&(0,l.createElement)(Es,{inheritedValue:T,value:N,onChange:i,settings:{...m,color:{...m.color,customDuotone:!1}},includeLayoutControls:!0}),C&&(0,l.createElement)(y.PanelBody,{title:(0,E.__)("Advanced"),initialOpen:!1},(0,l.createElement)("p",null,(0,E.sprintf)((0,E.__)("Add your own CSS to customize the appearance of the %s block."),p?.title)),(0,l.createElement)(fs,{value:r,onChange:i,inheritedValue:o})))};const{useGlobalStyle:ws}=Je(Ee.privateApis);function Ss({parentMenu:e,element:t,label:n}){const a="text"!==t&&t?`elements.${t}.`:"",r="link"===t?{textDecoration:"underline"}:{},[o]=ws(a+"typography.fontFamily"),[i]=ws(a+"typography.fontStyle"),[s]=ws(a+"typography.fontWeight"),[c]=ws(a+"typography.letterSpacing"),[u]=ws(a+"color.background"),[d]=ws(a+"color.gradient"),[m]=ws(a+"color.text"),p=(0,E.sprintf)((0,E.__)("Typography %s styles"),n);return(0,l.createElement)(Di,{path:e+"/typography/"+t,"aria-label":p},(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(y.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=o?o:"serif",background:null!=d?d:u,color:m,fontStyle:i,fontWeight:s,letterSpacing:c,...r}},(0,E.__)("Aa")),(0,l.createElement)(y.FlexItem,null,n)))}var ks=function(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:(0,E.__)("Typography"),description:(0,E.__)("Manage the typography settings for different elements.")}),(0,l.createElement)(ns,null),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-typography"},(0,l.createElement)(y.__experimentalVStack,{spacing:3},(0,l.createElement)(as,{level:3},(0,E.__)("Elements")),(0,l.createElement)(y.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(Ss,{parentMenu:"",element:"text",label:(0,E.__)("Text")}),(0,l.createElement)(Ss,{parentMenu:"",element:"link",label:(0,E.__)("Links")}),(0,l.createElement)(Ss,{parentMenu:"",element:"heading",label:(0,E.__)("Headings")}),(0,l.createElement)(Ss,{parentMenu:"",element:"caption",label:(0,E.__)("Captions")}),(0,l.createElement)(Ss,{parentMenu:"",element:"button",label:(0,E.__)("Buttons")})))))};const{useGlobalStyle:Cs,useGlobalSetting:xs,useSettingsForBlockElement:Ts,TypographyPanel:Ns}=Je(Ee.privateApis);function Ps({element:e,headingLevel:t}){let n=[];"heading"===e?n=n.concat(["elements",t]):e&&"text"!==e&&(n=n.concat(["elements",e]));const a=n.join("."),[r]=Cs(a,void 0,"user",{shouldDecodeEncode:!1}),[o,i]=Cs(a,void 0,"all",{shouldDecodeEncode:!1}),[s]=xs(""),c=Ts(s,void 0,"heading"===e?t:e);return(0,l.createElement)(Ns,{inheritedValue:o,value:r,onChange:i,settings:c})}const{useGlobalStyle:Ms}=Je(Ee.privateApis);function Is({name:e,element:t,headingLevel:n}){let a="";"heading"===t?a=`elements.${n}.`:t&&"text"!==t&&(a=`elements.${t}.`);const[r]=Ms(a+"typography.fontFamily",e),[o]=Ms(a+"color.gradient",e),[i]=Ms(a+"color.background",e),[s]=Ms(a+"color.text",e),[c]=Ms(a+"typography.fontSize",e),[u]=Ms(a+"typography.fontStyle",e),[d]=Ms(a+"typography.fontWeight",e),[m]=Ms(a+"typography.letterSpacing",e),p="link"===t?{textDecoration:"underline"}:{};return(0,l.createElement)("div",{className:"edit-site-typography-preview",style:{fontFamily:null!=r?r:"serif",background:null!=o?o:i,color:s,fontSize:c,fontStyle:u,fontWeight:d,letterSpacing:m,...p}},"Aa")}const Bs={text:{description:(0,E.__)("Manage the fonts used on the site."),title:(0,E.__)("Text")},link:{description:(0,E.__)("Manage the fonts and typography used on the links."),title:(0,E.__)("Links")},heading:{description:(0,E.__)("Manage the fonts and typography used on headings."),title:(0,E.__)("Headings")},caption:{description:(0,E.__)("Manage the fonts and typography used on captions."),title:(0,E.__)("Captions")},button:{description:(0,E.__)("Manage the fonts and typography used on buttons."),title:(0,E.__)("Buttons")}};var Rs=function({element:e}){const[t,n]=(0,l.useState)("heading");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:Bs[e].title,description:Bs[e].description}),(0,l.createElement)(y.__experimentalSpacer,{marginX:4},(0,l.createElement)(Is,{element:e,headingLevel:t})),"heading"===e&&(0,l.createElement)(y.__experimentalSpacer,{marginX:4,marginBottom:"1em"},(0,l.createElement)(y.__experimentalToggleGroupControl,{label:(0,E.__)("Select heading level"),hideLabelFromVision:!0,value:t,onChange:n,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0},(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"heading",label:(0,E.__)("All")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h1",label:(0,E.__)("H1")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h2",label:(0,E.__)("H2")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h3",label:(0,E.__)("H3")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h4",label:(0,E.__)("H4")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h5",label:(0,E.__)("H5")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h6",label:(0,E.__)("H6")}))),(0,l.createElement)(Ps,{element:e,headingLevel:t}))};var Ds=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,l.createElement)(f.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"}));var As=function({className:e,...t}){return(0,l.createElement)(y.Flex,{className:v()("edit-site-global-styles__color-indicator-wrapper",e),...t})};const{useGlobalSetting:Ls}=Je(Ee.privateApis),Vs=[];var Fs=function({name:e}){const[t]=Ls("color.palette.custom"),[n]=Ls("color.palette.theme"),[a]=Ls("color.palette.default"),[r]=Ls("color.defaultPalette",e),[o]=function(e){const[t,n]=et("color.palette.theme",e);return window.__experimentalEnableColorRandomizer?[function(){const e=Math.floor(225*Math.random()),a=t.map((t=>{const{color:n}=t,a=Ze(n).rotate(e).toHex();return{...t,color:a}}));n(a)}]:[]}(),i=(0,l.useMemo)((()=>[...t||Vs,...n||Vs,...a&&r?a:Vs]),[t,n,a,r]),s=e?"/blocks/"+encodeURIComponent(e)+"/colors/palette":"/colors/palette",c=i.length>0?(0,E.sprintf)((0,E._n)("%d color","%d colors",i.length),i.length):(0,E.__)("Add custom colors");return(0,l.createElement)(y.__experimentalVStack,{spacing:3},(0,l.createElement)(as,{level:3},(0,E.__)("Palette")),(0,l.createElement)(y.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(Di,{path:s,"aria-label":(0,E.__)("Color palettes")},(0,l.createElement)(y.__experimentalHStack,{direction:0===i.length?"row-reverse":"row"},(0,l.createElement)(y.__experimentalZStack,{isLayered:!1,offset:-8},i.slice(0,5).map((({color:e},t)=>(0,l.createElement)(As,{key:`${e}-${t}`},(0,l.createElement)(y.ColorIndicator,{colorValue:e}))))),(0,l.createElement)(y.FlexItem,null,c)))),n?.length>0&&(0,l.createElement)(y.Button,{variant:"secondary",icon:Ds,onClick:o},(0,E.__)("Randomize colors")))};const{useGlobalStyle:zs,useGlobalSetting:Os,useSettingsForBlockElement:Hs,ColorPanel:Gs}=Je(Ee.privateApis);var Us=function(){const[e]=zs("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=zs("",void 0,"all",{shouldDecodeEncode:!1}),[a]=Os(""),r=Hs(a);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:(0,E.__)("Colors"),description:(0,E.__)("Manage palettes and the default color of different global elements on the site.")}),(0,l.createElement)(ns,null),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-colors"},(0,l.createElement)(y.__experimentalVStack,{spacing:10},(0,l.createElement)(Fs,null),(0,l.createElement)(Gs,{inheritedValue:t,value:e,onChange:n,settings:r}))))};const{useGlobalSetting:$s}=Je(Ee.privateApis),js={placement:"bottom-start",offset:8};function Ws({name:e}){const[t,n]=$s("color.palette.theme",e),[a]=$s("color.palette.theme",e,"base"),[r,o]=$s("color.palette.default",e),[i]=$s("color.palette.default",e,"base"),[s,c]=$s("color.palette.custom",e),[u]=$s("color.defaultPalette",e),d=(0,te.useViewportMatch)("small","<")?js:void 0;return(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(y.__experimentalPaletteEdit,{canReset:t!==a,canOnlyChangeValues:!0,colors:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:d}),!!r&&!!r.length&&!!u&&(0,l.createElement)(y.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,colors:r,onChange:o,paletteLabel:(0,E.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:d}),(0,l.createElement)(y.__experimentalPaletteEdit,{colors:s,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelHeadingLevel:3,emptyMessage:(0,E.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-",popoverProps:d}))}const{useGlobalSetting:Zs}=Je(Ee.privateApis),qs={placement:"bottom-start",offset:8},Ys=()=>{};function Ks({name:e}){const[t,n]=Zs("color.gradients.theme",e),[a]=Zs("color.gradients.theme",e,"base"),[r,o]=Zs("color.gradients.default",e),[i]=Zs("color.gradients.default",e,"base"),[s,c]=Zs("color.gradients.custom",e),[u]=Zs("color.defaultGradients",e),[d]=Zs("color.duotone.custom")||[],[m]=Zs("color.duotone.default")||[],[p]=Zs("color.duotone.theme")||[],[_]=Zs("color.defaultDuotone"),g=[...d||[],...p||[],...m&&_?m:[]],h=(0,te.useViewportMatch)("small","<")?qs:void 0;return(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(y.__experimentalPaletteEdit,{canReset:t!==a,canOnlyChangeValues:!0,gradients:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:h}),!!r&&!!r.length&&!!u&&(0,l.createElement)(y.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,gradients:r,onChange:o,paletteLabel:(0,E.__)("Default"),paletteLabelLevel:3,popoverProps:h}),(0,l.createElement)(y.__experimentalPaletteEdit,{gradients:s,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelLevel:3,emptyMessage:(0,E.__)("Custom gradients are empty! Add some gradients to create your own palette."),slugPrefix:"custom-",popoverProps:h}),!!g&&!!g.length&&(0,l.createElement)("div",null,(0,l.createElement)(as,{level:3},(0,E.__)("Duotone")),(0,l.createElement)(y.__experimentalSpacer,{margin:3}),(0,l.createElement)(y.DuotonePicker,{duotonePalette:g,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:Ys})))}var Xs=function({name:e}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:(0,E.__)("Palette"),description:(0,E.__)("Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),(0,l.createElement)(y.TabPanel,{tabs:[{name:"solid",title:"Solid",value:"solid"},{name:"gradient",title:"Gradient",value:"gradient"}]},(t=>(0,l.createElement)(l.Fragment,null,"solid"===t.value&&(0,l.createElement)(Ws,{name:e}),"gradient"===t.value&&(0,l.createElement)(Ks,{name:e})))))};const{useGlobalStyle:Qs,useGlobalSetting:Js,useSettingsForBlockElement:el,DimensionsPanel:tl}=Je(Ee.privateApis),nl={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!1};function al(){const[e]=Qs("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=Qs("",void 0,"all",{shouldDecodeEncode:!1}),[a,r]=Js(""),o=el(a),i=(0,l.useMemo)((()=>({...t,layout:o.layout})),[t,o.layout]),s=(0,l.useMemo)((()=>({...e,layout:o.layout})),[e,o.layout]);return(0,l.createElement)(tl,{inheritedValue:i,value:s,onChange:e=>{const t={...e};if(delete t.layout,n(t),e.layout!==o.layout){const t={...a,layout:e.layout};t.layout?.definitions&&delete t.layout.definitions,r(t)}},settings:o,includeLayoutControls:!0,defaultControls:nl})}const{useHasDimensionsPanel:rl,useGlobalSetting:ol,useSettingsForBlockElement:il}=Je(Ee.privateApis);var sl=function(){const[e]=ol(""),t=il(e),n=rl(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:(0,E.__)("Layout")}),(0,l.createElement)(ns,null),n&&(0,l.createElement)(al,null))};var ll=function(){const{mode:e}=(0,d.useSelect)((e=>({mode:e(Ee.store).__unstableGetEditorMode()})),[]),t=(0,l.useRef)(null);(0,l.useEffect)((()=>{"zoom-out"!==e&&(t.current=!1)}),[e]),(0,l.useEffect)((()=>{if("zoom-out"!==e)return n("zoom-out"),t.current=!0,()=>{t.current&&n(e)}}),[]);const{__unstableSetEditorMode:n}=(0,d.useDispatch)(Ee.store);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{back:"/",title:(0,E.__)("Browse styles"),description:(0,E.__)("Choose a variation to change the look of the site.")}),(0,l.createElement)(y.Card,{size:"small",isBorderless:!0,className:"edit-site-global-styles-screen-style-variations"},(0,l.createElement)(y.CardBody,null,(0,l.createElement)(va,null))))};const{useGlobalStyle:cl,AdvancedPanel:ul}=Je(Ee.privateApis);var dl=function(){const e=(0,E.__)("Add your own CSS to customize the appearance and layout of your site."),[t]=cl("",void 0,"user",{shouldDecodeEncode:!1}),[n,a]=cl("",void 0,"all",{shouldDecodeEncode:!1});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:(0,E.__)("CSS"),description:(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(y.ExternalLink,{href:"https://wordpress.org/documentation/article/css/",className:"edit-site-global-styles-screen-css-help-link"},(0,E.__)("Learn more about CSS")))}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-css"},(0,l.createElement)(ul,{value:t,onChange:a,inheritedValue:n})))};const{ExperimentalBlockEditorProvider:ml,useGlobalStylesOutputWithConfig:pl}=Je(Ee.privateApis);function _l(e){return!e||0===Object.keys(e).length}var gl=function({onClose:e,userConfig:t,blocks:n}){const{baseConfig:a}=(0,d.useSelect)((e=>({baseConfig:e(_.store).__experimentalGetCurrentThemeBaseGlobalStyles()})),[]),r=(0,l.useMemo)((()=>_l(t)||_l(a)?{}:ra(a,t)),[a,t]),o=(0,l.useMemo)((()=>Array.isArray(n)?n:[n]),[n]),i=(0,d.useSelect)((e=>e(Ee.store).getSettings()),[]),s=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),[c]=pl(r),u=_l(c)||_l(t)?s.styles:c;return(0,l.createElement)(Ta,{title:(0,E.__)("Revisions"),onClose:e,closeButtonLabel:(0,E.__)("Close revisions"),enableResizing:!0},(0,l.createElement)(Ee.__unstableIframe,{className:"edit-site-revisions__iframe",name:"revisions",tabIndex:0},(0,l.createElement)(Ee.__unstableEditorStyles,{styles:u}),(0,l.createElement)("style",null,".is-root-container { display: flow-root; } body { position: relative; padding: 32px; }"),(0,l.createElement)(y.Disabled,{className:"edit-site-revisions__example-preview__content"},(0,l.createElement)(ml,{value:o,settings:s},(0,l.createElement)(Ee.BlockList,{renderAppender:!1})))))};const{createPrivateSlotFill:hl}=Je(y.privateApis),{Slot:vl,Fill:yl}=hl("SidebarFixedBottom");function El({children:e}){return(0,l.createElement)(yl,null,(0,l.createElement)("div",{className:"edit-site-sidebar-fixed-bottom-slot"},e))}function fl(e){const t=e?.author?.name||(0,E.__)("User");if("unsaved"===e?.id)return(0,E.sprintf)((0,E.__)("Unsaved changes by %(name)s"),{name:t});const n=(0,Kn.dateI18n)((0,Kn.getSettings)().formats.datetimeAbbreviated,(0,Kn.getDate)(e?.modified));return e?.isLatest?(0,E.sprintf)((0,E.__)("Changes saved by %(name)s on %(date)s (current)"),{name:t,date:n}):(0,E.sprintf)((0,E.__)("Changes saved by %(name)s on %(date)s"),{name:t,date:n})}var bl=function({userRevisions:e,selectedRevisionId:t,onChange:n}){return(0,l.createElement)("ol",{className:"edit-site-global-styles-screen-revisions__revisions-list","aria-label":(0,E.__)("Global styles revisions"),role:"group"},e.map(((e,a)=>{const{id:r,author:o,modified:i}=e,s=o?.name||(0,E.__)("User"),c=o?.avatar_urls?.[48],u="unsaved"===e?.id,d=t?t===e?.id:0===a;return(0,l.createElement)("li",{className:v()("edit-site-global-styles-screen-revisions__revision-item",{"is-selected":d}),key:r},(0,l.createElement)(y.Button,{className:"edit-site-global-styles-screen-revisions__revision-button",disabled:d,onClick:()=>{n(e)},label:fl(e)},(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__description"},(0,l.createElement)("time",{dateTime:i},(0,Kn.humanTimeDiff)(i)),(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__meta"},u?(0,E.sprintf)((0,E.__)("Unsaved changes by %(name)s"),{name:s}):(0,E.sprintf)((0,E.__)("Changes saved by %(name)s"),{name:s}),(0,l.createElement)("img",{alt:o?.name,src:c})))))})))};const{GlobalStylesContext:wl,areGlobalStyleConfigsEqual:Sl}=Je(Ee.privateApis);var kl=function(){const{goBack:e}=(0,y.__experimentalUseNavigator)(),{user:t,setUserConfig:n}=(0,l.useContext)(wl),{blocks:a,editorCanvasContainerView:r}=(0,d.useSelect)((e=>({editorCanvasContainerView:Je(e(Bn)).getEditorCanvasContainerView(),blocks:e(Ee.store).getBlocks()})),[]),{revisions:o,isLoading:i,hasUnsavedChanges:s}=Fa(),[c,u]=(0,l.useState)(),[m,p]=(0,l.useState)(t),[_,g]=(0,l.useState)(!1),{setEditorCanvasContainerView:h}=Je((0,d.useDispatch)(Bn));(0,l.useEffect)((()=>{"global-styles-revisions"!==r&&(e(),h(r))}),[r]);const v=()=>{e()},f=e=>{n((()=>({styles:e?.styles,settings:e?.settings}))),g(!1),v()},b=!!m?.id&&!Sl(m,t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wi,{title:(0,E.__)("Revisions"),description:(0,E.__)("Revisions are added to the timeline when style changes are saved.")}),i&&(0,l.createElement)(y.Spinner,{className:"edit-site-global-styles-screen-revisions__loading"}),!i&&(0,l.createElement)(gl,{blocks:a,userConfig:m,onClose:v}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-revisions"},(0,l.createElement)(bl,{onChange:e=>{p({styles:e?.styles,settings:e?.settings,id:e?.id}),u(e?.id)},selectedRevisionId:c,userRevisions:o}),b&&(0,l.createElement)(El,null,(0,l.createElement)(y.Button,{variant:"primary",className:"edit-site-global-styles-screen-revisions__button",disabled:!m?.id||"unsaved"===m?.id,onClick:()=>{s?g(!0):f(m)}},(0,E.__)("Apply")))),_&&(0,l.createElement)(y.__experimentalConfirmDialog,{title:(0,E.__)("Loading this revision will discard all unsaved changes."),isOpen:_,confirmButtonText:(0,E.__)(" Discard unsaved changes"),onConfirm:()=>f(m),onCancel:()=>g(!1)},(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h2",null,(0,E.__)("Loading this revision will discard all unsaved changes.")),(0,l.createElement)("p",null,(0,E.__)("Do you want to replace your unsaved changes in the editor?")))))};const{Slot:Cl,Fill:xl}=(0,y.createSlotFill)("GlobalStylesMenu");function Tl(){const{toggle:e}=(0,d.useDispatch)(x.store),{canEditCSS:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{canEditCSS:null!==(t=!!(r?n("root","globalStyles",r):void 0)?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),{goTo:n}=(0,y.__experimentalUseNavigator)(),a=()=>n("/css");return(0,l.createElement)(xl,null,(0,l.createElement)(y.DropdownMenu,{icon:oe,label:(0,E.__)("More")},(({onClose:n})=>(0,l.createElement)(y.MenuGroup,null,t&&(0,l.createElement)(y.MenuItem,{onClick:a},(0,E.__)("Additional CSS")),(0,l.createElement)(y.MenuItem,{onClick:()=>{e("core/edit-site","welcomeGuideStyles"),n()}},(0,E.__)("Welcome Guide"))))))}function Nl({className:e,children:t}){return(0,l.createElement)("span",{className:v()(e,"edit-site-global-styles-sidebar__revisions-count-badge")},t)}function Pl(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Bn),{revisionsCount:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{revisionsCount:null!==(t=(r?n("root","globalStyles",r):void 0)?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),{useGlobalStylesReset:n}=Je(Ee.privateApis),[a,r]=n(),{goTo:o}=(0,y.__experimentalUseNavigator)(),{setEditorCanvasContainerView:i}=Je((0,d.useDispatch)(Bn)),s=()=>{e(!1),o("/revisions"),i("global-styles-revisions")},c=t>=2;return(0,l.createElement)(xl,null,a||c?(0,l.createElement)(y.DropdownMenu,{icon:Wn,label:(0,E.__)("Revisions")},(({onClose:e})=>(0,l.createElement)(y.MenuGroup,null,c&&(0,l.createElement)(y.MenuItem,{onClick:s,icon:(0,l.createElement)(Nl,null,t)},(0,E.__)("Revision history")),(0,l.createElement)(y.MenuItem,{onClick:()=>{r(),e()},disabled:!a},(0,E.__)("Reset to defaults"))))):(0,l.createElement)(y.Button,{label:(0,E.__)("Revisions"),icon:Wn,disabled:!0,__experimentalIsFocusable:!0}))}function Ml({className:e,...t}){return(0,l.createElement)(y.__experimentalNavigatorScreen,{className:["edit-site-global-styles-sidebar__navigator-screen",e].filter(Boolean).join(" "),...t})}function Il({parentMenu:e,blockStyles:t,blockName:n}){return t.map(((t,a)=>(0,l.createElement)(Ml,{key:a,path:e+"/variations/"+t.name},(0,l.createElement)(bs,{name:n,variation:t.name}))))}function Bl({name:e,parentMenu:t=""}){const n=(0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ml,{path:t+"/colors/palette"},(0,l.createElement)(Xs,{name:e})),!!n?.length&&(0,l.createElement)(Il,{parentMenu:t,blockStyles:n,blockName:e}))}function Rl(){const e=(0,y.__experimentalUseNavigator)(),{path:t}=e.location;return(0,l.createElement)(Da,{isSelected:e=>t===`/blocks/${encodeURIComponent(e)}`||t.startsWith(`/blocks/${encodeURIComponent(e)}/`),onSelect:t=>{e.goTo("/blocks/"+encodeURIComponent(t))}})}function Dl(){const e=(0,y.__experimentalUseNavigator)(),{selectedBlockName:t,selectedBlockClientId:n}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n}=e(Ee.store),a=t();return{selectedBlockName:n(a),selectedBlockClientId:a}}),[]),a=Ji(t);(0,l.useEffect)((()=>{if(!n||!a)return;const r=e.location.path;if("/blocks"!==r&&!r.startsWith("/blocks/"))return;const o="/blocks/"+encodeURIComponent(t);o!==r&&e.goTo(o,{skipFocus:!0})}),[n,t,a])}function Al(){const{goTo:e,location:t}=(0,y.__experimentalUseNavigator)(),n=(0,d.useSelect)((e=>Je(e(Bn)).getEditorCanvasContainerView()),[]);(0,l.useEffect)((()=>{"global-styles-revisions"===n?e("/revisions"):n&&"/revisions"===t?.path?e("/"):"global-styles-css"===n&&e("/css")}),[n,e])}var Ll=function(){const e=(0,c.getBlockTypes)(),t=(0,d.useSelect)((e=>Je(e(Bn)).getEditorCanvasContainerView()),[]);return(0,l.createElement)(y.__experimentalNavigatorProvider,{className:"edit-site-global-styles-sidebar__navigator-provider",initialPath:"/"},(0,l.createElement)(Ml,{path:"/"},(0,l.createElement)(Ui,null)),(0,l.createElement)(Ml,{path:"/variations"},(0,l.createElement)(ll,null)),(0,l.createElement)(Ml,{path:"/blocks"},(0,l.createElement)(ts,null)),(0,l.createElement)(Ml,{path:"/typography"},(0,l.createElement)(ks,null)),(0,l.createElement)(Ml,{path:"/typography/text"},(0,l.createElement)(Rs,{element:"text"})),(0,l.createElement)(Ml,{path:"/typography/link"},(0,l.createElement)(Rs,{element:"link"})),(0,l.createElement)(Ml,{path:"/typography/heading"},(0,l.createElement)(Rs,{element:"heading"})),(0,l.createElement)(Ml,{path:"/typography/caption"},(0,l.createElement)(Rs,{element:"caption"})),(0,l.createElement)(Ml,{path:"/typography/button"},(0,l.createElement)(Rs,{element:"button"})),(0,l.createElement)(Ml,{path:"/colors"},(0,l.createElement)(Us,null)),(0,l.createElement)(Ml,{path:"/layout"},(0,l.createElement)(sl,null)),(0,l.createElement)(Ml,{path:"/css"},(0,l.createElement)(dl,null)),(0,l.createElement)(Ml,{path:"/revisions"},(0,l.createElement)(kl,null)),e.map((e=>(0,l.createElement)(Ml,{key:"menu-block-"+e.name,path:"/blocks/"+encodeURIComponent(e.name)},(0,l.createElement)(bs,{name:e.name})))),(0,l.createElement)(Bl,null),e.map((e=>(0,l.createElement)(Bl,{key:"screens-block-"+e.name,name:e.name,parentMenu:"/blocks/"+encodeURIComponent(e.name)}))),"style-book"===t&&(0,l.createElement)(Rl,null),(0,l.createElement)(Pl,null),(0,l.createElement)(Tl,null),(0,l.createElement)(Dl,null),(0,l.createElement)(Al,null))};function Vl(){const{shouldClearCanvasContainerView:e,isStyleBookOpened:t,showListViewByDefault:n}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t}=e(O),{getEditorCanvasContainerView:n,getCanvasMode:a}=Je(e(Bn)),r="visual"===e(Bn).getEditorMode(),o="edit"===a(),i=e(x.store).get("core/edit-site","showListViewByDefault");return{isStyleBookOpened:"style-book"===n(),shouldClearCanvasContainerView:"edit-site/global-styles"!==t("core/edit-site")||!r||!o,showListViewByDefault:i}}),[]),{setEditorCanvasContainerView:a}=Je((0,d.useDispatch)(Bn));(0,l.useEffect)((()=>{e&&a(void 0)}),[e]);const{setIsListViewOpened:r}=(0,d.useDispatch)(Bn);return(0,l.createElement)(Ii,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:(0,E.__)("Styles"),icon:Vn,closeLabel:(0,E.__)("Close Styles"),panelClassName:"edit-site-global-styles-sidebar__panel",header:(0,l.createElement)(y.Flex,{className:"edit-site-global-styles-sidebar__header",role:"menubar","aria-label":(0,E.__)("Styles actions")},(0,l.createElement)(y.FlexBlock,{style:{minWidth:"min-content"}},(0,l.createElement)("strong",null,(0,E.__)("Styles"))),(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(y.Button,{icon:Zn,label:(0,E.__)("Style Book"),isPressed:t,disabled:e,onClick:()=>{r(t&&n),a(t?void 0:"style-book")}})),(0,l.createElement)(Cl,null))},(0,l.createElement)(Ll,null))}const Fl="edit-site/template",zl="edit-site/block-inspector";var Ol=({sidebarName:e})=>{const{hasPageContentFocus:t,entityType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,hasPageContentFocus:n}=e(Bn);return{hasPageContentFocus:n(),entityType:t()}})),a="wp_navigation"===n?(0,E.__)("Navigation"):(0,E.__)("Template"),{enableComplementaryArea:r}=(0,d.useDispatch)(O);let o;return o=t?e===Fl?(0,E.__)("Page (selected)"):(0,E.__)("Page"):e===Fl?(0,E.sprintf)((0,E.__)("%s (selected)"),a):a,(0,l.createElement)("ul",null,(0,l.createElement)("li",null,(0,l.createElement)(y.Button,{onClick:()=>r(Nt,Fl),className:v()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===Fl}),"aria-label":o,"data-label":t?(0,E.__)("Page"):a},t?(0,E.__)("Page"):a)),(0,l.createElement)("li",null,(0,l.createElement)(y.Button,{onClick:()=>r(Nt,zl),className:v()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===zl}),"aria-label":e===zl?(0,E.__)("Block (selected)"):(0,E.__)("Block"),"data-label":(0,E.__)("Block")},(0,E.__)("Block"))))};function Hl({className:e,title:t,icon:n,description:a,actions:r,children:o}){return(0,l.createElement)("div",{className:v()("edit-site-sidebar-card",e)},(0,l.createElement)(y.Icon,{className:"edit-site-sidebar-card__icon",icon:n}),(0,l.createElement)("div",{className:"edit-site-sidebar-card__content"},(0,l.createElement)("div",{className:"edit-site-sidebar-card__header"},(0,l.createElement)("h2",{className:"edit-site-sidebar-card__title"},t),r),(0,l.createElement)("div",{className:"edit-site-sidebar-card__description"},a),o))}const Gl=["core/post-title","core/post-featured-image","core/post-content"],{BlockQuickNavigation:Ul}=Je(Ee.privateApis);function $l(){const e=(0,d.useSelect)((e=>e(Ee.store).__experimentalGetGlobalBlocksByName(Gl)),[]);return(0,l.createElement)(Ul,{clientIds:e})}const jl=[{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Draft"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Not ready to publish."))),value:"draft"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Pending"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Waiting for review before publishing."))),value:"pending"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Private"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Only visible to site admins and editors."))),value:"private"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Scheduled"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Publish automatically on a chosen date."))),value:"future"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Published"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Visible to everyone."))),value:"publish"}];function Wl({postType:e,postId:t,status:n,password:a,date:r}){const[o,i]=(0,l.useState)(!!a),{editEntityRecord:s}=(0,d.useDispatch)(_.store),{createErrorNotice:c}=(0,d.useDispatch)(fe.store),[u,m]=(0,l.useState)(null),p=(0,l.useMemo)((()=>({anchor:u,"aria-label":(0,E.__)("Change status"),placement:"bottom-end"})),[u]),g=async({status:o=n,password:i=a,date:l=r})=>{try{await s("postType",e,t,{status:o,date:l,password:i})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");c(t,{type:"snackbar"})}},h=e=>{i(e),e||g({password:""})},v=e=>{let t=r,n=a;"publish"===e?new Date(r)>new Date&&(t=null):"future"===e?(!r||new Date(r)(0,l.createElement)(y.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},(0,l.createElement)(bi,{status:a?"protected":n})),renderContent:({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ee.__experimentalInspectorPopoverHeader,{title:(0,E.__)("Status"),onClose:e}),(0,l.createElement)("form",null,(0,l.createElement)(y.__experimentalVStack,{spacing:5},(0,l.createElement)(y.RadioControl,{className:"edit-site-change-status__options",hideLabelFromVision:!0,label:(0,E.__)("Status"),options:jl,onChange:v,selected:n}),"private"!==n&&(0,l.createElement)(y.BaseControl,{id:"edit-site-change-status__password",label:(0,E.__)("Password")},(0,l.createElement)(y.ToggleControl,{label:(0,E.__)("Hide this page behind a password"),checked:o,onChange:h}),o&&(0,l.createElement)(y.TextControl,{onChange:e=>g({password:e}),value:a,autoFocus:!a,placeholder:(0,E.__)("Enter a secure password"),type:"password"})))))}))}function Zl({postType:e,postId:t,status:n,date:a}){const{editEntityRecord:r}=(0,d.useDispatch)(_.store),{createErrorNotice:o}=(0,d.useDispatch)(fe.store),[i,s]=(0,l.useState)(null),c=(0,l.useMemo)((()=>({anchor:i,"aria-label":(0,E.__)("Change publish date"),placement:"bottom-end"})),[i]),u=async a=>{try{let o=n;"future"===n&&new Date(a)new Date&&(o="future"),await r("postType",e,t,{status:o,date:a})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");o(t,{type:"snackbar"})}},m=a?(0,Kn.humanTimeDiff)(a):(0,E.__)("Immediately");return(0,l.createElement)(y.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(y.__experimentalText,{className:"edit-site-summary-field__label"},(0,E.__)("Publish")),(0,l.createElement)(y.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:c,focusOnMount:!0,ref:s,renderToggle:({onToggle:e})=>(0,l.createElement)(y.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},m),renderContent:({onClose:e})=>(0,l.createElement)(Ee.__experimentalPublishDateTimePicker,{currentDate:a,is12Hour:!0,onClose:e,onChange:u})}))}function ql({status:e,date:t,password:n,postId:a,postType:r}){return(0,l.createElement)(y.__experimentalVStack,null,(0,l.createElement)(Wl,{status:e,date:t,password:n,postId:a,postType:r}),(0,l.createElement)(Zl,{status:e,date:t,postId:a,postType:r}))}function Yl(){const{context:e,hasResolved:t,title:n,blocks:a}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditedPostType:n,getEditedPostId:a}=e(Bn),{getEditedEntityRecord:r,hasFinishedResolution:o}=e(_.store),i=t(),s=["postType",n(),a()],l=r(...s);return{context:i,hasResolved:o("getEditedEntityRecord",s),title:l?.title,blocks:l?.blocks}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(Bn),o=(0,l.useMemo)((()=>({...e,postType:null,postId:null})),[e]);return t?(0,l.createElement)(y.__experimentalVStack,null,(0,l.createElement)("div",null,(0,Tt.decodeEntities)(n)),(0,l.createElement)("div",{className:"edit-site-page-panels__edit-template-preview"},(0,l.createElement)(Ee.BlockContextProvider,{value:o},(0,l.createElement)(Ee.BlockPreview,{viewportWidth:1024,blocks:a}))),(0,l.createElement)(y.Button,{className:"edit-site-page-panels__edit-template-button",variant:"secondary",onClick:()=>r(!1)},(0,E.__)("Edit template"))):null}function Kl(){const{id:e,type:t,hasResolved:n,status:a,date:r,password:o,title:i,modified:s}=(0,d.useSelect)((e=>{const{getEditedPostContext:t}=e(Bn),{getEditedEntityRecord:n,hasFinishedResolution:a}=e(_.store),r=t(),o=["postType",r.postType,r.postId],i=n(...o);return{hasResolved:a("getEditedEntityRecord",o),title:i?.title,id:i?.id,type:i?.type,status:i?.status,date:i?.date,password:i?.password,modified:i?.modified}}),[]);return n?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.PanelBody,null,(0,l.createElement)(Hl,{title:(0,Tt.decodeEntities)(i),icon:Fn,description:(0,l.createElement)(y.__experimentalVStack,null,(0,l.createElement)(y.__experimentalText,null,(0,E.sprintf)((0,E.__)("Last edited %s"),(0,Kn.humanTimeDiff)(s))))})),(0,l.createElement)(y.PanelBody,{title:(0,E.__)("Summary")},(0,l.createElement)(ql,{status:a,date:r,password:o,postId:e,postType:t})),(0,l.createElement)(y.PanelBody,{title:(0,E.__)("Content")},(0,l.createElement)($l,null)),(0,l.createElement)(y.PanelBody,{title:(0,E.__)("Template")},(0,l.createElement)(Yl,null))):null}function Xl({template:e}){const{revertTemplate:t}=(0,d.useDispatch)(Bn);return Pt(e)?(0,l.createElement)(y.DropdownMenu,{icon:oe,label:(0,E.__)("Actions"),className:"edit-site-template-card__actions",toggleProps:{isSmall:!0}},(({onClose:n})=>(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{t(e),n()}},(0,E.__)("Clear customizations"))))):null}function Ql({area:e,clientId:t}){const{selectBlock:n,toggleBlockHighlight:a}=(0,d.useDispatch)(Ee.store),r=(0,d.useSelect)((t=>t(g.store).__experimentalGetDefaultTemplatePartAreas().find((t=>t.area===e))),[e]),o=()=>a(t,!0),i=()=>a(t,!1);return(0,l.createElement)(y.Button,{className:"edit-site-template-card__template-areas-item",icon:r?.icon,onMouseOver:o,onMouseLeave:i,onFocus:o,onBlur:i,onClick:()=>{n(t)}},r?.label)}function Jl(){const e=(0,d.useSelect)((e=>e(Bn).getCurrentTemplateTemplateParts()),[]);return e.length?(0,l.createElement)("section",{className:"edit-site-template-card__template-areas"},(0,l.createElement)(y.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},(0,E.__)("Areas")),(0,l.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map((({templatePart:e,block:t})=>(0,l.createElement)("li",{key:e.slug},(0,l.createElement)(Ql,{area:e.area,clientId:t.clientId})))))):null}const ec=()=>{var e,t;const{record:n}=no();return{currentTemplate:n,lastRevisionId:null!==(e=n?._links?.["predecessor-version"]?.[0]?.id)&&void 0!==e?e:null,revisionsCount:null!==(t=n?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}};function tc({children:e}){const{lastRevisionId:t,revisionsCount:n}=ec();return!t||n<2?null:(0,l.createElement)(g.PostTypeSupportCheck,{supportKeys:"revisions"},e)}const nc=()=>{const{lastRevisionId:e,revisionsCount:t}=ec();return(0,l.createElement)(tc,null,(0,l.createElement)(y.Button,{href:(0,ut.addQueryArgs)("revision.php",{revision:e,gutenberg:!0}),className:"edit-site-template-last-revision__title",icon:Wn},(0,E.sprintf)((0,E._n)("%d Revision","%d Revisions",t),t)))};function ac(){return(0,l.createElement)(tc,null,(0,l.createElement)(nc,null))}function rc(){const{info:{title:e,description:t,icon:n},record:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Bn),{getEditedEntityRecord:a}=e(_.store),{__experimentalGetTemplateInfo:r}=e(g.store),o=a("postType",t(),n());return{info:o?r(o):{},record:o}}),[]);return e||t?(0,l.createElement)(y.PanelBody,{className:"edit-site-template-panel"},(0,l.createElement)(Hl,{className:"edit-site-template-card",title:(0,Tt.decodeEntities)(e),icon:"wp_navigation"===a?.type?Ln:n,description:(0,Tt.decodeEntities)(t),actions:(0,l.createElement)(Xl,{template:a})},(0,l.createElement)(Jl,null)),(0,l.createElement)(y.PanelRow,{header:(0,E.__)("Editing history"),className:"edit-site-template-revisions"},(0,l.createElement)(ac,null))):null}const{Fill:oc,Slot:ic}=(0,y.createSlotFill)("PluginTemplateSettingPanel"),sc=oc;sc.Slot=ic;var lc=sc;const{Slot:cc,Fill:uc}=(0,y.createSlotFill)("EditSiteSidebarInspector"),dc=uc;function mc(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n,supportsGlobalStyles:a,hasPageContentFocus:r}=(0,d.useSelect)((e=>{const t=e(O).getActiveComplementaryArea(Nt),n=[zl,Fl].includes(t),a=e(Bn).getSettings();return{sidebar:t,isEditorSidebarOpened:n,hasBlockSelection:!!e(Ee.store).getBlockSelectionStart(),supportsGlobalStyles:!a?.supportsTemplatePartsMode,hasPageContentFocus:e(Bn).hasPageContentFocus()}}),[]),{enableComplementaryArea:o}=(0,d.useDispatch)(O);(0,l.useEffect)((()=>{t&&(n?r||o(Nt,zl):o(Nt,Fl))}),[n,t,r]);let i=e;return t||(i=n?zl:Fl),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ii,{identifier:i,title:(0,E.__)("Settings"),icon:(0,E.isRTL)()?Pi:Mi,closeLabel:(0,E.__)("Close Settings"),header:(0,l.createElement)(Ol,{sidebarName:i}),headerClassName:"edit-site-sidebar-edit-mode__panel-tabs"},i===Fl&&(0,l.createElement)(l.Fragment,null,r?(0,l.createElement)(Kl,null):(0,l.createElement)(rc,null),(0,l.createElement)(lc.Slot,null)),i===zl&&(0,l.createElement)(cc,{bubblesVirtually:!0})),a&&(0,l.createElement)(Vl,null))}var pc=window.wp.reusableBlocks;function _c({clientId:e,onClose:t}){const{getBlocks:n}=(0,d.useSelect)(Ee.store),{replaceBlocks:a}=(0,d.useDispatch)(Ee.store);return(0,d.useSelect)((t=>t(Ee.store).canRemoveBlock(e)),[e])?(0,l.createElement)(y.MenuItem,{onClick:()=>{a(e,n(e)),t()}},(0,E.__)("Detach blocks from template part")):null}var gc=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function hc({clientIds:e,blocks:t}){const[n,a]=(0,l.useState)(!1),{replaceBlocks:r}=(0,d.useDispatch)(Ee.store),{createSuccessNotice:o}=(0,d.useDispatch)(fe.store),{canCreate:i}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Bn).getSettings();return{canCreate:!t}}),[]);if(!i)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuItem,{icon:gc,onClick:()=>{a(!0)}},(0,E.__)("Create template part")),n&&(0,l.createElement)(or,{closeModal:()=>{a(!1)},blocks:t,onCreate:async t=>{r(e,(0,c.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),o((0,E.__)("Template part created."),{type:"snackbar"})}}))}function vc(){return(0,l.createElement)(Ee.BlockSettingsMenuControls,null,(({selectedClientIds:e,onClose:t})=>(0,l.createElement)(yc,{clientIds:e,onClose:t})))}function yc({clientIds:e,onClose:t}){const n=(0,d.useSelect)((t=>t(Ee.store).getBlocksByClientId(e)),[e]);return 1===n.length&&"core/template-part"===n[0]?.name?(0,l.createElement)(_c,{clientId:e[0],onClose:t}):(0,l.createElement)(hc,{clientIds:e,blocks:n})}var Ec=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));const{useLocation:fc,useHistory:bc}=Je(ct.privateApis);var wc=function(){const e=fc(),t=bc(),n="wp_template_part"===e.params.postType,a="wp_navigation"===e.params.postType,r=e.state?.fromTemplateId;return(n||a)&&r?(0,l.createElement)(y.Button,{className:"edit-site-visual-editor__back-button",icon:Ec,onClick:()=>{t.back()}},(0,E.__)("Back")):null};var Sc=function({enableResizing:e,settings:t,children:n,...a}){const{canvasMode:r,deviceType:o,isZoomOutMode:i}=(0,d.useSelect)((e=>({deviceType:e(Bn).__experimentalGetPreviewDeviceType(),isZoomOutMode:"zoom-out"===e(Ee.store).__unstableGetEditorMode(),canvasMode:Je(e(Bn)).getCanvasMode()})),[]),{setCanvasMode:s}=Je((0,d.useDispatch)(Bn)),c=(0,Ee.__experimentalUseResizeCanvas)(o),u=(0,Ee.__unstableUseMouseMoveTypingReset)(),[m,p]=(0,l.useState)(!1);(0,l.useEffect)((()=>{"edit"===r&&p(!1)}),[r]);const _={"aria-label":(0,E.__)("Editor Canvas"),role:"button",tabIndex:0,onFocus:()=>p(!0),onBlur:()=>p(!1),onKeyDown:e=>{const{keyCode:t}=e;t!==Xn.ENTER&&t!==Xn.SPACE||(e.preventDefault(),s("edit"))},onClick:()=>s("edit"),readonly:!0};return(0,l.createElement)(Ee.__unstableIframe,{expand:i,scale:i?.45:void 0,frameSize:i?100:void 0,style:e?{}:c,ref:u,name:"editor-canvas",className:v()("edit-site-visual-editor__editor-canvas",{"is-focused":m&&"view"===r}),...a,..."view"===r?_:{}},(0,l.createElement)(Ee.__unstableEditorStyles,{styles:t.styles}),(0,l.createElement)("style",null,`.is-root-container{display:flow-root;${e?"min-height:0!important;":""}}body{position:relative; ${"view"===r?"cursor: pointer;":""}}}`),n)};const kc=(e,t)=>`${t}`,Cc=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,xc=e=>{const{title:t,foreign_landing_url:n,creator:a,creator_url:r,license:o,license_version:i,license_url:s}=e,l=((e,t)=>{let n=e.trim();return"pdm"!==e&&(n=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(n+=` ${t}`),["pdm","cc0"].includes(e)||(n=`CC ${n}`),n})(o,i),c=(0,Tt.decodeEntities)(a);let u;return u=c?t?(0,E.sprintf)((0,E._x)('"%1$s" by %2$s/ %3$s',"caption"),kc(n,(0,Tt.decodeEntities)(t)),r?kc(r,c):c,s?kc(`${s}?ref=openverse`,l):l):(0,E.sprintf)((0,E._x)("Work by %2$s/ %3$s","caption"),Cc(n),r?kc(r,c):c,s?kc(`${s}?ref=openverse`,l):l):t?(0,E.sprintf)((0,E._x)('"%1$s"/ %2$s',"caption"),kc(n,(0,Tt.decodeEntities)(t)),s?kc(`${s}?ref=openverse`,l):l):(0,E.sprintf)((0,E._x)("Work/ %3$s","caption"),Cc(n),s?kc(`${s}?ref=openverse`,l):l),u.replace(/\s{2}/g," ")},Tc=async(e={})=>(await(0,d.resolveSelect)(_.store).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map((e=>({...e,alt:e.alt_text,url:e.source_url,previewUrl:e.media_details?.sizes?.medium?.source_url,caption:e.caption?.raw})));var Nc=[{name:"images",labels:{name:(0,E.__)("Images"),search_items:(0,E.__)("Search images")},mediaType:"image",async fetch(e={}){return Tc({...e,media_type:"image"})}},{name:"videos",labels:{name:(0,E.__)("Videos"),search_items:(0,E.__)("Search videos")},mediaType:"video",async fetch(e={}){return Tc({...e,media_type:"video"})}},{name:"audio",labels:{name:(0,E.__)("Audio"),search_items:(0,E.__)("Search audio")},mediaType:"audio",async fetch(e={}){return Tc({...e,media_type:"audio"})}},{name:"openverse",labels:{name:(0,E.__)("Openverse"),search_items:(0,E.__)("Search Openverse")},mediaType:"image",async fetch(e={}){const t={...e,mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"},n={per_page:"page_size",search:"q"},a=new URL("https://api.openverse.engineering/v1/images/");Object.entries(t).forEach((([e,t])=>{const r=n[e]||e;a.searchParams.set(r,t)}));const r=await window.fetch(a,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}});return(await r.json()).results.map((e=>({...e,title:e.title?.toLowerCase().startsWith("file:")?e.title.slice(5):e.title,sourceId:e.id,id:void 0,caption:xc(e),previewUrl:e.thumbnail})))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}];function Pc(e){var t,n;const{storedSettings:a}=(0,d.useSelect)((e=>{const{getSettings:t}=Je(e(Bn));return{storedSettings:t()}}),[]),r=null!==(t=a.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:a.__experimentalBlockPatterns,o=null!==(n=a.__experimentalAdditionalBlockPatternCategories)&&void 0!==n?n:a.__experimentalBlockPatternCategories,{restBlockPatterns:i,restBlockPatternCategories:s}=(0,d.useSelect)((e=>({restBlockPatterns:e(_.store).getBlockPatterns(),restBlockPatternCategories:e(_.store).getBlockPatternCategories()})),[]),c=(0,l.useMemo)((()=>[...r||[],...i||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name)))).filter((({postTypes:t})=>!t||Array.isArray(t)&&t.includes(e)))),[r,i,e]),u=(0,l.useMemo)((()=>[...o||[],...s||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))),[o,s]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,__experimentalAdditionalBlockPatternCategories:t,...n}=a;return{...n,inserterMediaCategories:Nc,__experimentalBlockPatterns:c,__experimentalBlockPatternCategories:u,templateLock:!1,template:!1}}),[a,c,u])}const Mc=["wp_template_part","wp_navigation"],{useBlockEditingMode:Ic}=Je(Ee.privateApis);function Bc(){Ic("disabled"),(0,l.useEffect)((()=>((0,he.addFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks",Rc),()=>(0,he.removeFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks"))),[])}const Rc=(0,te.createHigherOrderComponent)((e=>t=>{const n=Gl.includes(t.name);return Ic(n?"contentOnly":void 0),(0,l.createElement)(e,{...t})}),"withDisableNonPageContentBlocks");function Dc({contentRef:e}){const t=(0,d.useSelect)((e=>e(Bn).hasPageContentFocus()),[]),{getNotices:n}=(0,d.useSelect)(fe.store),{createInfoNotice:a,removeNotice:r}=(0,d.useDispatch)(fe.store),{setHasPageContentFocus:o}=(0,d.useDispatch)(Bn),[i,s]=(0,l.useState)(!1),c=(0,l.useRef)(0);return(0,l.useEffect)((()=>{const i=async e=>{if(!t)return;if(!e.target.classList.contains("is-root-container"))return;const r=n().some((e=>e.id===c.current));if(r)return;const{notice:i}=await a((0,E.__)("Edit your template to edit this block."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,E.__)("Edit template"),onClick:()=>o(!1)}]});c.current=i.id},l=e=>{t&&e.target.classList.contains("is-root-container")&&(c.current&&r(c.current),s(!0))},u=e.current;return u?.addEventListener("click",i),u?.addEventListener("dblclick",l),()=>{u?.removeEventListener("click",i),u?.removeEventListener("dblclick",l)}}),[c,t,e.current]),(0,l.createElement)(y.__experimentalConfirmDialog,{isOpen:i,confirmButtonText:(0,E.__)("Edit template"),onConfirm:()=>{s(!1),o(!1)},onCancel:()=>s(!1)},(0,E.__)("Edit your template to edit this block."))}function Ac(){return function(){const{isPage:e,hasPageContentFocus:t}=(0,d.useSelect)((e=>({isPage:e(Bn).isPage(),hasPageContentFocus:e(Bn).hasPageContentFocus()})),[]),n=(0,l.useRef)(!1),a=(0,l.useRef)(!1),{createInfoNotice:r}=(0,d.useDispatch)(fe.store),{setHasPageContentFocus:o}=(0,d.useDispatch)(Bn);(0,l.useEffect)((()=>{!n.current&&e&&a.current&&!t&&(r((0,E.__)("You are editing a template."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,E.__)("Back to page"),onClick:()=>o(!0)}]}),n.current=!0),a.current=t}),[n,e,a,t,r,o])}(),null}function Lc({contentRef:e}){const t=(0,d.useSelect)((e=>e(Bn).hasPageContentFocus()),[]);return(0,l.createElement)(l.Fragment,null,t&&(0,l.createElement)(Bc,null),(0,l.createElement)(Dc,{contentRef:e}),(0,l.createElement)(Ac,null))}const Vc={type:"default",alignments:[]};function Fc(){const{clearSelectedBlock:e}=(0,d.useDispatch)(Ee.store),{templateType:t,isFocusMode:n,isViewMode:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getCanvasMode:n}=Je(e(Bn)),a=t();return{templateType:a,isFocusMode:Mc.includes(a),isViewMode:"view"===n()}}),[]),[r,o]=(0,te.useResizeObserver)(),i=Pc(),{hasBlocks:s}=(0,d.useSelect)((e=>{const{getBlockCount:t}=e(Ee.store);return{hasBlocks:!!t()}}),[]),c=(0,te.useViewportMatch)("small","<"),u=n&&!a&&!c,m=(0,l.useRef)(),p=(0,te.useMergeRefs)([m,(0,Ee.__unstableUseClipboardHandler)(),(0,Ee.__unstableUseTypingObserver)()]),_="wp_navigation"===t,g=!(_&&n&&s||a)&&void 0;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ta.Slot,null,(([t])=>{var s;return t?(0,l.createElement)("div",{className:"edit-site-visual-editor is-focus-mode"},t):(0,l.createElement)(Ee.BlockTools,{className:v()("edit-site-visual-editor",{"is-focus-mode":n||!!t,"is-view-mode":a}),__unstableContentRef:m,onClick:t=>{t.target===t.currentTarget&&e()}},(0,l.createElement)(Ee.BlockEditorKeyboardShortcuts.Register,null),(0,l.createElement)(wc,null),(0,l.createElement)(fa,{enableResizing:u,height:null!==(s=o.height)&&void 0!==s?s:"100%"},(0,l.createElement)(Sc,{enableResizing:u,settings:i,contentRef:p,readonly:a},r,(0,l.createElement)(Ee.BlockList,{className:v()("edit-site-block-editor__block-list wp-site-blocks",{"is-navigation-block":_}),layout:Vc,renderAppender:g}))))})),(0,l.createElement)(Lc,{contentRef:m}))}const{ExperimentalBlockEditorProvider:zc}=Je(Ee.privateApis);function Oc({children:e}){const t=Pc(),{templateType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=Je(e(Bn));return{templateType:t()}}),[]),[a,r,o]=(0,_.useEntityBlockEditor)("postType",n);return(0,l.createElement)(zc,{settings:t,value:a,onInput:r,onChange:o,useSubRegistry:!1},e)}const{ExperimentalBlockEditorProvider:Hc}=Je(Ee.privateApis),Gc=()=>{};function Uc({children:e}){const t=Pc(),n=(0,_.useEntityId)("postType","wp_navigation"),a=(0,l.useMemo)((()=>[(0,c.createBlock)("core/navigation",{ref:n,templateLock:!1})]),[n]),{isEditMode:r}=(0,d.useSelect)((e=>{const{getCanvasMode:t}=Je(e(Bn));return{isEditMode:"edit"===t()}}),[]),{selectBlock:o,setBlockEditingMode:i,unsetBlockEditingMode:s}=Je((0,d.useDispatch)(Ee.store)),u=a&&a[0]?.clientId,m=(0,l.useMemo)((()=>({...t,templateLock:"insert",template:[["core/navigation",{},[]]]})),[t]);return(0,l.useEffect)((()=>{u&&r&&o(u)}),[u,r,o]),(0,l.useEffect)((()=>{if(u)return i(u,"contentOnly"),()=>{s(u)}}),[u,s,i]),(0,l.createElement)(Hc,{settings:m,value:a,onInput:Gc,onChange:Gc,useSubRegistry:!1},e)}function $c(){const e=function(e){let t=null;t="wp_navigation"===e?Uc:Oc;return t}((0,d.useSelect)((e=>e(Bn).getEditedPostType()),[]));return(0,l.createElement)(e,null,(0,l.createElement)(vc,null),(0,l.createElement)(dc,null,(0,l.createElement)(Ee.BlockInspector,null)),(0,l.createElement)(Fc,null),(0,l.createElement)(pc.ReusableBlocksMenuItems,null))}var jc=n(773);function Wc({value:e,onChange:t,onInput:n}){const[a,r]=(0,l.useState)(e),[o,i]=(0,l.useState)(!1),s=(0,te.useInstanceId)(Wc),c=(0,l.useRef)();o||a===e||r(e);return(0,l.useEffect)((()=>()=>{c.current&&t(c.current)}),[]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.VisuallyHidden,{as:"label",htmlFor:`code-editor-text-area-${s}`},(0,E.__)("Type text or HTML")),(0,l.createElement)(jc.Z,{autoComplete:"off",dir:"auto",value:a,onChange:e=>{const t=e.target.value;n(t),r(t),i(!0),c.current=t},onBlur:()=>{o&&(t(a),i(!1))},className:"edit-site-code-editor-text-area",id:`code-editor-text-area-${s}`,placeholder:(0,E.__)("Start writing with text or HTML")}))}function Zc(){const{templateType:e,shortcut:t}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=e(Bn),{getShortcutRepresentation:n}=e(Rn.store);return{templateType:t(),shortcut:n("core/edit-site/toggle-mode")}}),[]),[n,a]=(0,_.useEntityProp)("postType",e,"content"),[r,,o]=(0,_.useEntityBlockEditor)("postType",e);let i;i=n instanceof Function?n({blocks:r}):r?(0,c.__unstableSerializeAndClean)(r):n;const{switchEditorMode:s}=(0,d.useDispatch)(Bn);return(0,l.createElement)("div",{className:"edit-site-code-editor"},(0,l.createElement)("div",{className:"edit-site-code-editor__toolbar"},(0,l.createElement)("h2",null,(0,E.__)("Editing code")),(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>s("visual"),shortcut:t},(0,E.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-site-code-editor__body"},(0,l.createElement)(Wc,{value:i,onChange:e=>{o((0,c.parse)(e),{selection:void 0})},onInput:a})))}var qc=function(){const{getEditorMode:e}=(0,d.useSelect)(Bn),t=(0,d.useSelect)((e=>e(Bn).isListViewOpened()),[]),n=(0,d.useSelect)((e=>e(O).getActiveComplementaryArea(Bn.name)===zl),[]),{redo:a,undo:r}=(0,d.useDispatch)(_.store),{isFeatureActive:o,setIsListViewOpened:i,switchEditorMode:s,toggleFeature:l,setIsInserterOpened:u,closeGeneralSidebar:m}=(0,d.useDispatch)(Bn),{enableComplementaryArea:p,disableComplementaryArea:g}=(0,d.useDispatch)(O),{replaceBlocks:h}=(0,d.useDispatch)(Ee.store),{getBlockName:v,getSelectedBlockClientId:y,getBlockAttributes:f}=(0,d.useSelect)(Ee.store),{set:b}=(0,d.useDispatch)(x.store),{createInfoNotice:w}=(0,d.useDispatch)(fe.store),S=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",a=y();if(null===a)return;const r=v(a);if("core/paragraph"!==r&&"core/heading"!==r)return;const o=f(a),i="core/paragraph"===r?"align":"textAlign",s="core/paragraph"===n?"align":"textAlign";h(a,(0,c.createBlock)(n,{level:t,content:o.content,[s]:o[i]}))};return(0,Rn.useShortcut)("core/edit-site/undo",(e=>{r(),e.preventDefault()})),(0,Rn.useShortcut)("core/edit-site/redo",(e=>{a(),e.preventDefault()})),(0,Rn.useShortcut)("core/edit-site/toggle-list-view",(()=>{t||i(!0)})),(0,Rn.useShortcut)("core/edit-site/toggle-block-settings-sidebar",(e=>{e.preventDefault(),n?g(Nt):p(Nt,zl)})),(0,Rn.useShortcut)("core/edit-site/toggle-mode",(()=>{s("visual"===e()?"text":"visual")})),(0,Rn.useShortcut)("core/edit-site/transform-heading-to-paragraph",(e=>S(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,Rn.useShortcut)(`core/edit-site/transform-paragraph-to-heading-${e}`,(t=>S(t,e)))})),(0,Rn.useShortcut)("core/edit-site/toggle-distraction-free",(()=>{b("core/edit-site","fixedToolbar",!1),u(!1),i(!1),m(),l("distractionFree"),w(o("distractionFree")?(0,E.__)("Distraction free mode turned on."):(0,E.__)("Distraction free mode turned off."),{id:"core/edit-site/distraction-free-mode/notice",type:"snackbar"})})),null};var Yc=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Kc(){const{setIsInserterOpened:e}=(0,d.useDispatch)(Bn),t=(0,d.useSelect)((e=>e(Bn).__experimentalGetInsertionPoint()),[]),n=(0,te.useViewportMatch)("medium","<"),a=n?"div":y.VisuallyHidden,[r,o]=(0,te.__experimentalUseDialog)({onClose:()=>e(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...o,className:"edit-site-editor__inserter-panel"},(0,l.createElement)(a,{className:"edit-site-editor__inserter-panel-header"},(0,l.createElement)(y.Button,{icon:Yc,label:(0,E.__)("Close block inserter"),onClick:()=>e(!1)})),(0,l.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},(0,l.createElement)(Ee.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue,ref:i})))}const{PrivateListView:Xc}=Je(Ee.privateApis);function Qc(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Bn),t=(0,te.useFocusOnMount)("firstElement"),n=(0,te.useFocusReturn)(),a=(0,te.useFocusReturn)();const[r,o]=(0,l.useState)(null),i=(0,l.useRef)(),s=(0,l.useRef)(),c=(0,l.useRef)();return(0,Rn.useShortcut)("core/edit-site/toggle-list-view",(()=>{i.current.contains(i.current.ownerDocument.activeElement)?e(!1):function(){const e=gi.focus.tabbable.find(c.current)[0];(i.current.contains(e)?e:s.current).focus()}()})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==Xn.ESCAPE||t.defaultPrevented||e(!1)},ref:i},(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-header",ref:n},(0,l.createElement)("strong",null,(0,E.__)("List View")),(0,l.createElement)(y.Button,{icon:C,label:(0,E.__)("Close"),onClick:()=>e(!1),ref:s})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-content",ref:(0,te.useMergeRefs)([a,t,o,c])},(0,l.createElement)(Xc,{dropZoneElement:r})))}function Jc({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-site-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function eu(){const{toggle:e}=(0,d.useDispatch)(x.store);return(0,d.useSelect)((e=>!!e(x.store).get("core/edit-site","welcomeGuide")),[])?(0,l.createElement)(y.Guide,{className:"edit-site-welcome-guide",contentLabel:(0,E.__)("Welcome to the site editor"),finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuide"),pages:[{image:(0,l.createElement)(Jc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Edit your site")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Design everything on your site — from the header right down to the footer — using blocks.")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,l.createInterpolateElement)((0,E.__)("Click to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:(0,l.createElement)("img",{alt:(0,E.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]}):null}function tu(){const{toggle:e}=(0,d.useDispatch)(x.store),{isActive:t,isStylesOpen:n}=(0,d.useSelect)((e=>{const t=e(O).getActiveComplementaryArea(Bn.name);return{isActive:!!e(x.store).get("core/edit-site","welcomeGuideStyles"),isStylesOpen:"edit-site/global-styles"===t}}),[]);if(!t||!n)return null;const a=(0,E.__)("Welcome to Styles");return(0,l.createElement)(y.Guide,{className:"edit-site-welcome-guide",contentLabel:a,finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuideStyles"),pages:[{image:(0,l.createElement)(Jc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},a),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:(0,l.createElement)(Jc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Set the design")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle! ")))},{image:(0,l.createElement)(Jc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Personalize blocks")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:(0,l.createElement)(Jc,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Learn more")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("New to block themes and styling your site? "),(0,l.createElement)(y.ExternalLink,{href:(0,E.__)("https://wordpress.org/documentation/article/styles-overview/")},(0,E.__)("Here’s a detailed guide to learn how to make the most of it."))))}]})}function nu(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(eu,null),(0,l.createElement)(tu,null))}function au({fallbackContent:e,onChoosePattern:t,postType:n}){const[,,a]=(0,_.useEntityBlockEditor)("postType",n),r=function(e){const{slug:t,patterns:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Bn),{getEntityRecord:a}=e(_.store),r=n(),o=a("postType",t(),r),{getSettings:i}=e(Ee.store);return{slug:o.slug,patterns:i().__experimentalBlockPatterns}}),[]);return(0,l.useMemo)((()=>[{name:"fallback",blocks:(0,c.parse)(e),title:(0,E.__)("Fallback content")},...n.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,c.parse)(e.content)})))]),[e,t,n])}(e),o=(0,te.useAsyncList)(r);return(0,l.createElement)(Ee.__experimentalBlockPatternsList,{blockPatterns:r,shownPatterns:o,onClickPattern:(e,n)=>{a(n,{selection:void 0}),t()}})}function ru({slug:e,isCustom:t,onClose:n,postType:a}){const r=function(e,t=!1){const[n,a]=(0,l.useState)("");return(0,l.useEffect)((()=>{Ct()({path:(0,ut.addQueryArgs)("/wp/v2/templates/lookup",{slug:e,is_custom:t,ignore_empty:!0})}).then((({content:e})=>a(e.raw)))}),[t,e]),n}(e,t);return r?(0,l.createElement)(y.Modal,{className:"edit-site-start-template-options__modal",title:(0,E.__)("Choose a pattern"),closeLabel:(0,E.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:n,isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-start-template-options__modal-content"},(0,l.createElement)(au,{fallbackContent:r,slug:e,isCustom:t,postType:a,onChoosePattern:()=>{n()}})),(0,l.createElement)(y.Flex,{className:"edit-site-start-template-options__modal__actions",justify:"flex-end",expanded:!1},(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(y.Button,{variant:"tertiary",onClick:n},(0,E.__)("Skip"))))):null}const ou="INITIAL",iu="CLOSED";function su(){const[e,t]=(0,l.useState)(ou),{shouldOpenModal:n,slug:a,isCustom:r,postType:o}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Bn),a=t(),r=n(),{getEditedEntityRecord:o,hasEditsForEntityRecord:i}=e(_.store),s=o("postType",a,r);return{shouldOpenModal:!i("postType",a,r)&&""===s.content&&"wp_template"===a&&!e(x.store).get("core/edit-site","welcomeGuide"),slug:s.slug,isCustom:s.is_custom,postType:a}}),[]);return e===ou&&!n||e===iu?null:(0,l.createElement)(ru,{slug:a,isCustom:r,postType:o,onClose:()=>t(iu)})}const{useGlobalStylesOutput:lu}=Je(Ee.privateApis);function cu(){return function(){const[e,t]=lu(),{getSettings:n}=(0,d.useSelect)(Bn),{updateSettings:a}=(0,d.useDispatch)(Bn);(0,l.useEffect)((()=>{var r;if(!e||!t)return;const o=n(),i=Object.values(null!==(r=o.styles)&&void 0!==r?r:[]).filter((e=>!e.isGlobalStyles));a({...o,styles:[...i,...e],__experimentalFeatures:t})}),[e,t])}(),null}const{useLocation:uu}=Je(ct.privateApis);const{useGlobalStyle:du}=Je(Ee.privateApis);function mu(){const[e]=du("color.text");return(0,l.createElement)("div",{className:"edit-site-canvas-spinner"},(0,l.createElement)(y.Spinner,{style:{color:e}}))}const{BlockRemovalWarningModal:pu}=Je(Ee.privateApis),_u={body:(0,E.__)("Editor content"),sidebar:(0,E.__)("Editor settings"),actions:(0,E.__)("Editor publish"),footer:(0,E.__)("Editor footer")},gu={wp_template:(0,E.__)("Template Part"),wp_template_part:(0,E.__)("Template Part"),wp_block:(0,E.__)("Pattern")};function hu({isLoading:e}){const{record:t,getTitle:n,isLoaded:a}=no(),{id:r,type:o}=t,{context:i,editorMode:s,canvasMode:c,blockEditorMode:u,isRightSidebarOpen:m,isInserterOpen:p,isListViewOpen:h,showIconLabels:f,showBlockBreadcrumbs:b,hasPageContentFocus:w}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditorMode:n,getCanvasMode:a,isInserterOpened:r,isListViewOpened:o,hasPageContentFocus:i}=Je(e(Bn)),{__unstableGetEditorMode:s}=e(Ee.store),{getActiveComplementaryArea:l}=e(O);return{context:t(),editorMode:n(),canvasMode:a(),blockEditorMode:s(),isInserterOpen:r(),isListViewOpen:o(),isRightSidebarOpen:l(Bn.name),showIconLabels:e(x.store).get("core/edit-site","showIconLabels"),showBlockBreadcrumbs:e(x.store).get("core/edit-site","showBlockBreadcrumbs"),hasPageContentFocus:i()}}),[]),{setEditedPostContext:S}=(0,d.useDispatch)(Bn),k="edit"===c,C="view"===c||"visual"===s,T=b&&k&&C&&"zoom-out"!==u,N=k&&C&&p,P=k&&C&&h,M=h?(0,E.__)("List View"):(0,E.__)("Block Library"),I=(0,l.useMemo)((()=>{const{postType:e,postId:t,...n}=null!=i?i:{};return{...w?i:n,queryContext:[i?.queryContext||{page:1},e=>S({...i,queryContext:{...i?.queryContext,...e}})]}}),[w,i,S]);let B;if(a){var R;const e=null!==(R=gu[o])&&void 0!==R?R:(0,E.__)("Template");B=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s ‹ Editor"),n(),e)}return function(e){const t=uu(),n=(0,d.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]),a=(0,l.useRef)(!0);(0,l.useEffect)((()=>{a.current=!1}),[t]),(0,l.useEffect)((()=>{if(!a.current&&e&&n){const t=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s — WordPress"),(0,Tt.decodeEntities)(e),(0,Tt.decodeEntities)(n));document.title=t,(0,xt.speak)((0,E.sprintf)((0,E.__)("Now displaying: %s"),document.title),"assertive")}}),[e,n,t])}(a&&B),(0,l.createElement)(l.Fragment,null,e?(0,l.createElement)(mu,null):null,k&&(0,l.createElement)(nu,null),(0,l.createElement)(_.EntityProvider,{kind:"root",type:"site"},(0,l.createElement)(_.EntityProvider,{kind:"postType",type:o,id:r},(0,l.createElement)(Ee.BlockContextProvider,{value:I},(0,l.createElement)(mc,null),k&&(0,l.createElement)(su,null),(0,l.createElement)(re,{isDistractionFree:!0,enableRegionNavigation:!1,className:v()("edit-site-editor__interface-skeleton",{"show-icon-labels":f,"is-loading":e}),notices:(0,l.createElement)(g.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(cu,null),k&&(0,l.createElement)(g.EditorNotices,null),C&&t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)($c,null),(0,l.createElement)(pu,null)),"text"===s&&t&&k&&(0,l.createElement)(Zc,null),a&&!t&&(0,l.createElement)(y.Notice,{status:"warning",isDismissible:!1},(0,E.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),k&&(0,l.createElement)(qc,null)),secondarySidebar:k&&(N&&(0,l.createElement)(Kc,null)||P&&(0,l.createElement)(Qc,null)),sidebar:k&&m&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ee.Slot,{scope:"core/edit-site"}),(0,l.createElement)(vl,null)),footer:T&&(0,l.createElement)(Ee.BlockBreadcrumb,{rootLabelText:w?(0,E.__)("Page"):(0,E.__)("Template")}),labels:{..._u,secondarySidebar:M}})))))}function vu({text:e,children:t}){const n=(0,te.useCopyToClipboard)(e);return(0,l.createElement)(y.Button,{variant:"secondary",ref:n},t)}function yu({message:e,error:t}){const n=[(0,l.createElement)(vu,{key:"copy-error",text:t.stack},(0,E.__)("Copy Error"))];return(0,l.createElement)(Ee.Warning,{className:"editor-error-boundary",actions:n},e)}class Eu extends l.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,he.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,l.createElement)(yu,{message:(0,E.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}var fu=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var bu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"}));var wu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const Su=[{keyCombination:{modifier:"primary",character:"b"},description:(0,E.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,E.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,E.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,E.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,E.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,E.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,E.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,E.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,E.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,E.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function ku({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?Xn.displayShortcutList[e.modifier](e.character):e.character,a=e.modifier?Xn.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||a},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-site-keyboard-shortcut-help-modal__shortcut-key"},e))))}function Cu({description:e,keyCombination:t,aliases:n=[],ariaLabel:a}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(ku,{keyCombination:t,forceAriaLabel:a}),n.map(((e,t)=>(0,l.createElement)(ku,{keyCombination:e,forceAriaLabel:a,key:t})))))}function xu({name:e}){const{keyCombination:t,description:n,aliases:a}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:a,getShortcutAliases:r}=t(Rn.store);return{keyCombination:n(e),aliases:r(e),description:a(e)}}),[e]);return t?(0,l.createElement)(Cu,{keyCombination:t,description:n,aliases:a}):null}const Tu=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-site-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(xu,{name:e}):(0,l.createElement)(Cu,{...e}))))),Nu=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:v()("edit-site-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-site-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(Tu,{shortcuts:t})),Pu=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const a=(0,d.useSelect)((e=>e(Rn.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(Nu,{title:e,shortcuts:a.concat(n)})};function Mu({isModalActive:e,toggleModal:t}){return e?(0,l.createElement)(y.Modal,{className:"edit-site-keyboard-shortcut-help-modal",title:(0,E.__)("Keyboard shortcuts"),onRequestClose:t},(0,l.createElement)(Nu,{className:"edit-site-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-site/keyboard-shortcuts"]}),(0,l.createElement)(Pu,{title:(0,E.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(Pu,{title:(0,E.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(Pu,{title:(0,E.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,E.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,E.__)("Forward-slash")}]}),(0,l.createElement)(Nu,{title:(0,E.__)("Text formatting"),shortcuts:Su})):null}function Iu(e){const{featureName:t,onToggle:n=(()=>{}),...a}=e,r=(0,d.useSelect)((e=>!!e(x.store).get("core/edit-site",t)),[t]),{toggle:o}=(0,d.useDispatch)(x.store);return(0,l.createElement)(_e,{onChange:()=>{n(),o("core/edit-site",t)},isChecked:r,...a})}function Bu({isModalActive:e,toggleModal:t}){const n=(0,d.useRegistry)(),{closeGeneralSidebar:a,setIsListViewOpened:r,setIsInserterOpened:o}=(0,d.useDispatch)(Bn),{set:i}=(0,d.useDispatch)(x.store),s=()=>{n.batch((()=>{i("core/edit-site","fixedToolbar",!1),o(!1),r(!1),a()}))},c=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,E.__)("General"),content:(0,l.createElement)(pe,{title:(0,E.__)("Appearance"),description:(0,E.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(Iu,{featureName:"distractionFree",onToggle:s,help:(0,E.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,E.__)("Distraction free")}),(0,l.createElement)(Iu,{featureName:"focusMode",help:(0,E.__)("Highlights the current block and fades other content."),label:(0,E.__)("Spotlight mode")}),(0,l.createElement)(Iu,{featureName:"showIconLabels",label:(0,E.__)("Show button text labels"),help:(0,E.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(Iu,{featureName:"showListViewByDefault",help:(0,E.__)("Opens the block list view sidebar by default."),label:(0,E.__)("Always open list view")}),(0,l.createElement)(Iu,{featureName:"showBlockBreadcrumbs",help:(0,E.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,E.__)("Display block breadcrumbs")}))},{name:"blocks",tabLabel:(0,E.__)("Blocks"),content:(0,l.createElement)(pe,{title:(0,E.__)("Block interactions"),description:(0,E.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(Iu,{featureName:"keepCaretInsideBlock",help:(0,E.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,E.__)("Contain text cursor inside block")}))}]));return e?(0,l.createElement)(se,{closeModal:t},(0,l.createElement)(me,{sections:c})):null}const{Fill:Ru,Slot:Du}=(0,y.createSlotFill)("EditSiteToolsMoreMenuGroup");Ru.Slot=({fillProps:e})=>(0,l.createElement)(Du,{fillProps:e},(e=>e&&e.length>0));var Au=Ru,Lu=n(8981),Vu=n.n(Lu);var Fu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"}));function zu(){const{createErrorNotice:e}=(0,d.useDispatch)(fe.store);return(0,l.createElement)(y.MenuItem,{role:"menuitem",icon:Fu,onClick:async function(){try{const e=await Ct()({path:"/wp-block-editor/v1/export",parse:!1,headers:{Accept:"application/zip"}}),t=await e.blob(),n=e.headers.get("content-disposition").match(/=(.+)\.zip/),a=n[1]?n[1]:"edit-site-export";Vu()(t,a+".zip","application/zip")}catch(t){let n={};try{n=await t.json()}catch(e){}const a=n.message&&"unknown_error"!==n.code?n.message:(0,E.__)("An error occurred while creating the site export.");e(a,{type:"snackbar"})}},info:(0,E.__)("Download your theme with updated templates and styles.")},(0,E._x)("Export","site exporter menu item"))}function Ou(){const{toggle:e}=(0,d.useDispatch)(x.store);return(0,l.createElement)(y.MenuItem,{onClick:()=>e("core/edit-site","welcomeGuide")},(0,E.__)("Welcome Guide"))}function Hu(){const{createNotice:e}=(0,d.useDispatch)(fe.store),t=(0,d.useSelect)((e=>()=>{const{getEditedPostId:t,getEditedPostType:n}=e(Bn),{getEditedEntityRecord:a}=e(_.store),r=a("postType",n(),t());if(r){if("function"==typeof r.content)return r.content(r);if(r.blocks)return(0,c.__unstableSerializeAndClean)(r.blocks);if(r.content)return r.content}return""}),[]);const n=(0,te.useCopyToClipboard)(t,(function(){e("info",(0,E.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(y.MenuItem,{ref:n},(0,E.__)("Copy all blocks"))}const Gu=[{value:"visual",label:(0,E.__)("Visual editor")},{value:"text",label:(0,E.__)("Code editor")}];var Uu=function(){const{shortcut:e,mode:t}=(0,d.useSelect)((e=>({shortcut:e(Rn.store).getShortcutRepresentation("core/edit-site/toggle-mode"),isRichEditingEnabled:e(Bn).getSettings().richEditingEnabled,isCodeEditingEnabled:e(Bn).getSettings().codeEditingEnabled,mode:e(Bn).getEditorMode()})),[]),{switchEditorMode:n}=(0,d.useDispatch)(Bn),a=Gu.map((n=>n.value!==t?{...n,shortcut:e}:n));return(0,l.createElement)(y.MenuGroup,{label:(0,E.__)("Editor")},(0,l.createElement)(y.MenuItemsChoice,{choices:a,value:t,onSelect:n}))};function $u({showIconLabels:e}){const[t,n]=(0,l.useReducer)((e=>!e),!1),[a,r]=(0,l.useReducer)((e=>!e),!1),o=(0,d.useRegistry)(),i=(0,d.useSelect)((e=>e(x.store).get("core/edit-site","distractionFree")),[]),{setIsInserterOpened:s,setIsListViewOpened:c,closeGeneralSidebar:u}=(0,d.useDispatch)(Bn),{set:m}=(0,d.useDispatch)(x.store),p=()=>{o.batch((()=>{m("core/edit-site","fixedToolbar",!1),s(!1),c(!1),u()}))};return(0,Rn.useShortcut)("core/edit-site/keyboard-shortcuts",n),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ie,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuGroup,{label:(0,E._x)("View","noun")},(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"fixedToolbar",disabled:i,label:(0,E.__)("Top toolbar"),info:(0,E.__)("Access all block and document tools in a single place"),messageActivated:(0,E.__)("Top toolbar activated"),messageDeactivated:(0,E.__)("Top toolbar deactivated")}),(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"focusMode",label:(0,E.__)("Spotlight mode"),info:(0,E.__)("Focus on one block at a time"),messageActivated:(0,E.__)("Spotlight mode activated"),messageDeactivated:(0,E.__)("Spotlight mode deactivated")}),(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"distractionFree",onToggle:p,label:(0,E.__)("Distraction free"),info:(0,E.__)("Write with calmness"),messageActivated:(0,E.__)("Distraction free mode activated"),messageDeactivated:(0,E.__)("Distraction free mode deactivated"),shortcut:Xn.displayShortcut.primaryShift("\\")})),(0,l.createElement)(Uu,null),(0,l.createElement)(Z.Slot,{name:"core/edit-site/plugin-more-menu",label:(0,E.__)("Plugins"),as:y.MenuGroup,fillProps:{onClick:e}}),(0,l.createElement)(y.MenuGroup,{label:(0,E.__)("Tools")},(0,l.createElement)(zu,null),(0,l.createElement)(y.MenuItem,{onClick:n,shortcut:Xn.displayShortcut.access("h")},(0,E.__)("Keyboard shortcuts")),(0,l.createElement)(Ou,null),(0,l.createElement)(Hu,null),(0,l.createElement)(y.MenuItem,{icon:wu,role:"menuitem",href:(0,E.__)("https://wordpress.org/documentation/article/site-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,E.__)("Help"),(0,l.createElement)(y.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)"))),(0,l.createElement)(Au.Slot,{fillProps:{onClose:e}})),(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:r},(0,E.__)("Preferences")))))),(0,l.createElement)(Mu,{isModalActive:t,toggleModal:n}),(0,l.createElement)(Bu,{isModalActive:a,toggleModal:r}))}var ju=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var Wu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var Zu=(0,l.forwardRef)((function(e,t){const n=(0,d.useSelect)((e=>e(_.store).hasUndo()),[]),{undo:a}=(0,d.useDispatch)(_.store);return(0,l.createElement)(y.Button,{...e,ref:t,icon:(0,E.isRTL)()?Wu:ju,label:(0,E.__)("Undo"),shortcut:Xn.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?a:void 0})}));var qu=(0,l.forwardRef)((function(e,t){const n=(0,Xn.isAppleOS)()?Xn.displayShortcut.primaryShift("z"):Xn.displayShortcut.primary("y"),a=(0,d.useSelect)((e=>e(_.store).hasRedo()),[]),{redo:r}=(0,d.useDispatch)(_.store);return(0,l.createElement)(y.Button,{...e,ref:t,icon:(0,E.isRTL)()?ju:Wu,label:(0,E.__)("Redo"),shortcut:n,"aria-disabled":!a,onClick:a?r:void 0})}));function Yu(){return(0,d.useSelect)((e=>e(Bn).isPage()))?(0,l.createElement)(Ku,null):(0,l.createElement)(Xu,null)}function Ku(){const{hasPageContentFocus:e,hasResolved:t,isFound:n,title:a}=(0,d.useSelect)((e=>{const{hasPageContentFocus:t,getEditedPostContext:n}=e(Bn),{getEditedEntityRecord:a,hasFinishedResolution:r}=e(_.store),o=n(),i=["postType",o.postType,o.postId],s=a(...i);return{hasPageContentFocus:t(),hasResolved:r("getEditedEntityRecord",i),isFound:!!s,title:s?.title}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(Bn),[o,i]=(0,l.useState)(!1),s=(0,l.useRef)(!1);return(0,l.useEffect)((()=>{s.current&&!e&&i(!0),s.current=e}),[e]),t?n?e?(0,l.createElement)(Qu,{className:v()("is-page",{"is-animated":o}),icon:Fn},a):(0,l.createElement)(Xu,{className:"is-animated",onBack:()=>r(!0)}):(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,E.__)("Document not found")):null}function Xu({className:e,onBack:t}){const{isLoaded:n,record:a,getTitle:r,icon:o}=no();if(!n)return null;if(!a)return(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,E.__)("Document not found"));const i=function(e){let t="";switch(e){case"wp_navigation":t="navigation menu";break;case"wp_template_part":t="template part";break;default:t="template"}return t}(a.type);return(0,l.createElement)(Qu,{className:e,icon:"wp_navigation"===a.type?Ln:o,onBack:t},(0,l.createElement)(y.VisuallyHidden,{as:"span"},(0,E.sprintf)((0,E.__)("Editing %s: "),i)),r())}function Qu({className:e,icon:t,children:n,onBack:a}){const{open:r}=(0,d.useDispatch)(Dn.store);return(0,l.createElement)("div",{className:v()("edit-site-document-actions",e)},a&&(0,l.createElement)(y.Button,{className:"edit-site-document-actions__back",icon:Un,onClick:e=>{e.stopPropagation(),a()}},(0,E.__)("Back")),(0,l.createElement)(y.Button,{className:"edit-site-document-actions__command",onClick:()=>r()},(0,l.createElement)(y.__experimentalHStack,{className:"edit-site-document-actions__title",spacing:1,justify:"center"},(0,l.createElement)(Ee.BlockIcon,{icon:t}),(0,l.createElement)(y.__experimentalText,{size:"body",as:"h1"},n)),(0,l.createElement)("span",{className:"edit-site-document-actions__shortcut"},Xn.displayShortcut.primary("k"))))}const{useShouldContextualToolbarShow:Ju}=Je(Ee.privateApis),ed=e=>{e.preventDefault()};function td(){const e=(0,l.useRef)(),{deviceType:t,templateType:n,isInserterOpen:a,isListViewOpen:r,listViewShortcut:o,isVisualMode:i,isDistractionFree:s,blockEditorMode:c,homeUrl:u,showIconLabels:m,editorCanvasView:p}=(0,d.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t,getEditedPostType:n,isInserterOpened:a,isListViewOpened:r,getEditorMode:o}=e(Bn),{getShortcutRepresentation:i}=e(Rn.store),{__unstableGetEditorMode:s}=e(Ee.store),l=n(),{getUnstableBase:c}=e(_.store);return{deviceType:t(),templateType:l,isInserterOpen:a(),isListViewOpen:r(),listViewShortcut:i("core/edit-site/toggle-list-view"),isVisualMode:"visual"===o(),blockEditorMode:s(),homeUrl:c()?.home,showIconLabels:e(x.store).get("core/edit-site","showIconLabels"),editorCanvasView:Je(e(Bn)).getEditorCanvasContainerView(),isDistractionFree:e(x.store).get("core/edit-site","distractionFree")}}),[]),{__experimentalSetPreviewDeviceType:g,setIsInserterOpened:h,setIsListViewOpened:f}=(0,d.useDispatch)(Bn),{__unstableSetEditorMode:b}=(0,d.useDispatch)(Ee.store),w=(0,te.useReducedMotion)(),S=(0,te.useViewportMatch)("medium"),k=(0,l.useCallback)((()=>{a?(e.current.focus(),h(!1)):h(!0)}),[a,h]),C=(0,l.useCallback)((()=>f(!r)),[f,r]),{shouldShowContextualToolbar:T,canFocusHiddenToolbar:N,fixedToolbarCanBeFocused:P}=Ju(),M=T||N||P,I=!(0,y.__experimentalUseSlotFills)(Sa)?.length,B="wp_template_part"===n||"wp_navigation"===n,R=(0,E._x)("Toggle block inserter","Generic label for block inserter button"),D=a?(0,E.__)("Close"):(0,E.__)("Add"),A=window?.__experimentalEnableZoomedOutView&&i,L="zoom-out"===c,V={isDistractionFree:{y:"-50px"},isDistractionFreeHovering:{y:0},view:{y:0},edit:{y:0}},F={type:"tween",duration:w?0:.2,ease:"easeOut"};return(0,l.createElement)("div",{className:v()("edit-site-header-edit-mode",{"show-icon-labels":m})},I&&(0,l.createElement)(Ee.NavigableToolbar,{as:y.__unstableMotion.div,className:"edit-site-header-edit-mode__start","aria-label":(0,E.__)("Document tools"),shouldUseKeyboardFocusShortcut:!M,variants:V,transition:F},(0,l.createElement)("div",{className:"edit-site-header-edit-mode__toolbar"},!s&&(0,l.createElement)(y.ToolbarItem,{ref:e,as:y.Button,className:"edit-site-header-edit-mode__inserter-toggle",variant:"primary",isPressed:a,onMouseDown:ed,onClick:k,disabled:!i,icon:Za,label:m?D:R,showTooltip:!m}),S&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.ToolbarItem,{as:Ee.ToolSelector,showTooltip:!m,variant:m?"tertiary":void 0,disabled:!i}),(0,l.createElement)(y.ToolbarItem,{as:Zu,showTooltip:!m,variant:m?"tertiary":void 0}),(0,l.createElement)(y.ToolbarItem,{as:qu,showTooltip:!m,variant:m?"tertiary":void 0}),!s&&(0,l.createElement)(y.ToolbarItem,{as:y.Button,className:"edit-site-header-edit-mode__list-view-toggle",disabled:!i||L,icon:fu,isPressed:r,label:(0,E.__)("List View"),onClick:C,shortcut:o,showTooltip:!m,variant:m?"tertiary":void 0}),A&&!s&&(0,l.createElement)(y.ToolbarItem,{as:y.Button,className:"edit-site-header-edit-mode__zoom-out-view-toggle",icon:bu,isPressed:L,label:(0,E.__)("Zoom-out View"),onClick:()=>{g("desktop"),b(L?"edit":"zoom-out")}})))),!s&&(0,l.createElement)("div",{className:"edit-site-header-edit-mode__center"},I?(0,l.createElement)(Yu,null):ba(p)),(0,l.createElement)("div",{className:"edit-site-header-edit-mode__end"},(0,l.createElement)(y.__unstableMotion.div,{className:"edit-site-header-edit-mode__actions",variants:V,transition:F},!B&&I&&(0,l.createElement)("div",{className:v()("edit-site-header-edit-mode__preview-options",{"is-zoomed-out":L})},(0,l.createElement)(Ee.__experimentalPreviewOptions,{deviceType:t,setDeviceType:g,label:(0,E.__)("View")},(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{href:u,target:"_blank",icon:wu},(0,E.__)("View site"),(0,l.createElement)(y.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)")))))),(0,l.createElement)(ii,null),!s&&(0,l.createElement)(X.Slot,{scope:"core/edit-site"}),(0,l.createElement)($u,{showIconLabels:m}))))}var nd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(f.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var ad=function({className:e}){const{isRequestingSite:t,siteIconUrl:n}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","__unstableBase",void 0);return{isRequestingSite:!n,siteIconUrl:n?.site_icon_url}}),[]);if(t&&!n)return(0,l.createElement)("div",{className:"edit-site-site-icon__image"});const a=n?(0,l.createElement)("img",{className:"edit-site-site-icon__image",alt:(0,E.__)("Site Icon"),src:n}):(0,l.createElement)(y.Icon,{className:"edit-site-site-icon__icon",size:"48px",icon:nd});return(0,l.createElement)("div",{className:v()(e,"edit-site-site-icon")},a)};const rd=(0,l.forwardRef)(((e,t)=>{const{canvasMode:n,dashboardLink:a,homeUrl:r}=(0,d.useSelect)((e=>{const{getCanvasMode:t,getSettings:n}=Je(e(Bn)),{getUnstableBase:a}=e(_.store);return{canvasMode:t(),dashboardLink:n().__experimentalDashboardLink||"index.php",homeUrl:a()?.home}}),[]),{open:o}=(0,d.useDispatch)(Dn.store),i=(0,te.useReducedMotion)(),{setCanvasMode:s}=Je((0,d.useDispatch)(Bn)),{clearSelectedBlock:c}=(0,d.useDispatch)(Ee.store),u="view"===n?{href:a,label:(0,E.__)("Go back to the Dashboard")}:{href:a,role:"button",label:(0,E.__)("Open Navigation"),onClick:e=>{e.preventDefault(),"edit"===n&&(c(),s("view"))}},m=(0,d.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]);return(0,l.createElement)(y.__unstableMotion.div,{ref:t,...e,className:v()("edit-site-site-hub",e.className),initial:!1,transition:{type:"tween",duration:i?0:.3,ease:"easeOut"}},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between",alignment:"center",className:"edit-site-site-hub__container"},(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start",className:"edit-site-site-hub__text-content",spacing:"0"},(0,l.createElement)(y.__unstableMotion.div,{className:"edit-site-site-hub__view-mode-toggle-container",layout:!0,transition:{type:"tween",duration:i?0:.3,ease:"easeOut"}},(0,l.createElement)(y.Button,{...u,className:"edit-site-layout__view-mode-toggle"},(0,l.createElement)(y.__unstableMotion.div,{initial:!1,animate:{scale:"view"===n?.5:1},whileHover:{scale:"view"===n?.5:.96},transition:{type:"tween",duration:i?0:.3,ease:"easeOut"}},(0,l.createElement)(ad,{className:"edit-site-layout__view-mode-toggle-icon"})))),(0,l.createElement)(y.__unstableAnimatePresence,null,(0,l.createElement)(y.__unstableMotion.div,{layout:"edit"===n,animate:{opacity:"view"===n?1:0},exit:{opacity:0},className:"edit-site-site-hub__site-title",transition:{type:"tween",duration:i?0:.2,ease:"easeOut",delay:"view"===n?.1:0}},(0,Tt.decodeEntities)(m))),"view"===n&&(0,l.createElement)(y.Button,{href:r,target:"_blank",label:(0,E.__)("View site"),"aria-label":(0,E.__)("View site (opens in a new tab)"),icon:wu,className:"edit-site-site-hub__site-view-link"})),"view"===n&&(0,l.createElement)(y.Button,{className:"edit-site-site-hub_toggle-command-center",icon:hr,onClick:()=>o(),label:(0,E.__)("Open command center")})))}));var od=rd;const id={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};function sd(e,t){const n=((e,t,n)=>e+(t-e)*n)(t,.46153846153846156,1-Math.max(0,Math.min(1,(e-340)/960)));return e/n}var ld=function({isFullWidth:e,isReady:t,children:n,oversizedClassName:a,innerContentStyle:r}){const[o,i]=(0,l.useState)({width:"100%",height:"100%"}),[s,c]=(0,l.useState)(),[u,m]=(0,l.useState)(!1),[p,_]=(0,l.useState)(!1),[g,h]=(0,l.useState)(!1),[E,f]=(0,l.useState)(1),{setCanvasMode:b}=Je((0,d.useDispatch)(Bn)),w=(0,l.useRef)(null),S=(0,l.useRef)(null),k={type:"tween",duration:u?0:.5},C=(0,l.useRef)(null);(0,l.useEffect)((()=>{const{offsetWidth:e,offsetHeight:t}=C.current.resizable;S.current=e,w.current=e/t}),[]);const x={default:{flexGrow:0,height:o.height},fullWidth:{flexGrow:1,height:o.height}};return(0,l.createElement)(y.ResizableBox,{as:y.__unstableMotion.div,ref:C,initial:!1,variants:x,animate:e?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&i({width:"100%",height:"100%"})},transition:k,size:o,enable:{top:!1,right:!1,bottom:!1,left:t,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:E,handleClasses:void 0,handleStyles:{left:id,right:id},minWidth:340,maxWidth:e?"100%":"150%",maxHeight:"100%",onMouseOver:()=>_(!0),onMouseOut:()=>_(!1),handleComponent:{left:p||u?(0,l.createElement)(y.__unstableMotion.div,{key:"handle",className:"edit-site-resizable-frame__handle",variants:{default:{opacity:1,left:-16},resizing:{opacity:1,left:-16,scaleY:1.3}},animate:u?"resizing":"default",title:"Drag to resize",initial:{opacity:0,left:0},exit:{opacity:0,left:0},whileHover:{scaleY:1.3}}):null},onResizeStart:(e,t,n)=>{c(n.offsetWidth),m(!0)},onResize:(e,t,n,a)=>{const r=a.width/E,o=Math.abs(r),l=a.width<0?o:(S.current-s)/2,c=Math.min(o,l),u=0===o?0:c/o;f(1-u+2*u);const d=s+a.width;h(d>S.current),i({height:g?"100%":sd(d,w.current)})},onResizeStop:(e,t,n)=>{if(m(!1),!g)return;h(!1);n.ownerDocument.documentElement.offsetWidth-n.offsetWidth>200?i({width:"100%",height:"100%"}):b("edit")},className:v()("edit-site-resizable-frame__inner",{"is-resizing":u,[a]:g})},(0,l.createElement)(y.__unstableMotion.div,{className:"edit-site-resizable-frame__inner-content",animate:{borderRadius:e?0:8},transition:k,style:r},n))};const{useLocation:cd,useHistory:ud}=Je(ct.privateApis);const{useHistory:dd,useLocation:md}=Je(ct.privateApis);const{EntitiesSavedStatesExtensible:pd}=Je(g.privateApis),_d=({onClose:e})=>{const t=(0,g.useEntitiesSavedStatesIsDirty)();let n;n=t.isDirty?(0,E.__)("Activate & Save"):(0,E.__)("Activate");const{getTheme:a}=(0,d.useSelect)(_.store),r=a(mt()),o=(0,l.createElement)("p",null,(0,E.sprintf)("Saving your changes will change your active theme to %1$s.",r?.name?.rendered)),i=function(){const e=dd(),t=md();return async()=>{if(dt()){const n="themes.php?action=activate&stylesheet="+mt()+"&_wpnonce="+window.BLOCK_THEME_ACTIVATE_NONCE;await window.fetch(n);const{wp_theme_preview:a,...r}=t.params;e.replace(r)}}}();return(0,l.createElement)(pd,{...t,additionalPrompt:o,close:e,onSave:async e=>(await i(),e),saveEnabled:!0,saveLabel:n})},gd=({onClose:e})=>dt()?(0,l.createElement)(_d,{onClose:e}):(0,l.createElement)(g.EntitiesSavedStates,{close:e});function hd(){const{isSaveViewOpen:e,canvasMode:t}=(0,d.useSelect)((e=>{const{isSaveViewOpened:t,getCanvasMode:n}=Je(e(Bn));return{isSaveViewOpen:t(),canvasMode:n()}}),[]),{setIsSaveViewOpened:n}=(0,d.useDispatch)(Bn),a=()=>n(!1);return"view"===t?e?(0,l.createElement)(y.Modal,{className:"edit-site-save-panel__modal",onRequestClose:a,__experimentalHideHeader:!0,contentLabel:(0,E.__)("Save site, content, and template changes")},(0,l.createElement)(gd,{onClose:a})):null:(0,l.createElement)(ne,{className:v()("edit-site-layout__actions",{"is-entity-save-view-open":e}),ariaLabel:(0,E.__)("Save panel")},e?(0,l.createElement)(gd,{onClose:a}):(0,l.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},(0,l.createElement)(y.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:()=>n(!0),"aria-expanded":!1},(0,E.__)("Open save panel"))))}var vd=function(){const{registerShortcut:e}=(0,d.useDispatch)(Rn.store);return(0,l.useEffect)((()=>{e({name:"core/edit-site/save",category:"global",description:(0,E.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/undo",category:"global",description:(0,E.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-site/redo",category:"global",description:(0,E.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,Xn.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-site/toggle-list-view",category:"global",description:(0,E.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:(0,E.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/keyboard-shortcuts",category:"main",description:(0,E.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-site/next-region",category:"global",description:(0,E.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:(0,E.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-site/toggle-mode",category:"global",description:(0,E.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/edit-site/transform-heading-to-paragraph",category:"block-library",description:(0,E.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-site/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,E.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),e({name:"core/edit-site/toggle-distraction-free",category:"global",description:(0,E.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}})}),[e]),null};var yd=function(){const{__experimentalGetDirtyEntityRecords:e,isSavingEntityRecord:t}=(0,d.useSelect)(_.store),{setIsSaveViewOpened:n}=(0,d.useDispatch)(Bn);return(0,Rn.useShortcut)("core/edit-site/save",(a=>{a.preventDefault();const r=e(),o=!!r.length;!r.some((e=>t(e.kind,e.name,e.key)))&&o&&n(!0)})),null};var Ed=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));var fd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));const{useGlobalStylesReset:bd}=Je(Ee.privateApis),{useHistory:wd}=Je(ct.privateApis);function Sd(){const[e,t]=bd();return{isLoading:!1,commands:(0,l.useMemo)((()=>e?[{name:"core/edit-site/reset-global-styles",label:(0,E.__)("Reset styles to defaults"),icon:Ed,callback:({close:e})=>{e(),t()}}]:[]),[e,t])}}function kd(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t}=Je((0,d.useDispatch)(Bn)),n=wd(),{canEditCSS:a}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{canEditCSS:null!==(t=!!(r?n("root","globalStyles",r):void 0)?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]);return{isLoading:!1,commands:(0,l.useMemo)((()=>a?[{name:"core/edit-site/open-styles-css",label:(0,E.__)("Open CSS"),icon:Vn,callback:({close:a})=>{a(),n.push({path:"/wp_global_styles",canvas:"edit"}),e("edit-site/global-styles"),t("global-styles-css")}}]:[]),[n,e,t,a])}}var Cd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var xd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var Td=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));const{useHistory:Nd}=Je(ct.privateApis);function Pd(){const{isPage:e,canvasMode:t,hasPageContentFocus:n}=(0,d.useSelect)((e=>({isPage:e(Bn).isPage(),canvasMode:Je(e(Bn)).getCanvasMode(),hasPageContentFocus:e(Bn).hasPageContentFocus()})),[]),{setHasPageContentFocus:a}=(0,d.useDispatch)(Bn);if(!e||"edit"!==t)return{isLoading:!1,commands:[]};const r=[];return n?r.push({name:"core/switch-to-template-focus",label:(0,E.__)("Edit template"),icon:zn,callback:({close:e})=>{a(!1),e()}}):r.push({name:"core/switch-to-page-focus",label:(0,E.__)("Back to page"),icon:Fn,callback:({close:e})=>{a(!0),e()}}),{isLoading:!1,commands:r}}function Md(){const{isLoaded:e,record:t}=no(),{removeTemplate:n,revertTemplate:a}=(0,d.useDispatch)(Bn),r=Nd(),o=(0,d.useSelect)((e=>e(Bn).hasPageContentFocus()),[]);if(!e)return{isLoading:!0,commands:[]};const i=[];if(Pt(t)&&!o){const e="wp_template"===t.type?(0,E.__)("Reset template"):(0,E.__)("Reset template part");i.push({name:"core/reset-template",label:e,icon:Wn,callback:({close:e})=>{a(t),e()}})}if(co(t)&&!o){const e="wp_template"===t.type?(0,E.__)("Delete template"):(0,E.__)("Delete template part");i.push({name:"core/remove-template",label:e,icon:Ed,callback:({close:e})=>{n(t),r.push({path:"/"+t.type}),e()}})}return{isLoading:!e,commands:i}}function Id(){const{openGeneralSidebar:e,closeGeneralSidebar:t,switchEditorMode:n}=(0,d.useDispatch)(Bn),{canvasMode:a,editorMode:r,activeSidebar:o}=(0,d.useSelect)((e=>({canvasMode:Je(e(Bn)).getCanvasMode(),editorMode:e(Bn).getEditorMode(),activeSidebar:e(O).getActiveComplementaryArea(Bn.name)})),[]),{toggle:i}=(0,d.useDispatch)(x.store);if("edit"!==a)return{isLoading:!1,commands:[]};const s=[];return s.push({name:"core/open-settings-sidebar",label:(0,E.__)("Toggle settings sidebar"),icon:(0,E.isRTL)()?Pi:Mi,callback:({close:n})=>{n(),"edit-site/template"===o?t():e("edit-site/template")}}),s.push({name:"core/open-block-inspector",label:(0,E.__)("Toggle block inspector"),icon:Cd,callback:({close:n})=>{n(),"edit-site/block-inspector"===o?t():e("edit-site/block-inspector")}}),s.push({name:"core/toggle-spotlight-mode",label:(0,E.__)("Toggle spotlight mode"),icon:xd,callback:({close:e})=>{i("core/edit-site","focusMode"),e()}}),s.push({name:"core/toggle-top-toolbar",label:(0,E.__)("Toggle top toolbar"),icon:xd,callback:({close:e})=>{i("core/edit-site","fixedToolbar"),e()}}),s.push({name:"core/toggle-code-editor",label:(0,E.__)("Toggle code editor"),icon:Td,callback:({close:e})=>{n("visual"===r?"text":"visual"),e()}}),{isLoading:!1,commands:s}}function Bd({title:e,subTitle:t,actions:n}){return(0,l.createElement)(y.__experimentalHStack,{as:"header",alignment:"left",className:"edit-site-page-header"},(0,l.createElement)(y.FlexBlock,{className:"edit-site-page-header__page-title"},(0,l.createElement)(y.__experimentalHeading,{as:"h1",level:4,className:"edit-site-page-header__title"},e),t&&(0,l.createElement)(y.__experimentalText,{as:"p",className:"edit-site-page-header__sub-title"},t)),(0,l.createElement)(y.FlexItem,{className:"edit-site-page-header__actions"},n))}function Rd({title:e,subTitle:t,actions:n,children:a,className:r,hideTitleFromUI:o=!1}){const i=v()("edit-site-page",r);return(0,l.createElement)(ne,{className:i,ariaLabel:e},!o&&e&&(0,l.createElement)(Bd,{title:e,subTitle:t,actions:n}),(0,l.createElement)("div",{className:"edit-site-page-content"},a))}function Dd({data:e,columns:t}){return(0,l.createElement)("div",{className:"edit-site-table-wrapper"},(0,l.createElement)("table",{className:"edit-site-table"},(0,l.createElement)("thead",null,(0,l.createElement)("tr",null,t.map((e=>(0,l.createElement)("th",{key:e.header},e.header))))),(0,l.createElement)("tbody",null,e.map(((e,n)=>(0,l.createElement)("tr",{key:n},t.map(((t,n)=>(0,l.createElement)("td",{style:{maxWidth:t.maxWidth?t.maxWidth:void 0},key:n},t.cell(e))))))))))}function Ad(){const{records:e}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),{canCreate:t}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Bn).getSettings();return{postType:e(_.store).getPostType("wp_template"),canCreate:!t}})),n=[{header:(0,E.__)("Template"),cell:e=>(0,l.createElement)(y.__experimentalVStack,null,(0,l.createElement)(y.__experimentalHeading,{level:5},(0,l.createElement)(gt,{params:{postId:e.id,postType:e.type,canvas:"edit"}},(0,Tt.decodeEntities)(e.title?.rendered||e.slug))),e.description&&(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,Tt.decodeEntities)(e.description))),maxWidth:400},{header:(0,E.__)("Added by"),cell:e=>(0,l.createElement)(lo,{postType:e.type,postId:e.id})},{header:(0,l.createElement)(y.VisuallyHidden,null,(0,E.__)("Actions")),cell:e=>(0,l.createElement)(mo,{postType:e.type,postId:e.id})}];return(0,l.createElement)(Rd,{title:(0,E.__)("Templates"),actions:t&&(0,l.createElement)(Qr,{templateType:"wp_template",showIcon:!1,toggleProps:{variant:"primary"}})},e&&(0,l.createElement)(Dd,{data:e,columns:n}))}var Ld=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));function Vd({categoryId:e,composite:t,icon:n,item:a}){const r=`edit-site-library__pattern-description-${(0,te.useInstanceId)(Vd)}`,[o,i]=(0,l.useState)(!1),{__experimentalDeleteReusableBlock:s}=(0,d.useDispatch)(pc.store),{createErrorNotice:c,createSuccessNotice:u}=(0,d.useDispatch)(fe.store),{onClick:m}=_t({postType:a.type,postId:a.type===Qa?a.id:a.name,categoryId:e,categoryType:a.type,canvas:"edit"}),p=!a.blocks?.length,_=v()("edit-site-library__pattern",{"is-placeholder":p}),g=v()("edit-site-library__preview",{"is-inactive":a.type===Ka}),h=a.type===Qa;let f;return h?f=(0,E.__)("Press Enter to edit, or Delete to delete the pattern."):a.description&&(f=a.description),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:_},(0,l.createElement)(y.__unstableCompositeItem,{className:g,role:"option",as:"div",...t,onClick:a.type!==Ka?m:void 0,onKeyDown:h?e=>{Xn.DELETE!==e.keyCode&&Xn.BACKSPACE!==e.keyCode||i(!0)}:void 0,"aria-label":a.title,"aria-describedby":f?r:void 0},p&&(0,E.__)("Empty pattern"),!p&&(0,l.createElement)(Ee.BlockPreview,{blocks:a.blocks})),f&&(0,l.createElement)("div",{"aria-hidden":"true",style:{display:"none"},id:r},f),(0,l.createElement)(y.__experimentalHStack,{"aria-hidden":"true",className:"edit-site-library__footer",justify:"space-between"},(0,l.createElement)(y.__experimentalHStack,{alignment:"center",justify:"left",spacing:3,className:"edit-site-library__pattern-title"},n&&(0,l.createElement)(le,{icon:n}),(0,l.createElement)(y.__experimentalHeading,{level:5},a.title)),a.type===Qa&&(0,l.createElement)(y.DropdownMenu,{icon:Ld,label:(0,E.__)("Actions"),className:"edit-site-library__dropdown",popoverProps:{placement:"bottom-end"},toggleProps:{className:"edit-site-library__button",isSmall:!0,describedBy:(0,E.sprintf)((0,E.__)("Action menu for %s pattern"),a.title),tabIndex:-1}},(()=>(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>i(!0)},(0,E.__)("Delete"))))))),o&&(0,l.createElement)(y.__experimentalConfirmDialog,{onConfirm:async()=>{try{await s(a.id),u((0,E.__)("Pattern successfully deleted."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the pattern.");c(t,{type:"snackbar"})}},onCancel:()=>i(!1)},(0,E.__)("Are you sure you want to delete this pattern?")))}function Fd({categoryId:e,label:t,icon:n,items:a}){const r=(0,y.__unstableUseCompositeState)({orientation:"vertical"});return a?.length?(0,l.createElement)(y.__unstableComposite,{...r,role:"listbox",className:"edit-site-library__grid","aria-label":t},a.map((t=>(0,l.createElement)(Vd,{key:t.name,icon:n,item:t,categoryId:e,composite:r})))):null}function zd(){return(0,l.createElement)("div",{className:"edit-site-library__no-results"},(0,E.__)("No patterns found."))}var Od=n(4793),Hd=n.n(Od);function Gd(e){return e.toLowerCase()}var Ud=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],$d=/[^A-Z0-9]+/gi;function jd(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const Wd=e=>e.name||"",Zd=e=>e.title,qd=e=>e.description||"",Yd=e=>e.keywords||[],Kd=()=>!1;function Xd(e=""){return function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,a=void 0===n?Ud:n,r=t.stripRegexp,o=void 0===r?$d:r,i=t.transform,s=void 0===i?Gd:i,l=t.delimiter,c=void 0===l?" ":l,u=jd(jd(e,a,"$1\0$2"),o,"\0"),d=0,m=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(m-1);)m--;return u.slice(d,m).split("\0").map(s).join(c)}(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function Qd(e=""){return e=(e=(e=Hd()(e)).replace(/^\//,"")).toLowerCase()}const Jd=(e="")=>Xd(Qd(e)),em=(e=[],t="",n={})=>{const a=Jd(t),r=!a.length,o={...n,onlyFilterByCategory:r},i=r?0:1,s=e.map((e=>[e,tm(e,t,o)])).filter((([,e])=>e>i));return 0===a.length||s.sort((([,e],[,t])=>t-e)),s.map((([e])=>e))};function tm(e,t,n){const{categoryId:a,getName:r=Wd,getTitle:o=Zd,getDescription:i=qd,getKeywords:s=Yd,hasCategory:l=Kd,onlyFilterByCategory:c}=n;let u=l(e,a)?1:0;if(!u||c)return u;const d=r(e),m=o(e),p=i(e),_=s(e),g=Qd(t),h=Qd(m);if(g===h)u+=30;else if(h.startsWith(g))u+=20;else{const e=[d,m,p,..._].join(" ");0===((e,t)=>e.filter((e=>!Jd(t).some((t=>t.includes(e))))))(Xd(g),e).length&&(u+=10)}return u}const nm=[],am=(e,t=Xa,n="")=>{const{templateParts:a,isResolving:r}=(0,d.useSelect)((e=>{if(t!==Xa)return{templateParts:nm,isResolving:!1};const{getEntityRecords:n,isResolving:a}=e(_.store),r={per_page:-1},o=n("postType",t,r)?.map((e=>(e=>{return{blocks:(0,c.parse)(e.content.raw),categories:[e.area],description:e.description||"",keywords:e.keywords||[],name:(t=e.theme,n=e.slug,t&&n?t+"//"+n:null),title:e.title.rendered,type:e.type,templatePart:e};var t,n})(e)));return{templateParts:o,isResolving:a("getEntityRecords",["postType","wp_template_part",r])}}),[t]);return{templateParts:(0,l.useMemo)((()=>a?em(a,n,{categoryId:e,hasCategory:(e,t)=>e.templatePart.area===t}):nm),[a,n,e]),isResolving:r}},rm=(e,t=Ka,n="")=>{const a=t===Ka?Qa:t,r=(0,d.useSelect)((t=>{if(a!==Qa||e!==Ja)return nm;const{getEntityRecords:n}=t(_.store),r=n("postType",a,{per_page:-1});return r?r.map((e=>{return t=e,{blocks:(0,c.parse)(t.content.raw),categories:t.wp_pattern,id:t.id,name:t.slug,syncStatus:t.meta?.sync_status,title:t.title.raw,type:t.type,reusableBlock:t};var t})):nm}),[a,e]),o=(0,l.useMemo)((()=>r.length?em(r,n,{hasCategory:()=>!0}):nm),[r,n]),i={syncedPatterns:[],unsyncedPatterns:[]};return o.forEach((e=>{e.syncStatus===tr?i.syncedPatterns.push(e):i.unsyncedPatterns.push(e)})),i};var om=(e,t,n)=>{const a=((e,t=Ka,n="")=>{const a=(0,d.useSelect)((e=>{var t;const{getSettings:n}=Je(e(Bn)),a=n();return null!==(t=a.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:a.__experimentalBlockPatterns})),r=(0,d.useSelect)((e=>e(_.store).getBlockPatterns())),o=(0,l.useMemo)((()=>[...a||[],...r||[]].filter((e=>!er.includes(e.source))).filter(ar).map((e=>({...e,keywords:e.keywords||[],type:"pattern",blocks:(0,c.parse)(e.content)})))),[a,r]);return(0,l.useMemo)((()=>t!==Ka?nm:em(o,n,{categoryId:e,hasCategory:(e,t)=>e.categories?.includes(t)})),[o,n,e,t])})(t,e,n),{syncedPatterns:r=[],unsyncedPatterns:o=[]}=rm(t,e,n),{templateParts:i,isResolving:s}=am(t,e,n);return[{syncedPatterns:[...i,...r],unsyncedPatterns:[...a,...o]},s]};const{useLocation:im,useHistory:sm}=Je(ct.privateApis);function lm({categoryId:e,type:t}){const n=im(),a=sm(),r=(0,te.useViewportMatch)("medium","<"),[o,i,s]=Cr(""),[c,u]=om(t,e,s),{syncedPatterns:d,unsyncedPatterns:m}=c,p=!!d.length||!!m.length;return(0,l.createElement)(y.__experimentalVStack,{spacing:6},(0,l.createElement)(y.Flex,null,r&&(0,l.createElement)(Hn,{icon:(0,E.isRTL)()?ue:ce,label:(0,E.__)("Back"),onClick:()=>{"/library"===n.state?.backPath?a.back():a.push({path:"/library"})}}),(0,l.createElement)(y.FlexBlock,null,(0,l.createElement)(y.SearchControl,{className:"edit-site-library__search",onChange:e=>i(e),placeholder:(0,E.__)("Search patterns"),label:(0,E.__)("Search patterns"),value:o,__nextHasNoMarginBottom:!0}))),u&&(0,E.__)("Loading"),!u&&!!d.length&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-library__section-header"},(0,l.createElement)(y.__experimentalHeading,{level:4},(0,E.__)("Synced")),(0,l.createElement)(y.__experimentalText,{variant:"muted",as:"p"},(0,E.__)("Patterns that are kept in sync across your site"))),(0,l.createElement)(Fd,{icon:On,categoryId:e,label:(0,E.__)("Synced patterns"),items:d})),!u&&!!m.length&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-library__section-header"},(0,l.createElement)(y.__experimentalHeading,{level:4},(0,E.__)("Standard")),(0,l.createElement)(y.__experimentalText,{variant:"muted",as:"p"},(0,E.__)("Patterns that can be changed freely without affecting your site"))),(0,l.createElement)(Fd,{categoryId:e,label:(0,E.__)("Standard patterns"),items:m})),!u&&!p&&(0,l.createElement)(zd,null))}const{ExperimentalBlockEditorProvider:cm}=Je(Ee.privateApis);function um(){const{categoryType:e,categoryId:t}=(0,ut.getQueryArgs)(window.location.href),n=e||Ya,a=t||qa,r=function(){var e;const t=(0,d.useSelect)((e=>{const{getSettings:t}=Je(e(Bn));return t()}),[]),n=null!==(e=t.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:t.__experimentalBlockPatterns,a=(0,d.useSelect)((e=>e(_.store).getBlockPatterns()),[]),r=(0,l.useMemo)((()=>[...n||[],...a||[]].filter(ar)),[n,a]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,...n}=t;return{...n,__experimentalBlockPatterns:r,__unstableIsPreviewMode:!0}}),[t,r])}();return(0,l.createElement)(cm,{settings:r},(0,l.createElement)(Rd,{className:"edit-site-library",title:(0,E.__)("Library content"),hideTitleFromUI:!0},(0,l.createElement)(lm,{type:n,categoryId:a})))}const{useLocation:dm}=Je(ct.privateApis);function mm(){const{params:{path:e}}=dm();return"/wp_template/all"===e?(0,l.createElement)(Ad,null):"/library"===e?(0,l.createElement)(um,null):null}const{useCommands:pm}=Je(An.privateApis),{useCommandContext:_m}=Je(Dn.privateApis),{useLocation:gm}=Je(ct.privateApis),{useGlobalStyle:hm}=Je(Ee.privateApis);function vm(){ko(),function(){const e=ud(),{params:t}=cd(),n=(0,d.useSelect)((e=>Je(e(Bn)).getCanvasMode()),[]),{setCanvasMode:a}=Je((0,d.useDispatch)(Bn)),r=(0,l.useRef)(n),{canvas:o}=t,i=(0,l.useRef)(o),s=(0,l.useRef)(t);(0,l.useEffect)((()=>{s.current=t}),[t]),(0,l.useEffect)((()=>{r.current=n,"init"!==n&&("edit"===n&&i.current!==n&&e.push({...s.current,canvas:"edit"}),"view"===n&&void 0!==i.current&&e.push({...s.current,canvas:void 0}))}),[n,e]),(0,l.useEffect)((()=>{i.current=o,void 0===o&&"view"!==r.current?a("view"):"edit"===o&&"edit"!==r.current&&a("edit")}),[o,a])}(),pm(),(0,Dn.useCommandLoader)({name:"core/edit-site/page-content-focus",hook:Pd,context:"site-editor-edit"}),(0,Dn.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:Md,context:"site-editor-edit"}),(0,Dn.useCommandLoader)({name:"core/edit-site/edit-ui",hook:Id}),function(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t}=Je((0,d.useDispatch)(Bn)),{set:n}=(0,d.useDispatch)(x.store),a=wd(),{homeUrl:r}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home}}),[]);(0,Dn.useCommand)({name:"core/edit-site/open-global-styles-revisions",label:(0,E.__)("Open styles revisions"),icon:Wn,callback:({close:n})=>{n(),a.push({path:"/wp_global_styles",canvas:"edit"}),e("edit-site/global-styles"),t("global-styles-revisions")}}),(0,Dn.useCommand)({name:"core/edit-site/open-styles",label:(0,E.__)("Open styles"),callback:({close:t})=>{t(),a.push({path:"/wp_global_styles",canvas:"edit"}),e("edit-site/global-styles")},icon:Vn}),(0,Dn.useCommand)({name:"core/edit-site/toggle-styles-welcome-guide",label:(0,E.__)("Learn about styles"),callback:({close:t})=>{t(),a.push({path:"/wp_global_styles",canvas:"edit"}),e("edit-site/global-styles"),n("core/edit-site","welcomeGuideStyles",!0),setTimeout((()=>{n("core/edit-site","welcomeGuideStyles",!0)}),500)},icon:fd}),(0,Dn.useCommand)({name:"core/edit-site/view-site",label:(0,E.__)("View site"),callback:({close:e})=>{e(),window.open(r,"_blank")},icon:wu}),(0,Dn.useCommandLoader)({name:"core/edit-site/reset-global-styles",hook:Sd}),(0,Dn.useCommandLoader)({name:"core/edit-site/open-styles-css",hook:kd})}();const e=(0,l.useRef)(),{params:t}=gm(),n=(0,te.useViewportMatch)("medium","<"),a=function({path:e,categoryType:t,categoryId:n},a){return"/wp_template/all"===e||"/library"===e&&(!a||!!t&&!!n)}(t,n),r=!a,{isDistractionFree:o,hasFixedToolbar:i,canvasMode:s,previousShortcut:c,nextShortcut:u}=(0,d.useSelect)((e=>{const{getAllShortcutKeyCombinations:t}=e(Rn.store),{getCanvasMode:n}=Je(e(Bn));return{canvasMode:n(),previousShortcut:t("core/edit-site/previous-region"),nextShortcut:t("core/edit-site/next-region"),hasFixedToolbar:e(x.store).get("core/edit-site","fixedToolbar"),isDistractionFree:e(x.store).get("core/edit-site","distractionFree")}}),[]),m="edit"===s,p=(0,y.__unstableUseNavigateRegions)({previous:c,next:u}),g=(0,te.useReducedMotion)(),h=n&&!a||!n&&("view"===s||!r),f=n&&r&&m||!n||!r,b=n&&a||r&&m,[w,S]=(0,te.useResizeObserver)(),[k]=(0,te.useResizeObserver)(),[C]=(0,l.useState)(!1),T=function(){const{isLoaded:e}=no(),[t,n]=(0,l.useState)(!1),a=(0,d.useSelect)((e=>{const n=e(_.store).hasResolvingSelectors();return!t&&!n}),[t]);return(0,l.useEffect)((()=>{let e;return t||(e=setTimeout((()=>{n(!0)}),1e4)),()=>{clearTimeout(e)}}),[t]),(0,l.useEffect)((()=>{if(a){const e=setTimeout((()=>{n(!0)}),1e3);return()=>{clearTimeout(e)}}}),[a]),!t||!e}();let N;N="view"===s?"view":o?"isDistractionFree":s;_m("edit"===s&&r?"site-editor-edit":"site-editor");const[P]=hm("color.background"),[M]=hm("color.gradient");return"init"===s?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Dn.CommandMenu,null),(0,l.createElement)(vd,null),(0,l.createElement)(yd,null),k,(0,l.createElement)("div",{...p,ref:p.ref,className:v()("edit-site-layout",p.className,{"is-distraction-free":o&&m,"is-full-canvas":b,"is-edit-mode":m,"has-fixed-toolbar":i})},(0,l.createElement)(y.__unstableMotion.div,{className:"edit-site-layout__header-container",variants:{isDistractionFree:{opacity:0,transition:{type:"tween",delay:.8,delayChildren:.8}},isDistractionFreeHovering:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},view:{opacity:1},edit:{opacity:1}},whileHover:o?"isDistractionFreeHovering":void 0,animate:N},(0,l.createElement)(od,{as:y.__unstableMotion.div,variants:{isDistractionFree:{x:"-100%"},isDistractionFreeHovering:{x:0},view:{x:0},edit:{x:0}},ref:e,className:"edit-site-layout__hub"}),(0,l.createElement)(y.__unstableAnimatePresence,{initial:!1},r&&m&&(0,l.createElement)(ne,{className:"edit-site-layout__header",ariaLabel:(0,E.__)("Editor top bar"),as:y.__unstableMotion.div,variants:{isDistractionFree:{opacity:0},isDistractionFreeHovering:{opacity:1},view:{opacity:1},edit:{opacity:1}},transition:{type:"tween",duration:g?0:.2,ease:"easeOut"}},m&&(0,l.createElement)(td,null)))),(0,l.createElement)("div",{className:"edit-site-layout__content"},(0,l.createElement)(y.__unstableAnimatePresence,{initial:!1},(0,l.createElement)(y.__unstableMotion.div,{initial:{opacity:0},animate:h?{opacity:1,display:"block"}:{opacity:0,transitionEnd:{display:"none"}},exit:{opacity:0},transition:{type:"tween",duration:g||n?0:.5,ease:"easeOut"},className:"edit-site-layout__sidebar"},(0,l.createElement)(ne,{ariaLabel:(0,E.__)("Navigation")},(0,l.createElement)(Ni,null)))),(0,l.createElement)(hd,null),f&&(0,l.createElement)(l.Fragment,null,a&&(0,l.createElement)(mm,null),r&&(0,l.createElement)("div",{className:v()("edit-site-layout__canvas-container",{"is-resizing":C})},w,!!S.width&&(0,l.createElement)(y.__unstableMotion.div,{whileHover:r&&"view"===s?{scale:1.005,transition:{duration:g||C?0:.5,ease:"easeOut"}}:{},initial:!1,layout:"position",className:"edit-site-layout__canvas",transition:{type:"tween",duration:g||C?0:.5,ease:"easeOut"}},(0,l.createElement)(Eu,null,(0,l.createElement)(ld,{isReady:!T,isFullWidth:m,oversizedClassName:"edit-site-layout__resizable-frame-oversized",innerContentStyle:{background:null!=M?M:P}},(0,l.createElement)(hu,{isLoading:T})))))))))}const{RouterProvider:ym}=Je(ct.privateApis);function Em(){const{createErrorNotice:e}=(0,d.useDispatch)(fe.store);return(0,l.createElement)(Rn.ShortcutProvider,{style:{height:"100%"}},(0,l.createElement)(y.SlotFillProvider,null,(0,l.createElement)(ia,null,(0,l.createElement)(y.Popover.Slot,null),(0,l.createElement)(g.UnsavedChangesWarning,null),(0,l.createElement)(ym,null,(0,l.createElement)(vm,null),(0,l.createElement)(H.PluginArea,{onError:function(t){e((0,E.sprintf)((0,E.__)('The "%s" plugin has encountered an error and cannot be rendered.'),t))}})))))}function fm({className:e,...t}){const n=(0,d.useSelect)((e=>e(Bn).getSettings().showIconLabels),[]);return(0,l.createElement)(ee,{panelClassName:e,className:"edit-site-sidebar-edit-mode",scope:"core/edit-site",showIconLabels:n,...t})}function bm(e){return(0,l.createElement)(Y,{__unstableExplicitMenuItem:!0,scope:"core/edit-site",...e})}var wm=(0,te.compose)((0,H.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:y.MenuItem,icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"}})))(Z);function Sm(e,t){const n=document.getElementById(e),a=(0,l.createRoot)(n);t.__experimentalFetchLinkSuggestions=(e,n)=>(0,_.__experimentalFetchLinkSuggestions)(e,n,t),t.__experimentalFetchRichUrlData=_.__experimentalFetchUrlData,(0,d.dispatch)(c.store).__experimentalReapplyBlockTypeFilters();const r=(0,u.__experimentalGetCoreBlocks)().filter((({name:e})=>"core/freeform"!==e));return(0,u.registerCoreBlocks)(r),(0,d.dispatch)(c.store).setFreeformFallbackBlockName("core/html"),(0,ge.registerLegacyWidgetBlock)({inserter:!1}),(0,ge.registerWidgetGroupBlock)({inserter:!1}),(0,d.dispatch)(x.store).setDefaults("core/edit-site",{editorMode:"visual",fixedToolbar:!1,focusMode:!1,distractionFree:!1,keepCaretInsideBlock:!1,welcomeGuide:!0,welcomeGuideStyles:!0,showListViewByDefault:!1,showBlockBreadcrumbs:!0}),(0,d.dispatch)(O).setDefaultComplementaryArea("core/edit-site","edit-site/template"),(0,d.dispatch)(Bn).updateSettings(t),(0,d.dispatch)(g.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas}),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),a.render((0,l.createElement)(Em,null)),a}function km(){p()("wp.editSite.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editSite=a}(); \ No newline at end of file +function aa(e){return"[object Object]"===Object.prototype.toString.call(e)}function ra(e){var t,n;return!1!==aa(e)&&(void 0===(t=e.constructor)||!1!==aa(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:oa,cleanEmptyObject:ia}=nt(we.privateApis);function sa(e,t){return na()(e,t,{isMergeableObject:ra})}function la(){const[e,t,n]=function(){const{globalStylesId:e,isReady:t,settings:n,styles:a}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:n}=e(_.store),a=e(_.store).__experimentalGetCurrentGlobalStylesId(),r=a?t("root","globalStyles",a):void 0;let o=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(o=!a||n("getEditedEntityRecord",["root","globalStyles",a])),{globalStylesId:a,isReady:o,settings:r?.settings,styles:r?.styles}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(_.store),{editEntityRecord:o}=(0,d.useDispatch)(_.store);return[t,(0,l.useMemo)((()=>({settings:null!=n?n:{},styles:null!=a?a:{}})),[n,a]),(0,l.useCallback)(((t,n={})=>{var a,i;const s=r("root","globalStyles",e),l=t({styles:null!==(a=s?.styles)&&void 0!==a?a:{},settings:null!==(i=s?.settings)&&void 0!==i?i:{}});o("root","globalStyles",e,{styles:ia(l.styles)||{},settings:ia(l.settings)||{}},n)}),[e])]}(),[a,r]=function(){const e=(0,d.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),o=(0,l.useMemo)((()=>r&&t?sa(r,t):{}),[t,r]);return(0,l.useMemo)((()=>({isReady:e&&a,user:t,base:r,merged:o,setUserConfig:n})),[o,t,r,n,e,a])}function ca({children:e}){const t=la();return t.isReady?(0,l.createElement)(oa.Provider,{value:t},e):null}const{useGlobalSetting:ua,useGlobalStyle:da,useGlobalStylesOutput:ma}=nt(we.privateApis),pa={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},_a={hover:{opacity:1},start:{opacity:.5}},ga={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};var ha=({label:e,isFocused:t,withHoverView:n})=>{const[a]=da("typography.fontWeight"),[r="serif"]=da("typography.fontFamily"),[o=r]=da("elements.h1.typography.fontFamily"),[i=a]=da("elements.h1.typography.fontWeight"),[s="black"]=da("color.text"),[c=s]=da("elements.h1.color.text"),[u="white"]=da("color.background"),[d]=da("color.gradient"),[m]=ma(),p=(0,re.useReducedMotion)(),[_]=ua("color.palette.core"),[g]=ua("color.palette.theme"),[h]=ua("color.palette.custom"),[v,E]=(0,l.useState)(!1),[f,{width:b}]=(0,re.useResizeObserver)(),w=b?b/248:1,S=(null!=g?g:[]).concat(null!=h?h:[]).concat(null!=_?_:[]),k=S.filter((({color:e})=>e!==u&&e!==c)).slice(0,2),C=(0,l.useMemo)((()=>m?[...m,{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}",isGlobalStyles:!0}]:m),[m]),x=!!b;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative"}},f),x&&(0,l.createElement)(we.__unstableIframe,{className:"edit-site-global-styles-preview__iframe",style:{height:152*w},onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),tabIndex:-1},(0,l.createElement)(we.__unstableEditorStyles,{styles:C}),(0,l.createElement)(y.__unstableMotion.div,{style:{height:152*w,width:"100%",background:null!=d?d:u,cursor:n?"pointer":void 0},initial:"start",animate:(v||t)&&!p&&e?"hover":"start"},(0,l.createElement)(y.__unstableMotion.div,{variants:pa,style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(y.__experimentalHStack,{spacing:10*w,justify:"center",style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(y.__unstableMotion.div,{style:{fontFamily:o,fontSize:65*w,color:c,fontWeight:i},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"}},"Aa"),(0,l.createElement)(y.__experimentalVStack,{spacing:4*w},k.map((({slug:e,color:t},n)=>(0,l.createElement)(y.__unstableMotion.div,{key:e,style:{height:32*w,width:32*w,background:t,borderRadius:32*w/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}})))))),(0,l.createElement)(y.__unstableMotion.div,{variants:n&&_a,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1}},(0,l.createElement)(y.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"}},S.slice(0,4).map((({color:e},t)=>(0,l.createElement)("div",{key:t,style:{height:"100%",background:e,flexGrow:1}}))))),(0,l.createElement)(y.__unstableMotion.div,{variants:ga,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0}},(0,l.createElement)(y.__experimentalVStack,{spacing:3*w,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*w,boxSizing:"border-box"}},e&&(0,l.createElement)("div",{style:{fontSize:40*w,fontFamily:o,color:c,fontWeight:i,lineHeight:"1em",textAlign:"center"}},e))))))};const{GlobalStylesContext:va,areGlobalStyleConfigsEqual:ya}=nt(we.privateApis);function Ea({variation:e}){const[t,n]=(0,l.useState)(!1),{base:a,user:r,setUserConfig:o}=(0,l.useContext)(va),i=(0,l.useMemo)((()=>{var t,n;return{user:{settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}},base:a,merged:sa(a,e),setUserConfig:()=>{}}}),[e,a]),s=()=>{o((()=>({settings:e.settings,styles:e.styles})))},c=(0,l.useMemo)((()=>ya(r,e)),[r,e]);let u=e?.title;return e?.description&&(u=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),e?.title,e?.description)),(0,l.createElement)(va.Provider,{value:i},(0,l.createElement)("div",{className:v()("edit-site-global-styles-variations_item",{"is-active":c}),role:"button",onClick:s,onKeyDown:e=>{e.keyCode===ea.ENTER&&(e.preventDefault(),s())},tabIndex:"0","aria-label":u,"aria-current":c,onFocus:()=>n(!0),onBlur:()=>n(!1)},(0,l.createElement)("div",{className:"edit-site-global-styles-variations_item-preview"},(0,l.createElement)(ha,{label:e?.title,isFocused:t,withHoverView:!0}))))}function fa(){const e=(0,d.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()),[]),t=(0,l.useMemo)((()=>[{title:(0,E.__)("Default"),settings:{},styles:{}},...(null!=e?e:[]).map((e=>{var t,n;return{...e,settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}}}))]),[e]);return(0,l.createElement)(y.__experimentalGrid,{columns:2,className:"edit-site-global-styles-style-variations-container"},t.map(((e,t)=>(0,l.createElement)(Ea,{key:t,variation:e}))))}function ba({variation:e="default",direction:t,resizeWidthBy:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:`resizable-editor__drag-handle is-${t} is-variation-${e}`,"aria-label":(0,E.__)("Drag to resize"),"aria-describedby":`resizable-editor__resize-help-${t}`,onKeyDown:function(e){const{keyCode:a}=e;"left"===t&&a===ea.LEFT||"right"===t&&a===ea.RIGHT?n(20):("left"===t&&a===ea.RIGHT||"right"===t&&a===ea.LEFT)&&n(-20)}}),(0,l.createElement)(y.VisuallyHidden,{id:`resizable-editor__resize-help-${t}`},(0,E.__)("Use left and right arrow keys to resize the canvas.")))}const wa={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var Sa=function({enableResizing:e,height:t,children:n}){const[a,r]=(0,l.useState)("100%"),o=(0,l.useRef)(),i=(0,l.useCallback)((e=>{o.current&&r(o.current.offsetWidth+e)}),[]);return(0,l.createElement)(y.ResizableBox,{ref:e=>{o.current=e?.resizable},size:{width:e?a:"100%",height:e&&t?t:"100%"},onResizeStop:(e,t,n)=>{r(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{right:e,left:e},showHandle:e,resizeRatio:2,handleComponent:{left:(0,l.createElement)(ba,{direction:"left",resizeWidthBy:i}),right:(0,l.createElement)(ba,{direction:"right",resizeWidthBy:i})},handleClasses:void 0,handleStyles:{left:wa,right:wa}},n)};function ka(e){switch(e){case"style-book":return(0,E.__)("Style Book");case"global-styles-revisions":return(0,E.__)("Global styles revisions");default:return""}}const{createPrivateSlotFill:Ca}=nt(y.privateApis),{privateKey:xa,Slot:Ta,Fill:Na}=Ca("EditSiteEditorCanvasContainerSlot");function Ma({children:e,closeButtonLabel:t,onClose:n,enableResizing:a=!1}){const{editorCanvasContainerView:r,showListViewByDefault:o}=(0,d.useSelect)((e=>({editorCanvasContainerView:nt(e(Dn)).getEditorCanvasContainerView(),showListViewByDefault:e(x.store).get("core/edit-site","showListViewByDefault")})),[]),[i,s]=(0,l.useState)(!1),{setEditorCanvasContainerView:c}=nt((0,d.useDispatch)(Dn)),u=(0,re.useFocusOnMount)("firstElement"),m=(0,re.useFocusReturn)(),p=(0,l.useMemo)((()=>ka(r)),[r]),{setIsListViewOpened:_}=(0,d.useDispatch)(Dn);function g(){"function"==typeof n&&n(),_(o),c(void 0),s(!0)}const h=Array.isArray(e)?l.Children.map(e,((e,t)=>0===t?(0,l.cloneElement)(e,{ref:m}):e)):(0,l.cloneElement)(e,{ref:m});if(i)return null;const v=n||t;return(0,l.createElement)(Na,null,(0,l.createElement)(Sa,{enableResizing:a},(0,l.createElement)("section",{className:"edit-site-editor-canvas-container",ref:v?u:null,onKeyDown:function(e){e.keyCode!==ea.ESCAPE||e.defaultPrevented||(e.preventDefault(),g())},"aria-label":p},v&&(0,l.createElement)(y.Button,{className:"edit-site-editor-canvas-container__close-button",icon:C,label:t||(0,E.__)("Close"),onClick:g,showTooltip:!1}),h)))}Ma.Slot=Ta;var Pa=Ma;const{ExperimentalBlockEditorProvider:Ia,useGlobalStyle:Ba}=nt(we.privateApis);function Ra(){return[{name:"core/heading",title:(0,E.__)("Headings"),category:"text",blocks:[(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:1}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:2}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:3}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:4}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:5})]},...(0,c.getBlockTypes)().filter((e=>{const{name:t,example:n,supports:a}=e;return"core/heading"!==t&&!!n&&!1!==a.inserter})).map((e=>({name:e.name,title:e.title,category:e.category,blocks:(0,c.getBlockFromExample)(e.name,e.example)})))]}const La=({category:e,examples:t,isSelected:n,onClick:a,onSelect:r,settings:o,sizes:i,title:s})=>{const[c,u]=(0,l.useState)(!1),d={role:"button",onFocus:()=>u(!0),onBlur:()=>u(!1),onKeyDown:e=>{if(e.defaultPrevented)return;const{keyCode:t}=e;!a||t!==ea.ENTER&&t!==ea.SPACE||(e.preventDefault(),a(e))},onClick:e=>{e.defaultPrevented||a&&(e.preventDefault(),a(e))},readonly:!0},m=a?"body { cursor: pointer; } body * { pointer-events: none; }":"";return(0,l.createElement)(we.__unstableIframe,{className:v()("edit-site-style-book__iframe",{"is-focused":c&&!!a,"is-button":!!a}),name:"style-book-canvas",tabIndex:0,...a?d:{}},(0,l.createElement)(we.__unstableEditorStyles,{styles:o.styles}),(0,l.createElement)("style",null,'.is-root-container { display: flow-root; }\n\t\t\t\t\t\tbody { position: relative; padding: 32px !important; }\n\t.edit-site-style-book__examples {\n\t\tmax-width: 900px;\n\t\tmargin: 0 auto;\n\t}\n\n\t.edit-site-style-book__example {\n\t\tborder-radius: 2px;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 40px;\n\t\tmargin-bottom: 40px;\n\t\tpadding: 16px;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t}\n\n\t.edit-site-style-book__example.is-selected {\n\t\tbox-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t}\n\n\t.edit-site-style-book__example:focus:not(:disabled) {\n\t\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\toutline: 3px solid transparent;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example {\n\t\tflex-direction: row;\n\t}\n\n\t.edit-site-style-book__example-title {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\tfont-size: 11px;\n\t\tfont-weight: 500;\n\t\tline-height: normal;\n\t\tmargin: 0;\n\t\ttext-align: left;\n\t\ttext-transform: uppercase;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {\n\t\ttext-align: right;\n\t\twidth: 120px;\n\t}\n\n\t.edit-site-style-book__example-preview {\n\t\twidth: 100%;\n\t}\n\n\t.edit-site-style-book__example-preview .block-editor-block-list__insertion-point,\n\t.edit-site-style-book__example-preview .block-list-appender {\n\t\tdisplay: none;\n\t}\n\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {\n\t\tmargin-top: 0;\n\t}\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {\n\t\tmargin-bottom: 0;\n\t}\n'+m),(0,l.createElement)(Da,{className:v()("edit-site-style-book__examples",{"is-wide":i.width>600}),examples:t,category:e,label:s?(0,E.sprintf)((0,E.__)("Examples of blocks in the %s category"),s):(0,E.__)("Examples of blocks"),isSelected:n,onSelect:r}))},Da=(0,l.memo)((({className:e,examples:t,category:n,label:a,isSelected:r,onSelect:o})=>{const i=(0,y.__unstableUseCompositeState)({orientation:"vertical"});return(0,l.createElement)(y.__unstableComposite,{...i,className:e,"aria-label":a},t.filter((e=>!n||e.category===n)).map((e=>(0,l.createElement)(Aa,{key:e.name,id:`example-${e.name}`,composite:i,title:e.title,blocks:e.blocks,isSelected:r(e.name),onClick:()=>{o?.(e.name)}}))))})),Aa=({composite:e,id:t,title:n,blocks:a,isSelected:r,onClick:o})=>{const i=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),s=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),c=(0,l.useMemo)((()=>Array.isArray(a)?a:[a]),[a]);return(0,l.createElement)(y.__unstableCompositeItem,{...e,className:v()("edit-site-style-book__example",{"is-selected":r}),id:t,"aria-label":(0,E.sprintf)((0,E.__)("Open %s styles in Styles panel"),n),onClick:o,role:"button",as:"div"},(0,l.createElement)("span",{className:"edit-site-style-book__example-title"},n),(0,l.createElement)("div",{className:"edit-site-style-book__example-preview","aria-hidden":!0},(0,l.createElement)(y.Disabled,{className:"edit-site-style-book__example-preview__content"},(0,l.createElement)(Ia,{value:c,settings:s},(0,l.createElement)(we.BlockList,{renderAppender:!1})))))};var Va=function({enableResizing:e=!0,isSelected:t,onClick:n,onSelect:a,showCloseButton:r=!0,showTabs:o=!0}){const[i,s]=(0,re.useResizeObserver)(),[u]=Ba("color.text"),[m]=Ba("color.background"),p=(0,l.useMemo)(Ra,[]),_=(0,l.useMemo)((()=>(0,c.getCategories)().filter((e=>p.some((t=>t.category===e.slug)))).map((e=>({name:e.slug,title:e.title,icon:e.icon})))),[p]),g=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),h=(0,l.useMemo)((()=>({...g,__unstableIsPreviewMode:!0})),[g]);return(0,l.createElement)(Pa,{enableResizing:e,closeButtonLabel:r?(0,E.__)("Close Style Book"):null},(0,l.createElement)("div",{className:v()("edit-site-style-book",{"is-wide":s.width>600,"is-button":!!n}),style:{color:u,background:m}},i,o?(0,l.createElement)(y.TabPanel,{className:"edit-site-style-book__tab-panel",tabs:_},(e=>(0,l.createElement)(La,{category:e.name,examples:p,isSelected:t,onSelect:a,settings:h,sizes:s,title:e.title}))):(0,l.createElement)(La,{examples:p,isSelected:t,onClick:n,onSelect:a,settings:h,sizes:s})))};const Fa={per_page:-1,_fields:"id,name,avatar_urls",context:"view",capabilities:["edit_theme_options"]},za=[],{GlobalStylesContext:Oa}=nt(we.privateApis);function Ha(){const{user:e}=(0,l.useContext)(Oa),{authors:t,currentUser:n,isDirty:a,revisions:r}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getCurrentUser:n,getUsers:a,getCurrentThemeGlobalStylesRevisions:r}=e(_.store),o=t(),i=n(),s=o.length>0,l=r()||za;return{authors:a(Fa)||za,currentUser:i,isDirty:s,revisions:l}}),[]);return(0,l.useMemo)((()=>{let o=[];if(!t.length||!r.length)return{revisions:o,hasUnsavedChanges:a,isLoading:!0};if(o=r.map((e=>({...e,author:t.find((t=>t.id===e.author))}))),"unsaved"!==o[0].id&&(o[0].isLatest=!0),a&&e&&Object.keys(e).length>0&&n){const t={id:"unsaved",styles:e?.styles,settings:e?.settings,author:{name:n?.name,avatar_urls:n?.avatar_urls},modified:new Date};o.unshift(t)}return{revisions:o,hasUnsavedChanges:a,isLoading:!1}}),[a,r,n,t,e])}const Ga=()=>{};function Ua(e){const{openGeneralSidebar:t,toggleFeature:n}=(0,d.useDispatch)(Dn),{setCanvasMode:a}=nt((0,d.useDispatch)(Dn)),{createNotice:r}=(0,d.useDispatch)(Se.store);return(0,d.useSelect)((e=>!!e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length),[])?(0,l.createElement)(y.__experimentalNavigatorButton,{...e,as:qn,path:"/wp_global_styles"}):(0,l.createElement)(qn,{...e,onClick:()=>{n("distractionFree",!1),r("info",(0,E.__)("Distraction free mode turned off"),{isDismissible:!0,type:"snackbar"}),a("edit"),t("edit-site/global-styles")}})}function $a(){const{storedSettings:e}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Dn));return{storedSettings:t(!1)}}),[]);return(0,l.createElement)(we.BlockEditorProvider,{settings:e,onChange:Ga,onInput:Ga},(0,l.createElement)(fa,null))}function ja({onClickRevisions:e}){const{revisions:t,isLoading:n}=Ha(),{revisionsCount:a}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{revisionsCount:null!==(t=(r?n("root","globalStyles",r):void 0)?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),r=a>=2,o=t?.[0]?.modified;return r&&!n&&o?(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-global-styles__footer"},(0,l.createElement)(qn,{className:"edit-site-sidebar-navigation-screen-global-styles__revisions",label:(0,E.__)("Revisions"),onClick:e},(0,l.createElement)(y.__experimentalVStack,{as:"span",alignment:"center",spacing:5,direction:"row",justify:"space-between"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-global-styles__revisions__label"},(0,E.__)("Last modified")),(0,l.createElement)("span",null,(0,l.createElement)("time",{dateTime:o},(0,Jn.humanTimeDiff)(o))),(0,l.createElement)(y.Icon,{icon:Yn,style:{fill:"currentcolor"}})))):null}function Wa(){const{openGeneralSidebar:e,setIsListViewOpened:t}=(0,d.useDispatch)(Dn),n=(0,re.useViewportMatch)("medium","<"),{setCanvasMode:a,setEditorCanvasContainerView:r}=nt((0,d.useDispatch)(Dn)),o=(0,d.useSelect)((e=>"style-book"===nt(e(Dn)).getEditorCanvasContainerView()),[]),i=(0,l.useCallback)((async()=>Promise.all([a("edit"),e("edit-site/global-styles")])),[a,e]),s=(0,l.useCallback)((async()=>{await i(),r("style-book"),t(!1)}),[i,r,t]),c=(0,l.useCallback)((async()=>{await i(),r("global-styles-revisions")}),[i,r]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(jn,{title:(0,E.__)("Styles"),description:(0,E.__)("Choose a different style combination for the theme styles."),content:(0,l.createElement)($a,null),footer:(0,l.createElement)(ja,{onClickRevisions:c}),actions:(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)($n,{icon:Kn,label:(0,E.__)("Style Book"),onClick:()=>r(o?void 0:"style-book"),isPressed:o}),(0,l.createElement)($n,{icon:Qn,label:(0,E.__)("Edit styles"),onClick:async()=>await i()}))}),o&&!n&&(0,l.createElement)(Va,{enableResizing:!1,isSelected:()=>!1,onClick:s,onSelect:s,showCloseButton:!1,showTabs:!1}))}function Za(){const{location:e}=(0,y.__experimentalUseNavigator)(),{setEditorCanvasContainerView:t}=nt((0,d.useDispatch)(Dn));return(0,l.useEffect)((()=>{"/"===e?.path&&t(void 0)}),[t,e?.path]),(0,l.createElement)(jn,{isRoot:!0,title:(0,E.__)("Design"),description:(0,E.__)("Customize the appearance of your website using the block editor."),content:(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(y.__experimentalNavigatorButton,{as:qn,path:"/navigation",withChevron:!0,icon:zn},(0,E.__)("Navigation")),(0,l.createElement)(Ua,{withChevron:!0,icon:On},(0,E.__)("Styles")),(0,l.createElement)(y.__experimentalNavigatorButton,{as:qn,path:"/page",withChevron:!0,icon:Hn},(0,E.__)("Pages")),(0,l.createElement)(y.__experimentalNavigatorButton,{as:qn,path:"/wp_template",withChevron:!0,icon:Gn},(0,E.__)("Templates")),(0,l.createElement)(y.__experimentalNavigatorButton,{as:qn,path:"/library",withChevron:!0,icon:Un},(0,E.__)("Library")))})}var qa=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var Ya=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var Ka=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Xa="header",Qa="wp_template_part",Ja="pattern",er="wp_template_part",tr="wp_block",nr="custom-patterns",ar=["core","pattern-directory/core","pattern-directory/featured","pattern-directory/theme"],rr="fully",or="unsynced",ir=(e,t,n)=>t===n.findIndex((t=>e.name===t.name));function sr({closeModal:e,onCreate:t,onError:n}){const[a,r]=(0,l.useState)(""),[o,i]=(0,l.useState)(rr),[s,c]=(0,l.useState)(!1),{createErrorNotice:u}=(0,d.useDispatch)(Se.store),{saveEntityRecord:m}=(0,d.useDispatch)(_.store);return(0,l.createElement)(y.Modal,{title:(0,E.__)("Create pattern"),onRequestClose:e,overlayClassName:"edit-site-create-pattern-modal"},(0,l.createElement)("p",null,(0,E.__)("Turn this block into a pattern to reuse later")),(0,l.createElement)("form",{onSubmit:async e=>{e.preventDefault(),a&&(c(!0),await async function(){if(a)try{const e=await m("postType","wp_block",{title:a||(0,E.__)("Untitled Pattern"),content:"",status:"publish",meta:{sync_status:o}},{throwOnError:!0});t({pattern:e,categoryId:nr})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the pattern.");u(t,{type:"snackbar"}),n()}else u((0,E.__)("Please enter a pattern name."),{type:"snackbar"})}())}},(0,l.createElement)(y.__experimentalVStack,{spacing:"4"},(0,l.createElement)(y.TextControl,{className:"edit-site-create-pattern-modal__input",label:(0,E.__)("Name"),onChange:r,placeholder:(0,E.__)("My pattern"),required:!0,value:a,__nextHasNoMarginBottom:!0}),(0,l.createElement)(y.ToggleControl,{label:(0,E.__)("Synced"),onChange:()=>{i(o===rr?or:rr)},help:o===rr?(0,E.__)("Content is synced"):(0,E.__)("Content is not synced"),checked:o===rr}),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",disabled:!a,isBusy:s},(0,E.__)("Create"))))))}function lr({closeModal:e,blocks:t=[],onCreate:n,onError:a}){const{createErrorNotice:r}=(0,d.useDispatch)(Se.store),{saveEntityRecord:o}=(0,d.useDispatch)(_.store),i=(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_template_part",{per_page:-1})),[]),[s,u]=(0,l.useState)(""),[m,p]=(0,l.useState)("uncategorized"),[h,v]=(0,l.useState)(!1),f=(0,re.useInstanceId)(lr),w=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]);async function S(){if(s)try{const e=((e,t)=>{const n=e.toLowerCase(),a=t.map((e=>e.title.rendered.toLowerCase()));if(!a.includes(n))return e;let r=2;for(;a.includes(`${n} ${r}`);)r++;return`${e} ${r}`})(s,i),a=(e=>(0,be.kebabCase)(e).replace(/[^\w-]+/g,"")||"wp-custom-part")(e),r=await o("postType","wp_template_part",{slug:a,title:e,content:(0,c.serialize)(t),area:m},{throwOnError:!0});await n(r)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template part.");r(t,{type:"snackbar"}),a?.()}else r((0,E.__)("Please enter a title."),{type:"snackbar"})}return(0,l.createElement)(y.Modal,{title:(0,E.__)("Create template part"),onRequestClose:e,overlayClassName:"edit-site-create-template-part-modal"},(0,l.createElement)("form",{onSubmit:async e=>{e.preventDefault(),s&&(v(!0),await S())}},(0,l.createElement)(y.__experimentalVStack,{spacing:"4"},(0,l.createElement)(y.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:s,onChange:u,required:!0}),(0,l.createElement)(y.BaseControl,{label:(0,E.__)("Area"),id:`edit-site-create-template-part-modal__area-selection-${f}`,className:"edit-site-create-template-part-modal__area-base-control"},(0,l.createElement)(y.__experimentalRadioGroup,{label:(0,E.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:`edit-site-create-template-part-modal__area-selection-${f}`,onChange:p,checked:m},w.map((({icon:e,label:t,area:n,description:a})=>(0,l.createElement)(y.__experimentalRadio,{key:t,value:n,className:"edit-site-create-template-part-modal__area-radio"},(0,l.createElement)(y.Flex,{align:"start",justify:"start"},(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(y.Icon,{icon:e})),(0,l.createElement)(y.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},t,(0,l.createElement)("div",null,a)),(0,l.createElement)(y.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},m===n&&(0,l.createElement)(y.Icon,{icon:b})))))))),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",disabled:!s,isBusy:h},(0,E.__)("Create"))))))}const{useHistory:cr}=nt(mt.privateApis);function ur(){const e=cr(),[t,n]=(0,l.useState)(!1),[a,r]=(0,l.useState)(!1);function o(){n(!1),r(!1)}return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.DropdownMenu,{controls:[{icon:Ya,onClick:()=>r(!0),title:(0,E.__)("Create template part")},{icon:qa,onClick:()=>n(!0),title:(0,E.__)("Create pattern")}],toggleProps:{as:$n},icon:Ka,label:(0,E.__)("Create pattern")}),t&&(0,l.createElement)(sr,{closeModal:()=>n(!1),onCreate:function({pattern:t,categoryId:a}){n(!1),e.push({postId:t.id,postType:"wp_block",categoryType:"wp_block",categoryId:a,canvas:"edit"})},onError:o}),a&&(0,l.createElement)(lr,{closeModal:()=>r(!1),blocks:[],onCreate:function(t){r(!1),e.push({postId:t.id,postType:"wp_template_part",canvas:"edit"})},onError:o}))}function dr({count:e,icon:t,id:n,isActive:a,label:r,type:o}){const i=vt({path:"/library",categoryType:o,categoryId:n},{backPath:"/library"});if(e)return(0,l.createElement)(qn,{...i,icon:t,suffix:(0,l.createElement)("span",null,e),"aria-current":a?"true":void 0},r)}function mr(){const e=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(Dn)),a=n();return null!==(t=a.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:a.__experimentalBlockPatternCategories}));return[...e||[],...(0,d.useSelect)((e=>e(_.store).getBlockPatternCategories()))||[]]}(),t=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(Dn));return null!==(t=n().__experimentalAdditionalBlockPatterns)&&void 0!==t?t:n().__experimentalBlockPatterns})),t=(0,d.useSelect)((e=>e(_.store).getBlockPatterns()));return(0,l.useMemo)((()=>[...e||[],...t||[]].filter((e=>!ar.includes(e.source))).filter(ir)),[e,t])}(),n=(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_block",{per_page:-1}))),a=(0,l.useMemo)((()=>{const a={},r=[];return e.forEach((e=>{a[e.name]||(a[e.name]={...e,count:0})})),t.forEach((e=>{e.categories?.forEach((e=>{a[e]&&(a[e].count+=1)}))})),e.forEach((e=>{a[e.name].count&&r.push(a[e.name])})),n?.length&&r.push({count:n.length||0,name:"custom-patterns",label:(0,E.__)("Custom patterns")}),r}),[e,t,n]);return{patternCategories:a,hasPatterns:!!a.length}}const pr={header:(0,E.__)("Headers"),footer:(0,E.__)("Footers"),sidebar:(0,E.__)("Sidebar"),uncategorized:(0,E.__)("Uncategorized")};function _r(){const e=(0,re.useViewportMatch)("medium","<"),{categoryType:t,categoryId:n}=(0,pt.getQueryArgs)(window.location.href),a=n||Xa,r=t||Qa,{templatePartAreas:o,hasTemplateParts:i,isLoading:s}=function(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType","wp_template_part",{per_page:-1});return{hasTemplateParts:!!e&&!!e.length,isLoading:t,templatePartAreas:(n=e,(n||[]).reduce(((e,t)=>(e[e[t.area]?t.area:"uncategorized"].push(t),e)),{header:[],footer:[],sidebar:[],uncategorized:[]}))};var n}(),{patternCategories:c,hasPatterns:u}=mr(),m=(0,d.useSelect)((e=>!!e(Dn).getSettings().supportsTemplatePartsMode),[]);return(0,l.createElement)(jn,{isRoot:m,title:(0,E.__)("Library"),description:(0,E.__)("Manage what patterns are available when editing your site."),actions:(0,l.createElement)(ur,null),footer:(0,l.createElement)(y.__experimentalItemGroup,null,!e&&(0,l.createElement)(qn,{as:"a",href:"edit.php?post_type=wp_block",withChevron:!0},(0,E.__)("Manage all custom patterns"))),content:(0,l.createElement)(l.Fragment,null,s&&(0,E.__)("Loading library"),!s&&(0,l.createElement)(l.Fragment,null,!i&&!u&&(0,l.createElement)(y.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-library__group"},(0,l.createElement)(y.__experimentalItem,null,(0,E.__)("No template parts or patterns found"))),i&&(0,l.createElement)(y.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-library__group"},Object.entries(o).map((([e,t])=>(0,l.createElement)(dr,{key:e,count:t.length,icon:(0,g.getTemplatePartIcon)(e),label:pr[e],id:e,type:"wp_template_part",isActive:a===e&&"wp_template_part"===r})))),u&&(0,l.createElement)(y.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-library__group"},c.map((e=>(0,l.createElement)(dr,{key:e.name,count:e.count,label:e.label,icon:qa,id:e.name,type:"pattern",isActive:a===`${e.name}`&&"pattern"===r}))))))})}var gr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));var hr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));var vr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));var yr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));var Er=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));var fr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"}));var br=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"}));var wr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var Sr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"}));var kr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"}));var Cr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));var xr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var Tr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));function Nr(e=""){const[t,n]=(0,l.useState)(e),[a,r]=(0,l.useState)(e),o=(0,re.useDebounce)(r,250);return(0,l.useEffect)((()=>{a!==t&&o(t)}),[a,t]),[t,n,a]}var Mr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const Pr=()=>(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_template",{per_page:-1})),[]),Ir=()=>(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplateTypes()),[]),Br=()=>{const e=(0,d.useSelect)((e=>e(_.store).getPostTypes({per_page:-1})),[]);return(0,l.useMemo)((()=>{const t=["attachment"];return e?.filter((({viewable:e,slug:n})=>e&&!t.includes(n)))}),[e])};function Rr(e){const t=(0,l.useMemo)((()=>e?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{})));return(0,l.useCallback)((({labels:e,slug:n})=>{const a=e.singular_name.toLowerCase();return t[a]>1&&a!==n}),[t])}function Lr(){const e=Br(),t=(0,l.useMemo)((()=>e?.filter((e=>e.has_archive))),[e]),n=Pr(),a=Rr(t);return(0,l.useMemo)((()=>t?.filter((e=>!(n||[]).some((t=>t.slug==="archive-"+e.slug)))).map((e=>{let t;return t=a(e)?(0,E.sprintf)((0,E.__)("Archive: %1$s (%2$s)"),e.labels.singular_name,e.slug):(0,E.sprintf)((0,E.__)("Archive: %s"),e.labels.singular_name),{slug:"archive-"+e.slug,description:(0,E.sprintf)((0,E.__)("Displays an archive with the latest posts of type: %s."),e.labels.singular_name),title:t,icon:e.icon?.startsWith("dashicons-")?e.icon.slice(10):yr,templatePrefix:"archive"}}))||[]),[t,n,a])}const Dr=e=>{const t=(()=>{const e=(0,d.useSelect)((e=>e(_.store).getTaxonomies({per_page:-1})),[]);return(0,l.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))),[e])})(),n=Pr(),a=Ir(),r=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return["category","post_tag"].includes(t)||(n=`taxonomy-${n}`),"post_tag"===t&&(n="tag"),e[t]=n,e}),{})),[t]),o=t?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{}),i=zr("taxonomy",r),s=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c}=n,u=r[l],d=a?.find((({slug:e})=>e===u)),m=s?.includes(u),p=((e,t)=>{if(["category","post_tag"].includes(t))return!1;const n=e.singular_name.toLowerCase();return o[n]>1&&n!==t})(c,l);let _=c.singular_name;p&&(_=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),c.singular_name,l));const g=d?{...d,templatePrefix:r[l]}:{slug:u,title:_,description:(0,E.sprintf)((0,E.__)("Displays taxonomy: %s."),c.singular_name),icon:kr,templatePrefix:r[l]},h=i?.[l]?.hasEntities;return h&&(g.onClick=t=>{e({type:"taxonomy",slug:l,config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"count",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${r[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:r[l]}}},labels:c,hasGeneralTemplate:m,template:t})}),m&&!h||t.push(g),t}),[]);return(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let a="taxonomiesMenuItems";return["category","tag"].includes(n)&&(a="defaultTaxonomiesMenuItems"),e[a].push(t),e}),{defaultTaxonomiesMenuItems:[],taxonomiesMenuItems:[]})),[c])},Ar={user:"author"},Vr={user:{who:"authors"}};const Fr=(e,t,n={})=>{const a=(e=>{const t=Pr();return(0,l.useMemo)((()=>Object.entries(e||{}).reduce(((e,[n,a])=>{const r=(t||[]).reduce(((e,t)=>{const n=`${a}-`;return t.slug.startsWith(n)&&e.push(t.slug.substring(n.length)),e}),[]);return r.length&&(e[n]=r),e}),{})),[e,t])})(t);return(0,d.useSelect)((t=>Object.entries(a||{}).reduce(((a,[r,o])=>{const i=t(_.store).getEntityRecords(e,r,{_fields:"id",context:"view",slug:o,...n[r]});return i?.length&&(a[r]=i),a}),{})),[a])},zr=(e,t,n={})=>{const a=Fr(e,t,n);return(0,d.useSelect)((r=>Object.keys(t||{}).reduce(((t,o)=>{const i=a?.[o]?.map((({id:e})=>e))||[];return t[o]={hasEntities:!!r(_.store).getEntityRecords(e,o,{per_page:1,_fields:"id",context:"view",exclude:i,...n[o]})?.length,existingEntitiesIds:i},t}),{})),[t,a])},Or=[];function Hr({suggestion:e,search:t,onSelect:n,entityForSuggestions:a,composite:r}){const o="edit-site-custom-template-modal__suggestions_list__list-item";return(0,l.createElement)(y.__unstableCompositeItem,{role:"option",as:y.Button,...r,className:o,onClick:()=>n(a.config.getSpecificTemplate(e))},(0,l.createElement)(y.__experimentalText,{size:"body",lineHeight:1.53846153846,weight:500,className:`${o}__title`},(0,l.createElement)(y.TextHighlight,{text:(0,Pt.decodeEntities)(e.name),highlight:t})),e.link&&(0,l.createElement)(y.__experimentalText,{size:"body",lineHeight:1.53846153846,className:`${o}__info`},e.link))}function Gr(e,t){const{config:n}=e,a=(0,l.useMemo)((()=>({order:"asc",context:"view",search:t,per_page:t?20:10,...n.queryArgs(t)})),[t,n]),{records:r,hasResolved:o}=(0,_.useEntityRecords)(e.type,e.slug,a),[i,s]=(0,l.useState)(Or);return(0,l.useEffect)((()=>{if(!o)return;let e=Or;var t,a;r?.length&&(e=r,n.recordNamePath&&(t=e,a=n.recordNamePath,e=(t||[]).map((e=>({...e,name:(0,Pt.decodeEntities)((0,be.get)(e,a))}))))),s(e)}),[r,o]),i}function Ur({entityForSuggestions:e,onSelect:t}){const n=(0,y.__unstableUseCompositeState)({orientation:"vertical"}),[a,r,o]=Nr(),i=Gr(e,o),{labels:s}=e,[c,u]=(0,l.useState)(!1);return!c&&i?.length>9&&u(!0),(0,l.createElement)(l.Fragment,null,c&&(0,l.createElement)(y.SearchControl,{__nextHasNoMarginBottom:!0,onChange:r,value:a,label:s.search_items,placeholder:s.search_items}),!!i?.length&&(0,l.createElement)(y.__unstableComposite,{...n,role:"listbox",className:"edit-site-custom-template-modal__suggestions_list","aria-label":(0,E.__)("Suggestions list")},i.map((a=>(0,l.createElement)(Hr,{key:a.slug,suggestion:a,search:o,onSelect:t,entityForSuggestions:e,composite:n})))),o&&!i?.length&&(0,l.createElement)(y.__experimentalText,{as:"p",className:"edit-site-custom-template-modal__no-results"},s.not_found))}var $r=function({onSelect:e,entityForSuggestions:t}){const[n,a]=(0,l.useState)(t.hasGeneralTemplate);return(0,l.createElement)(y.__experimentalVStack,{spacing:4,className:"edit-site-custom-template-modal__contents-wrapper",alignment:"left"},!n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalText,{as:"p"},(0,E.__)("Select whether to create a single template for all items or a specific one.")),(0,l.createElement)(y.Flex,{className:"edit-site-custom-template-modal__contents",gap:"4",align:"initial"},(0,l.createElement)(y.FlexItem,{isBlock:!0,as:y.Button,onClick:()=>{const{slug:n,title:a,description:r,templatePrefix:o}=t.template;e({slug:n,title:a,description:r,templatePrefix:o})}},(0,l.createElement)(y.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.all_items),(0,l.createElement)(y.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For all items"))),(0,l.createElement)(y.FlexItem,{isBlock:!0,as:y.Button,onClick:()=>{a(!0)}},(0,l.createElement)(y.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.singular_name),(0,l.createElement)(y.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For a specific item"))))),n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalText,{as:"p"},(0,E.__)("This template will be used only for the specific item chosen.")),(0,l.createElement)(Ur,{entityForSuggestions:t,onSelect:e})))};var jr=function({onClose:e,createTemplate:t}){const[n,a]=(0,l.useState)(""),r=(0,E.__)("Custom Template"),[o,i]=(0,l.useState)(!1);return(0,l.createElement)("form",{onSubmit:async function(e){if(e.preventDefault(),!o){i(!0);try{await t({slug:"wp-custom-template-"+(0,be.kebabCase)(n||r),title:n||r},!1)}finally{i(!1)}}}},(0,l.createElement)(y.__experimentalVStack,{spacing:6},(0,l.createElement)(y.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:a,placeholder:r,disabled:o,help:(0,E.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(y.__experimentalHStack,{className:"edit-site-custom-generic-template__modal-actions",justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",isBusy:o,"aria-disabled":o},(0,E.__)("Create")))))};function Wr(){const e="edit-site-template-actions-loading-screen-modal";return(0,l.createElement)(y.Modal,{isFullScreen:!0,isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:()=>{},__experimentalHideHeader:!0,className:e},(0,l.createElement)("div",{className:`${e}__content`},(0,l.createElement)(y.Spinner,null)))}const{useHistory:Zr}=nt(mt.privateApis),qr=["front-page","home","single","page","index","archive","author","category","date","tag","search","404"],Yr={"front-page":gr,home:hr,single:vr,page:Hn,archive:yr,search:Er,404:fr,index:br,category:wr,author:Sr,taxonomy:kr,date:Cr,tag:xr,attachment:Tr};function Kr({title:e,direction:t,className:n,description:a,icon:r,onClick:o,children:i}){return(0,l.createElement)(y.Button,{className:n,onClick:o,label:a,showTooltip:!!a},(0,l.createElement)(y.Flex,{as:"span",spacing:2,align:"center",justify:"center",style:{width:"100%"},direction:t},(0,l.createElement)("div",{className:"edit-site-add-new-template__template-icon"},(0,l.createElement)(y.Icon,{icon:r})),(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-add-new-template__template-name",alignment:"center",spacing:0},(0,l.createElement)(y.__experimentalText,{weight:500,lineHeight:1.53846153846},e),i)))}const Xr=1,Qr=2,Jr=3;function eo({postType:e,toggleProps:t,showIcon:n=!0}){const[a,r]=(0,l.useState)(!1),[o,i]=(0,l.useState)(Xr),[s,c]=(0,l.useState)({}),[u,m]=(0,l.useState)(!1),p=Zr(),{saveEntityRecord:g}=(0,d.useDispatch)(_.store),{createErrorNotice:h,createSuccessNotice:f}=(0,d.useDispatch)(Se.store),{setTemplate:b}=nt((0,d.useDispatch)(Dn)),{homeUrl:w}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home}}),[]),S={"front-page":w,date:(0,E.sprintf)((0,E.__)("E.g. %s"),w+"/"+(new Date).getFullYear())};async function k(e,t=!0){if(!u){m(!0);try{const{title:n,description:a,slug:r}=e,o=await g("postType","wp_template",{description:a,slug:r.toString(),status:"publish",title:n,is_wp_suggestion:t},{throwOnError:!0});b(o.id,o.slug),p.push({postId:o.id,postType:o.type,canvas:"edit"}),f((0,E.sprintf)((0,E.__)('"%s" successfully created.'),(0,Pt.decodeEntities)(o.title?.rendered||n)),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template.");h(t,{type:"snackbar"})}finally{m(!1)}}}const C=()=>{r(!1),i(Xr)},x=function(e,t){const n=Pr(),a=Ir(),r=(n||[]).map((({slug:e})=>e)),o=(a||[]).filter((e=>qr.includes(e.slug)&&!r.includes(e.slug))),i=n=>{t?.(),e(n)},s=[...o],{defaultTaxonomiesMenuItems:c,taxonomiesMenuItems:u}=Dr(i),{defaultPostTypesMenuItems:d,postTypesMenuItems:m}=(e=>{const t=Br(),n=Pr(),a=Ir(),r=Rr(t),o=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return"page"!==t&&(n=`single-${n}`),e[t]=n,e}),{})),[t]),i=zr("postType",o),s=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c,icon:u}=n,d=o[l],m=a?.find((({slug:e})=>e===d)),p=s?.includes(d),_=r(n);let g=(0,E.sprintf)((0,E.__)("Single item: %s"),c.singular_name);_&&(g=(0,E.sprintf)((0,E.__)("Single item: %1$s (%2$s)"),c.singular_name,l));const h=m?{...m,templatePrefix:o[l]}:{slug:d,title:g,description:(0,E.sprintf)((0,E.__)("Displays a single item: %s."),c.singular_name),icon:u?.startsWith("dashicons-")?u.slice(10):Mr,templatePrefix:o[l]},v=i?.[l]?.hasEntities;return v&&(h.onClick=t=>{e({type:"postType",slug:l,config:{recordNamePath:"title.rendered",queryArgs:({search:e})=>({_fields:"id,title,slug,link",orderBy:e?"relevance":"modified",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${o[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:o[l]}}},labels:c,hasGeneralTemplate:p,template:t})}),p&&!v||t.push(h),t}),[]),u=(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let a="postTypesMenuItems";return"page"===n&&(a="defaultPostTypesMenuItems"),e[a].push(t),e}),{defaultPostTypesMenuItems:[],postTypesMenuItems:[]})),[c]);return u})(i),p=function(e){const t=Pr(),n=Ir(),a=zr("root",Ar,Vr);let r=n?.find((({slug:e})=>"author"===e));r||(r={description:(0,E.__)("Displays latest posts written by a single author."),slug:"author",title:"Author"});const o=!!t?.find((({slug:e})=>"author"===e));if(a.user?.hasEntities&&(r={...r,templatePrefix:"author"},r.onClick=t=>{e({type:"root",slug:"user",config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"registered_date",exclude:a.user.existingEntitiesIds,who:"authors"}),getSpecificTemplate:e=>{const t=`author-${e.slug}`;return{title:t,slug:t,templatePrefix:"author"}}},labels:{singular_name:(0,E.__)("Author"),search_items:(0,E.__)("Search Authors"),not_found:(0,E.__)("No authors found."),all_items:(0,E.__)("All Authors")},hasGeneralTemplate:o,template:t})}),!o||a.user?.hasEntities)return r}(i);[...c,...d,p].forEach((e=>{if(!e)return;const t=s.findIndex((t=>t.slug===e.slug));t>-1?s[t]=e:s.push(e)})),s?.sort(((e,t)=>qr.indexOf(e.slug)-qr.indexOf(t.slug)));return[...s,...Lr(),...m,...u]}(c,(()=>i(Qr)));if(!x.length)return null;const{as:T=y.Button,...N}=null!=t?t:{};let M=(0,E.__)("Add template");return o===Qr?M=(0,E.sprintf)((0,E.__)("Add template: %s"),s.labels.singular_name):o===Jr&&(M=(0,E.__)("Create custom template")),(0,l.createElement)(l.Fragment,null,u&&(0,l.createElement)(Wr,null),(0,l.createElement)(T,{...N,onClick:()=>r(!0),icon:n?Ka:null,label:e.labels.add_new_item},n?null:e.labels.add_new_item),a&&(0,l.createElement)(y.Modal,{title:M,className:v()("edit-site-add-new-template__modal",{"edit-site-add-new-template__modal_template_list":o===Xr,"edit-site-custom-template-modal":o===Qr}),onRequestClose:C,overlayClassName:o===Jr?"edit-site-custom-generic-template__modal":void 0},o===Xr&&(0,l.createElement)(y.__experimentalGrid,{columns:3,gap:4,align:"flex-start",justify:"center",className:"edit-site-add-new-template__template-list__contents"},(0,l.createElement)(y.Flex,{className:"edit-site-add-new-template__template-list__prompt"},(0,E.__)("Select what the new template should apply to:")),x.map((e=>{const{title:t,slug:n,onClick:a}=e;return(0,l.createElement)(Kr,{key:n,title:t,direction:"column",className:"edit-site-add-new-template__template-button",description:S[n],icon:Yr[n]||Gn,onClick:()=>a?a(e):k(e)})})),(0,l.createElement)(Kr,{title:(0,E.__)("Custom template"),direction:"row",className:"edit-site-add-new-template__custom-template-button",icon:Qn,onClick:()=>i(Jr)},(0,l.createElement)(y.__experimentalText,{lineHeight:1.53846153846},(0,E.__)("A custom template can be manually applied to any post or page.")))),o===Qr&&(0,l.createElement)($r,{onSelect:k,entityForSuggestions:s}),o===Jr&&(0,l.createElement)(jr,{onClose:C,createTemplate:k})))}function to({templateType:e="wp_template",...t}){const n=(0,d.useSelect)((t=>t(_.store).getPostType(e)),[e]);return n&&"wp_template"===e?(0,l.createElement)(eo,{...t,postType:n}):null}const no={wp_template:{labels:{title:(0,E.__)("Templates"),loading:(0,E.__)("Loading templates"),notFound:(0,E.__)("No templates found"),manage:(0,E.__)("Manage all templates"),description:(0,E.__)("Express the layout of your site with templates.")}},wp_template_part:{labels:{title:(0,E.__)("Library"),loading:(0,E.__)("Loading library"),notFound:(0,E.__)("No patterns found"),manage:(0,E.__)("Manage all template parts"),reusableBlocks:(0,E.__)("Manage patterns"),description:(0,E.__)("Template Parts are small pieces of a layout that can be reused across multiple templates and always appear the same way. Common template parts include the site header, footer, or sidebar.")},sortCallback:e=>{const t=e.reduce(((e,t)=>(e[e[t.area]?t.area:"rest"].push(t),e)),{header:[],footer:[],sidebar:[],rest:[]});return[...t.header,...t.footer,...t.sidebar,...t.rest]}}},ao=({postType:e,postId:t,...n})=>{const a=vt({postType:e,postId:t});return(0,l.createElement)(qn,{...a,...n})};function ro(){const{params:{postType:e}}=(0,y.__experimentalUseNavigator)(),t=(0,re.useViewportMatch)("medium","<"),n=(0,d.useSelect)((e=>!!e(Dn).getSettings().supportsTemplatePartsMode),[]),{records:a,isResolving:r}=(0,_.useEntityRecords)("postType",e,{per_page:-1});let o=a?[...a]:[];o.sort(((e,t)=>e.title.rendered.localeCompare(t.title.rendered))),no[e].sortCallback&&(o=no[e].sortCallback(o));const i=vt({path:"/"+e+"/all"}),s=!t&&!n,c="wp_template"===e;return(0,l.createElement)(jn,{isRoot:n,title:no[e].labels.title,description:no[e].labels.description,actions:s&&(0,l.createElement)(to,{templateType:e,toggleProps:{as:$n}}),content:(0,l.createElement)(l.Fragment,null,r&&no[e].labels.loading,!r&&(0,l.createElement)(y.__experimentalItemGroup,null,!a?.length&&(0,l.createElement)(y.__experimentalItem,null,no[e].labels.notFound),o.map((t=>(0,l.createElement)(ao,{postType:e,postId:t.id,key:t.id,withChevron:!0,icon:!c&&(0,g.getTemplatePartIcon)(t.area)},(0,Pt.decodeEntities)(t.title?.rendered||t.slug)))))),footer:!t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(qn,{withChevron:!0,...i},no[e].labels.manage),!!no[e].labels.reusableBlocks&&(0,l.createElement)(qn,{as:"a",href:"edit.php?post_type=wp_block"},no[e].labels.reusableBlocks))})}function oo(e,t){const{record:n,title:a,description:r,isLoaded:o,icon:i}=(0,d.useSelect)((n=>{const{getEditedPostType:a,getEditedPostId:r}=n(Dn),{getEditedEntityRecord:o,hasFinishedResolution:i}=n(_.store),{__experimentalGetTemplateInfo:s}=n(g.store),l=null!=e?e:a(),c=null!=t?t:r(),u=o("postType",l,c),d=c&&i("getEditedEntityRecord",["postType",l,c]),m=s(u);return{record:u,title:m.title,description:m.description,isLoaded:d,icon:m.icon}}),[e,t]);return{isLoaded:o,icon:i,record:n,getTitle:()=>a?(0,Pt.decodeEntities)(a):null,getDescription:()=>r?(0,Pt.decodeEntities)(r):null}}var io=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));var so=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));const lo=["wp_template","wp_template_part"];function co(e,t){return(0,d.useSelect)((n=>{const{getTheme:a,getPlugin:r,getEntityRecord:o,getMedia:i,getUser:s,getEditedEntityRecord:l}=n(_.store),c=l("postType",e,t);if(lo.includes(c.type)){if(c.has_theme_file&&("theme"===c.origin||!c.origin&&["theme","custom"].includes(c.source)))return{type:"theme",icon:Gn,text:a(c.theme)?.name?.rendered||c.theme,isCustomized:"custom"===c.source};if(c.has_theme_file&&"plugin"===c.origin)return{type:"plugin",icon:io,text:r(c.theme)?.name||c.theme,isCustomized:"custom"===c.source};if(!c.has_theme_file&&"custom"===c.source&&!c.author){const e=o("root","__unstableBase");return{type:"site",icon:so,imageUrl:e?.site_logo?i(e.site_logo)?.source_url:void 0,text:e?.name,isCustomized:!1}}}const u=s(c.author);return{type:"user",icon:Sr,imageUrl:u?.avatar_urls?.[48],text:u?.nickname,isCustomized:!1}}),[e,t])}function uo({imageUrl:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:v()("edit-site-list-added-by__avatar",{"is-loaded":t})},(0,l.createElement)("img",{onLoad:()=>n(!0),alt:"",src:e}))}function mo({postType:e,postId:t}){const{text:n,icon:a,imageUrl:r,isCustomized:o}=co(e,t);return(0,l.createElement)(y.__experimentalHStack,{alignment:"left"},r?(0,l.createElement)(uo,{imageUrl:r}):(0,l.createElement)("div",{className:"edit-site-list-added-by__icon"},(0,l.createElement)(y.Icon,{icon:a})),(0,l.createElement)("span",null,n,o&&(0,l.createElement)("span",{className:"edit-site-list-added-by__customized-info"},"wp_template"===e?(0,E._x)("Customized","template"):(0,E._x)("Customized","template part"))))}function po(e){return!!e&&("custom"===e.source&&!e.has_theme_file)}function _o({template:e,onClose:t}){const[n,a]=(0,l.useState)((()=>e.title.rendered)),[r,o]=(0,l.useState)(!1),{editEntityRecord:i,saveEditedEntityRecord:s}=(0,d.useDispatch)(_.store),{createSuccessNotice:c,createErrorNotice:u}=(0,d.useDispatch)(Se.store);if("wp_template"===e.type&&!e.is_custom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuItem,{onClick:()=>{o(!0),a(e.title.rendered)}},(0,E.__)("Rename")),r&&(0,l.createElement)(y.Modal,{title:(0,E.__)("Rename"),onRequestClose:()=>{o(!1)},overlayClassName:"edit-site-list__rename-modal"},(0,l.createElement)("form",{onSubmit:async function(r){r.preventDefault();try{await i("postType",e.type,e.id,{title:n}),a(""),o(!1),t(),await s("postType",e.type,e.id,{throwOnError:!0}),c((0,E.__)("Entity renamed."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while renaming the entity.");u(t,{type:"snackbar"})}}},(0,l.createElement)(y.__experimentalVStack,{spacing:"5"},(0,l.createElement)(y.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:a,required:!0}),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>{o(!1)}},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit"},(0,E.__)("Save")))))))}function go({postType:e,postId:t,className:n,toggleProps:a,onRemove:r}){const o=(0,d.useSelect)((n=>n(_.store).getEntityRecord("postType",e,t)),[e,t]),{removeTemplate:i,revertTemplate:s}=(0,d.useDispatch)(Dn),{saveEditedEntityRecord:c}=(0,d.useDispatch)(_.store),{createSuccessNotice:u,createErrorNotice:m}=(0,d.useDispatch)(Se.store),p=po(o),g=Bt(o);if(!p&&!g)return null;return(0,l.createElement)(y.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:n,toggleProps:a},(({onClose:e})=>(0,l.createElement)(y.MenuGroup,null,p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_o,{template:o,onClose:e}),(0,l.createElement)(y.MenuItem,{isDestructive:!0,isTertiary:!0,onClick:()=>{i(o),r?.(),e()}},(0,E.__)("Delete"))),g&&(0,l.createElement)(y.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{!async function(){try{await s(o,{allowUndo:!1}),await c("postType",o.type,o.id),u((0,E.sprintf)((0,E.__)('"%s" reverted.'),o.title.rendered),{type:"snackbar",id:"edit-site-template-reverted"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while reverting the entity.");m(t,{type:"snackbar"})}}(),e()}},(0,E.__)("Clear customizations")))))}var ho=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function vo({children:e}){return(0,l.createElement)(y.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__label"},e)}function yo({label:e,children:t,className:n}){return(0,l.createElement)(y.__experimentalHStack,{key:e,spacing:5,alignment:"left",className:v()("edit-site-sidebar-navigation-details-screen-panel__row",n)},t)}function Eo({children:e}){return(0,l.createElement)(y.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__value"},e)}function fo({title:e,children:t,spacing:n}){return(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-sidebar-navigation-details-screen-panel",spacing:n},e&&(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-sidebar-navigation-details-screen-panel__heading",level:2},e),t)}const bo={};function wo({postId:e,icon:t,title:n}){var a;const r={header:Ya,footer:ho},o=vt({postType:"wp_template_part",postId:e});return(0,l.createElement)(qn,{className:"edit-site-sidebar-navigation-screen-template__template-area-button",...o,icon:null!==(a=r[t])&&void 0!==a?a:Gn,withChevron:!0},(0,l.createElement)(y.__experimentalTruncate,{limit:20,ellipsizeMode:"tail",numberOfLines:1,className:"edit-site-sidebar-navigation-screen-template__template-area-label-text"},(0,Pt.decodeEntities)(n)))}function So(){const e=(0,y.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{editEntityRecord:a}=(0,d.useDispatch)(_.store),{allowCommentsOnNewPosts:r,templatePartAreas:o,postsPerPage:i,postsPageTitle:s,postsPageId:c,currentTemplateParts:u}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","site"),{getSettings:a}=nt(e(Dn)),r=e(Dn).getCurrentTemplateTemplateParts(),o=a(),i=n?.page_for_posts?e(_.store).getEntityRecord("postType","page",n?.page_for_posts):bo;return{allowCommentsOnNewPosts:"open"===n?.default_comment_status,postsPageTitle:i?.title?.rendered,postsPageId:i?.id,postsPerPage:n?.posts_per_page,templatePartAreas:o?.defaultTemplatePartAreas,currentTemplateParts:r}}),[t,n]),[m,p]=(0,l.useState)(""),[g,h]=(0,l.useState)(1),[v,f]=(0,l.useState)("");(0,l.useEffect)((()=>{p(r),f(s),h(i)}),[s,r,i]);const b=(0,l.useMemo)((()=>u.length&&o?u.map((({templatePart:e})=>({...o?.find((({area:t})=>t===e?.area)),...e}))):[]),[u,o]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(fo,{spacing:6},c&&(0,l.createElement)(yo,null,(0,l.createElement)(y.__experimentalInputControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:(0,E.__)("No Title"),size:"__unstable-large",value:v,onChange:(0,re.debounce)((e=>{f(e),a("postType","page",c,{title:e})}),300),label:(0,E.__)("Blog title"),help:(0,E.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media.")})),(0,l.createElement)(yo,null,(0,l.createElement)(y.__experimentalNumberControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:0,value:g,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:e=>{h(e),a("root","site",void 0,{posts_per_page:e})},label:(0,E.__)("Posts per page"),help:(0,E.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.")}))),(0,l.createElement)(fo,{title:(0,E.__)("Discussion"),spacing:3},(0,l.createElement)(yo,null,(0,l.createElement)(y.CheckboxControl,{className:"edit-site-sidebar-navigation-screen__input-control",label:"Allow comments on new posts",help:"Changes will apply to new posts only. Individual posts may override these settings.",checked:m,onChange:e=>{p(e),a("root","site",void 0,{default_comment_status:e?"open":null})}}))),(0,l.createElement)(fo,{title:(0,E.__)("Areas"),spacing:3},(0,l.createElement)(y.__experimentalItemGroup,null,b.map((({label:e,icon:t,theme:n,slug:a,title:r})=>(0,l.createElement)(yo,{key:a},(0,l.createElement)(wo,{postId:`${n}//${a}`,title:r?.rendered||e,icon:t})))))))}function ko({lastModifiedDateTime:e}){return(0,l.createElement)(l.Fragment,null,e&&(0,l.createElement)(yo,{className:"edit-site-sidebar-navigation-screen-details-footer"},(0,l.createElement)(vo,null,(0,E.__)("Last modified")),(0,l.createElement)(Eo,null,(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)(""),(0,Jn.humanTimeDiff)(e)),{time:(0,l.createElement)("time",{dateTime:e})}))))}function Co(){const e=(0,y.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{setCanvasMode:a}=nt((0,d.useDispatch)(Dn)),{title:r,content:o,description:i,footer:s}=function(e,t){const{getDescription:n,getTitle:a,record:r}=oo(e,t),o=(0,d.useSelect)((e=>e(_.store).getCurrentTheme()),[]),i=co(e,t),s="theme"===i.type&&r.theme===o?.stylesheet,c=a();let u=n();!u&&i.text&&(u=(0,E.__)("This is a custom template that can be applied manually to any Post or Page."));const m="home"===r?.slug||"index"===r?.slug?(0,l.createElement)(So,null):null,p=r?.modified?(0,l.createElement)(ko,{lastModifiedDateTime:r.modified}):null;return{title:c,description:(0,l.createElement)(l.Fragment,null,u,i.text&&!s&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(y.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-customized"},(0,E._x)("(Customized)","template")))),content:m,footer:p}}(t,n);return(0,l.createElement)(jn,{title:r,actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(go,{postType:t,postId:n,toggleProps:{as:$n},onRemove:()=>{e.goTo(`/${t}/all`)}}),(0,l.createElement)($n,{onClick:()=>a("edit"),label:(0,E.__)("Edit"),icon:Xn})),description:i,content:o,footer:s})}const{useLocation:xo}=nt(mt.privateApis);function To(){const{params:{postId:e,postType:t}={}}=xo(),{isRequestingSite:n,homepageId:a,url:r}=(0,d.useSelect)((e=>{const{getSite:t,getUnstableBase:n}=e(_.store),a=t(),r=n();return{isRequestingSite:!r,homepageId:"page"===a?.show_on_front?a.page_on_front:null,url:r?.home}}),[]),{setEditedEntity:o,setTemplate:i,setTemplatePart:s,setPage:c,setNavigationMenu:u}=(0,d.useDispatch)(Dn);(0,l.useEffect)((()=>{if(t&&e)switch(t){case"wp_template":i(e);break;case"wp_template_part":s(e);break;case"wp_navigation":u(e);break;case"wp_block":o(t,e);break;default:c({context:{postType:t,postId:e}})}else a?c({context:{postType:"page",postId:a}}):n||c({path:r})}),[r,e,t,a,n,o,c,i,s,u])}var No=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var Mo=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const Po={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},{useHistory:Io}=nt(mt.privateApis);function Bo(e){const t=Io(),{block:n}=e,{clientId:a}=n,{moveBlocksDown:r,moveBlocksUp:o,removeBlocks:i}=(0,d.useDispatch)(we.store),s=(0,E.sprintf)((0,E.__)("Remove %s"),(0,we.BlockTitle)({clientId:a,maximumLength:25})),c=(0,E.sprintf)((0,E.__)("Go to %s"),(0,we.BlockTitle)({clientId:a,maximumLength:25})),u=(0,d.useSelect)((e=>{const{getBlockRootClientId:t}=e(we.store);return t(a)}),[a]),m=(0,l.useCallback)((e=>{const{attributes:n,name:a}=e;"post-type"===n.kind&&n.id&&n.type&&t&&t.push({postType:n.type,postId:n.id,..._t()&&{wp_theme_preview:gt()}}),"core/page-list-item"===a&&n.id&&t&&t.push({postType:"page",postId:n.id,..._t()&&{wp_theme_preview:gt()}})}),[t]);return(0,l.createElement)(y.DropdownMenu,{icon:le,label:(0,E.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Po,noIcons:!0,...e},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{icon:No,onClick:()=>{o([a],u),e()}},(0,E.__)("Move up")),(0,l.createElement)(y.MenuItem,{icon:Mo,onClick:()=>{r([a],u),e()}},(0,E.__)("Move down")),n.attributes?.id&&(0,l.createElement)(y.MenuItem,{onClick:()=>{m(n),e()}},c)),(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>{i([a],!1),e()}},s)))))}const{PrivateListView:Ro}=nt(we.privateApis),Lo=["postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}];function Do({rootClientId:e}){const{listViewRootClientId:t,isLoading:n}=(0,d.useSelect)((t=>{const{areInnerBlocksControlled:n,getBlockName:a,getBlockCount:r,getBlockOrder:o}=t(we.store),{isResolving:i}=t(_.store),s=o(e),l=1===s.length&&"core/page-list"===a(s[0])&&r(s[0])>0,c=i("getEntityRecords",Lo);return{listViewRootClientId:l?s[0]:e,isLoading:!n(e)||c}}),[e]),{replaceBlock:a,__unstableMarkNextChangeAsNotPersistent:r}=(0,d.useDispatch)(we.store),o=(0,l.useCallback)((e=>{"core/navigation-link"!==e.name||e.attributes.url||(r(),a(e.clientId,(0,c.createBlock)("core/navigation-link",e.attributes)))}),[r,a]);return(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)(Ro,{rootClientId:t,onSelect:o,blockSettingsMenu:Bo,showAppender:!1}),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor"},(0,l.createElement)(we.BlockTools,null,(0,l.createElement)(we.BlockList,null))))}const Ao=()=>{};function Vo({navigationMenuId:e}){const{storedSettings:t}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Dn));return{storedSettings:t(!1)}}),[]),n=(0,l.useMemo)((()=>e?[(0,c.createBlock)("core/navigation",{ref:e})]:[]),[e]);return e&&n?.length?(0,l.createElement)(we.BlockEditorProvider,{settings:t,value:n,onChange:Ao,onInput:Ao},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__content"},(0,l.createElement)(Do,{rootClientId:n[0].clientId}))):null}function Fo({id:e}){const[t]=(0,_.useEntityProp)("postType","wp_navigation","title",e);return e?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"12",upperCase:!0},t?.rendered||(0,E.__)("Navigation")),(0,l.createElement)(Vo,{navigationMenuId:e})):null}function zo({id:e}){const[t]=(0,_.useEntityProp)("postType","wp_navigation","title",e),n=vt({postId:e,postType:"wp_navigation"});return e?(0,l.createElement)(qn,{withChevron:!0,...n},t||(0,E.__)("(no title)")):null}function Oo({menus:e}){return(0,l.createElement)(y.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu-list"},e.map((e=>(0,l.createElement)(zo,{key:e,id:e}))))}function Ho({menus:e}){return e.length?1===e.length?(0,l.createElement)(Fo,{id:e[0]}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"12",upperCase:!0},(0,E.__)("Navigation")),(0,l.createElement)(Oo,{menus:e})):null}function Go(){const{params:e}=(0,y.__experimentalUseNavigator)(),{postType:t,postId:n}=e,{setCanvasMode:a}=nt((0,d.useDispatch)(Dn));To();const r=function(e,t){const{getDescription:n,getTitle:a,record:r}=oo(e,t),o=(0,d.useSelect)((e=>e(_.store).getCurrentTheme()),[]),i=co(e,t),s="theme"===i.type&&r.theme===o?.stylesheet,c=a();let u=n();return!u&&i.text&&(u=(0,E.sprintf)((0,E.__)("This is your %s pattern."),a())),!u&&"wp_block"===e&&r?.title&&(u=(0,E.sprintf)((0,E.__)("This is your %s pattern."),r.title)),{title:c,description:(0,l.createElement)(l.Fragment,null,u,i.text&&!s&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(y.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-customized"},(0,E._x)("(Customized)","pattern")))),footer:r?.modified?(0,l.createElement)(ko,{lastModifiedDateTime:r.modified}):null}}(t,n),o=function(e,t){const{record:n}=oo(e,t);if("wp_template_part"!==e)return;const a=function(e,t){if(!e||!t?.length)return[];const n=t=>{if(!t)return[];const a=[];for(const r of t)if(r.name===e&&a.push(r),r?.innerBlocks){const e=n(r.innerBlocks);e.length&&a.push(...e)}return a};return n(t)}("core/navigation",n?.blocks)?.map((e=>e.attributes.ref));return a?.length?(0,l.createElement)(Ho,{menus:a}):void 0}(t,n);return(0,l.createElement)(jn,{actions:(0,l.createElement)($n,{onClick:()=>a("edit"),label:(0,E.__)("Edit"),icon:Xn}),backPath:"/library",content:o,...r})}const{useLocation:Uo,useHistory:$o}=nt(mt.privateApis);function jo(e){var t;let n=null!==(t=e?.path)&&void 0!==t?t:"/";if(e?.postType&&e?.postId)switch(e.postType){case"wp_block":case"wp_template":case"wp_template_part":case"page":n=`/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`;break;default:n=`/navigation/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`}return n}const Wo={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"};function Zo({menuTitle:e,onClose:t,onSave:n}){const[a,r]=(0,l.useState)(e),o=a!==e&&a?.trim()?.length>0;return(0,l.createElement)(y.Modal,{title:(0,E.__)("Rename"),onRequestClose:t},(0,l.createElement)("form",{className:"sidebar-navigation__rename-modal-form"},(0,l.createElement)(y.__experimentalVStack,{spacing:"3"},(0,l.createElement)(y.TextControl,{__nextHasNoMarginBottom:!0,value:a,placeholder:(0,E.__)("Navigation title"),onChange:r}),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{disabled:!o,variant:"primary",type:"submit",onClick:e=>{e.preventDefault(),o&&(n({title:a}),t())}},(0,E.__)("Save"))))))}function qo({onClose:e,onConfirm:t}){return(0,l.createElement)(y.Modal,{title:(0,E.__)("Delete"),onRequestClose:e},(0,l.createElement)("form",null,(0,l.createElement)(y.__experimentalVStack,{spacing:"3"},(0,l.createElement)("p",null,(0,E.__)("Are you sure you want to delete this Navigation menu?")),(0,l.createElement)(y.__experimentalHStack,{justify:"right"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:e},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",onClick:n=>{n.preventDefault(),t(),e()}},(0,E.__)("Delete"))))))}const Yo={position:"bottom right"};function Ko(e){const{onDelete:t,onSave:n,onDuplicate:a,menuTitle:r}=e,[o,i]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!1),u=()=>{i(!1),c(!1)};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.DropdownMenu,{className:"sidebar-navigation__more-menu",icon:le,popoverProps:Yo},(({onClose:e})=>(0,l.createElement)("div",null,(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>{i(!0),e()}},(0,E.__)("Rename")),(0,l.createElement)(y.MenuItem,{onClick:()=>{a(),e()}},(0,E.__)("Duplicate"))),(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>{c(!0),e()}},(0,E.__)("Delete")))))),s&&(0,l.createElement)(qo,{onClose:u,onConfirm:t}),o&&(0,l.createElement)(Zo,{onClose:u,menuTitle:r,onSave:n}))}function Xo({navigationMenu:e,handleDelete:t,handleDuplicate:n,handleSave:a}){const r=e?.title?.rendered;return(0,l.createElement)(oi,{actions:(0,l.createElement)(Ko,{menuTitle:(0,Pt.decodeEntities)(r),onDelete:t,onSave:a,onDuplicate:n}),title:(0,Pt.decodeEntities)(r),description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(Vo,{navigationMenuId:e?.id}))}const Qo="wp_navigation";function Jo(){const{params:{postId:e}}=(0,y.__experimentalUseNavigator)(),{record:t,isResolving:n}=(0,_.useEntityRecord)("postType",Qo,e),{isSaving:a,isDeleting:r}=(0,d.useSelect)((t=>{const{isSavingEntityRecord:n,isDeletingEntityRecord:a,getEditedEntityRecord:r}=t(_.store);return{isSaving:n("postType",Qo,e),isDeleting:a("postType",Qo,e),getEditedEntityRecord:r}}),[e]),o=n||a||r,i=t?.title?.rendered||t?.slug,{handleSave:s,handleDelete:c,handleDuplicate:u}=ai(),m=()=>c(t),p=e=>s(t,e),g=()=>u(t);return o?(0,l.createElement)(oi,{description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(y.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):o||t?t?.content?.raw?(0,l.createElement)(Xo,{navigationMenu:t,handleDelete:m,handleSave:p,handleDuplicate:g}):(0,l.createElement)(oi,{actions:(0,l.createElement)(Ko,{menuTitle:(0,Pt.decodeEntities)(i),onDelete:m,onSave:p,onDuplicate:g}),title:(0,Pt.decodeEntities)(i),description:(0,E.__)("This Navigation Menu is empty.")}):(0,l.createElement)(oi,{description:(0,E.__)("Navigation Menu missing.")})}function ei(){const{goTo:e}=(0,y.__experimentalUseNavigator)(),{deleteEntityRecord:t}=(0,d.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store);return async r=>{const o=r?.id;try{await t("postType",Qo,o,{force:!0},{throwOnError:!0}),n((0,E.__)("Deleted Navigation menu"),{type:"snackbar"}),e("/navigation")}catch(e){a((0,E.sprintf)((0,E.__)("Unable to delete Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function ti(){const{getEditedEntityRecord:e}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(_.store);return{getEditedEntityRecord:t}}),[]),{editEntityRecord:t,saveEditedEntityRecord:n}=(0,d.useDispatch)(_.store),{createSuccessNotice:a,createErrorNotice:r}=(0,d.useDispatch)(Se.store);return async(o,i)=>{if(!i)return;const s=o?.id,l=e("postType","wp_navigation",s);t("postType",Qo,s,i);try{await n("postType",Qo,s,{throwOnError:!0}),a((0,E.__)("Renamed Navigation menu"),{type:"snackbar"})}catch(e){t("postType",Qo,s,l),r((0,E.sprintf)((0,E.__)("Unable to rename Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function ni(){const{goTo:e}=(0,y.__experimentalUseNavigator)(),{saveEntityRecord:t}=(0,d.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store);return async r=>{const o=r?.title?.rendered||r?.slug;try{const a=await t("postType",Qo,{title:(0,E.sprintf)((0,E.__)("%s (Copy)"),o),content:r?.content?.raw,status:"publish"},{throwOnError:!0});a&&(n((0,E.__)("Duplicated Navigation menu"),{type:"snackbar"}),e(`/navigation/${Qo}/${a.id}`))}catch(e){a((0,E.sprintf)((0,E.__)("Unable to duplicate Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function ai(){return{handleDelete:ei(),handleSave:ti(),handleDuplicate:ni()}}function ri(){const{records:e,isResolving:t,hasResolved:n}=(0,_.useEntityRecords)("postType","wp_navigation",Wo),a=t&&!n,r=(0,d.useSelect)((e=>e(_.store).getNavigationFallbackId)),o=e?.[0];o||t||!n||r();const{handleSave:i,handleDelete:s,handleDuplicate:c}=ai(),u=!!e?.length;return a?(0,l.createElement)(oi,null,(0,l.createElement)(y.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):a||u?1===e?.length?(0,l.createElement)(Xo,{navigationMenu:o,handleDelete:()=>s(o),handleDuplicate:()=>c(o),handleSave:e=>i(o,e)}):(0,l.createElement)(oi,null,(0,l.createElement)(y.__experimentalItemGroup,null,e?.map((({id:e,title:t,status:n},a)=>(0,l.createElement)(ii,{postId:e,key:e,withChevron:!0,icon:zn},function(e,t,n){return e?.rendered?"publish"===n?(0,Pt.decodeEntities)(e?.rendered):(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),(0,Pt.decodeEntities)(e?.rendered),n):(0,E.sprintf)((0,E.__)("(no title %s)"),t)}(t,a+1,n)))))):(0,l.createElement)(oi,{description:(0,E.__)("No Navigation Menus found.")})}function oi({children:e,actions:t,title:n,description:a}){return(0,l.createElement)(jn,{title:n||(0,E.__)("Navigation"),actions:t,description:a||(0,E.__)("Manage your Navigation menus."),content:e})}const ii=({postId:e,...t})=>{const n=vt({postId:e,postType:"wp_navigation"});return(0,l.createElement)(qn,{...n,...t})},si={wp_template:{title:(0,E.__)("All templates"),description:(0,E.__)("Create new templates, or reset any customizations made to the templates supplied by your theme.")},wp_template_part:{title:(0,E.__)("All template parts"),description:(0,E.__)("Create new template parts, or reset any customizations made to the template parts supplied by your theme.")}};function li(){const{params:{postType:e}}=(0,y.__experimentalUseNavigator)();return(0,l.createElement)(jn,{title:si[e].title,description:si[e].description})}function ci({className:e="edit-site-save-button__button",variant:t="primary",showTooltip:n=!0,defaultLabel:a,icon:r}){const{isDirty:o,isSaving:i,isSaveViewOpen:s}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(_.store),a=t(),{isSaveViewOpened:r}=e(Dn);return{isDirty:a.length>0,isSaving:a.some((e=>n(e.kind,e.name,e.key))),isSaveViewOpen:r()}}),[]),{setIsSaveViewOpened:c}=(0,d.useDispatch)(Dn),u=_t()||o,m=i||!u,p=_t()?i?(0,E.__)("Activating"):m?(0,E.__)("Saved"):o?(0,E.__)("Activate & Save"):(0,E.__)("Activate"):i?(0,E.__)("Saving"):m?(0,E.__)("Saved"):a||(0,E.__)("Save");return(0,l.createElement)(y.Button,{variant:t,className:e,"aria-disabled":m,"aria-expanded":s,isBusy:i,onClick:m?void 0:()=>c(!0),label:p,shortcut:m?void 0:ea.displayShortcut.primary("s"),showTooltip:n,icon:r},p)}const{useLocation:ui}=nt(mt.privateApis),di=[{kind:"postType",name:"wp_navigation"}];function mi(){const{params:e}=ui(),{__unstableMarkLastChangeAsPersistent:t}=(0,d.useDispatch)(we.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store),{dirtyCurrentEntity:r,countUnsavedChanges:o,isDirty:i,isSaving:s}=(0,d.useSelect)((t=>{const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:a}=t(_.store),r=n();let o=null;return 1===r.length&&(e.path?.includes("wp_global_styles")?o=r.find((e=>"globalStyles"===e.name)):e.postId&&(o=r.find((t=>t.name===e.postType&&String(t.key)===e.postId)))),{dirtyCurrentEntity:o,isDirty:r.length>0,isSaving:r.some((e=>a(e.kind,e.name,e.key))),countUnsavedChanges:r.length}}),[e.path,e.postType,e.postId]),{editEntityRecord:c,saveEditedEntityRecord:u,__experimentalSaveSpecifiedEntityEdits:m}=(0,d.useDispatch)(_.store),p=s||!i&&!_t();let g=r?(0,E.__)("Save"):(0,E.sprintf)((0,E._n)("Review %d change…","Review %d changes…",o),o);s&&(g=(0,E.__)("Saving"));return(0,l.createElement)(y.__experimentalHStack,{className:"edit-site-save-hub",alignment:"right",spacing:4},r?(0,l.createElement)(y.Button,{variant:"primary",onClick:async()=>{if(!r)return;const{kind:e,name:o,key:i,property:s}=r;try{"root"===r.kind&&"site"===o?await m("root","site",void 0,[s]):(di.some((t=>t.kind===e&&t.name===o))&&c(e,o,i,{status:"publish"}),await u(e,o,i)),t(),n((0,E.__)("Site updated."),{type:"snackbar"})}catch(e){a(`${(0,E.__)("Saving failed.")} ${e}`)}},isBusy:s,disabled:s,"aria-disabled":s,className:"edit-site-save-hub__button"},g):(0,l.createElement)(ci,{className:"edit-site-save-hub__button",variant:p?null:"primary",showTooltip:!1,icon:p&&!s?b:null,defaultLabel:g}))}var pi=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"}));function _i({onSave:e,onClose:t}){const[n,a]=(0,l.useState)(!1),[r,o]=(0,l.useState)(""),{saveEntityRecord:i}=(0,d.useDispatch)(_.store),{createErrorNotice:s,createSuccessNotice:c}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(y.Modal,{title:(0,E.__)("Draft a new page"),onRequestClose:t},(0,l.createElement)("form",{onSubmit:async function(t){if(t.preventDefault(),!n){a(!0);try{const t=await i("postType","page",{status:"draft",title:r,slug:(0,be.kebabCase)(r||(0,E.__)("No title"))},{throwOnError:!0});e(t),c((0,E.sprintf)((0,E.__)('"%s" successfully created.'),t.title?.rendered||r),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the page.");s(t,{type:"snackbar"})}finally{a(!1)}}}},(0,l.createElement)(y.__experimentalVStack,{spacing:3},(0,l.createElement)(y.TextControl,{autoFocus:!0,label:(0,E.__)("Page title"),onChange:o,placeholder:(0,E.__)("No title"),value:r}),(0,l.createElement)(y.__experimentalHStack,{spacing:2,justify:"end"},(0,l.createElement)(y.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(y.Button,{variant:"primary",type:"submit",isBusy:n,"aria-disabled":n},(0,E.__)("Create draft"))))))}const{useHistory:gi}=nt(mt.privateApis),hi=({postType:e="page",postId:t,...n})=>{const a=vt({postType:e,postId:t});return(0,l.createElement)(qn,{...a,...n})};function vi(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType","page",{status:"any",per_page:-1}),{records:n,isResolving:a}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),r=n?.filter((({slug:e})=>["404","search"].includes(e))),o=n?.find((e=>"front-page"===e.slug))||n?.find((e=>"home"===e.slug))||n?.find((e=>"index"===e.slug)),i=e?.concat(r,[o]),{frontPage:s,postsPage:c}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","site");return{frontPage:n?.page_on_front,postsPage:n?.page_for_posts}}),[]),u=s===c,m=e&&[...e];if(!u&&m?.length){const e=m.findIndex((e=>e.id===s)),t=m.splice(e,1);m?.splice(0,0,...t);const n=m.findIndex((e=>e.id===c)),a=m.splice(n,1);m.splice(1,0,...a)}const[p,g]=(0,l.useState)(!1),h=gi();return(0,l.createElement)(l.Fragment,null,p&&(0,l.createElement)(_i,{onSave:({type:e,id:t})=>{h.push({postId:t,postType:e,canvas:"edit"}),g(!1)},onClose:()=>g(!1)}),(0,l.createElement)(jn,{title:(0,E.__)("Pages"),description:(0,E.__)("Browse and edit pages on your site."),actions:(0,l.createElement)($n,{icon:Ka,label:(0,E.__)("Draft a new page"),onClick:()=>g(!0)}),content:(0,l.createElement)(l.Fragment,null,(t||a)&&(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(y.__experimentalItem,null,(0,E.__)("Loading pages"))),!(t||a)&&(0,l.createElement)(y.__experimentalItemGroup,null,!i?.length&&(0,l.createElement)(y.__experimentalItem,null,(0,E.__)("No page found")),u&&o&&(0,l.createElement)(hi,{postType:"wp_template",postId:o.id,key:o.id,icon:gr,withChevron:!0},(0,l.createElement)(y.__experimentalTruncate,{numberOfLines:1},(0,Pt.decodeEntities)(o.title?.rendered||(0,E.__)("(no title)")))),m?.map((e=>{let t;switch(e.id){case s:t=gr;break;case c:t=pi;break;default:t=Hn}return(0,l.createElement)(hi,{postId:e.id,key:e.id,icon:t,withChevron:!0},(0,l.createElement)(y.__experimentalTruncate,{numberOfLines:1},(0,Pt.decodeEntities)(e?.title?.rendered||(0,E.__)("(no title)"))))})))),footer:(0,l.createElement)(y.__experimentalVStack,{spacing:0},r?.map((e=>(0,l.createElement)(hi,{postType:"wp_template",postId:e.id,key:e.id,icon:Gn,withChevron:!0},(0,l.createElement)(y.__experimentalTruncate,{numberOfLines:1},(0,Pt.decodeEntities)(e.title?.rendered||(0,E.__)("(no title)")))))),(0,l.createElement)(qn,{className:"edit-site-sidebar-navigation-screen-pages__see-all",href:"edit.php?post_type=page",onClick:()=>{document.location="edit.php?post_type=page"}},(0,E.__)("Manage all pages")))}))}var yi=window.wp.dom,Ei=window.wp.escapeHtml,fi=window.wp.wordcount;const bi=(0,l.createElement)(f.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm-1.067-5.6 4.2-5.667.8.6-4.8 6.467-3-2.267.6-.8 2.2 1.667Z"})),wi=(0,l.createElement)(f.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 8a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0ZM16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-8 4a4 4 0 0 0 0-8v8Z"})),Si=(0,l.createElement)(f.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 8a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0ZM16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0ZM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}));function ki({status:e,date:t,short:n}){const a=(0,Jn.humanTimeDiff)(t);let r="",o=Si;switch(e){case"publish":r=t?(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("Published "),a),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Published"),o=bi;break;case"future":const e=(0,Jn.dateI18n)(n?"M j":"F j",(0,Jn.getDate)(t));r=t?(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("Scheduled: "),e),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Scheduled");break;case"draft":r=(0,E.__)("Draft"),o=wi;break;case"pending":r=(0,E.__)("Pending");break;case"private":r=(0,E.__)("Private");break;case"protected":r=(0,E.__)("Password protected")}return(0,l.createElement)("div",{className:v()("edit-site-sidebar-navigation-screen-page__status",{[`has-status has-${e}-status`]:!!e})},o," ",r)}function Ci({id:e}){const{record:t}=(0,_.useEntityRecord)("postType","page",e),{parentTitle:n,templateTitle:a}=(0,d.useSelect)((e=>{const{getEditedPostContext:n}=nt(e(Dn)),a=n(),r=e(_.store).getEntityRecords("postType","wp_template",{per_page:-1}),o="page"===a?.postType?a?.templateSlug:null,i=r&&o?r.find((e=>e.slug===o))?.title?.rendered:null;return{parentTitle:t?.parent?e(_.store).getEntityRecord("postType","page",t.parent,{_fields:["title"]})?.title?.rendered:null,templateTitle:i}}),[t?.parent]);return(0,l.createElement)(fo,{spacing:5,title:(0,E.__)("Details")},function(e){if(!e)return[];const t=[{label:(0,E.__)("Status"),value:(0,l.createElement)(ki,{status:e?.password?"protected":e.status,date:e?.date,short:!0})},{label:(0,E.__)("Slug"),value:(0,l.createElement)(y.__experimentalTruncate,{numberOfLines:1},(0,pt.safeDecodeURIComponent)(e.slug))}];e?.templateTitle&&t.push({label:(0,E.__)("Template"),value:(0,Pt.decodeEntities)(e.templateTitle)}),e?.parentTitle&&t.push({label:(0,E.__)("Parent"),value:(0,Pt.decodeEntities)(e.parentTitle||(0,E.__)("(no title)"))});const n=(0,E._x)("words","Word count type. Do not translate!"),a=e?.content?.rendered?(0,fi.count)(e.content.rendered,n):0,r=Math.round(a/189);return a&&t.push({label:(0,E.__)("Words"),value:a.toLocaleString()||(0,E.__)("Unknown")},{label:(0,E.__)("Time to read"),value:r>1?(0,E.sprintf)((0,E.__)("%s mins"),r.toLocaleString()):(0,E.__)("< 1 min")}),t}({parentTitle:n,templateTitle:a,...t}).map((({label:e,value:t})=>(0,l.createElement)(yo,{key:e},(0,l.createElement)(vo,null,e),(0,l.createElement)(Eo,null,t)))))}function xi({postId:e,onRemove:t}){const[n,a]=(0,l.useState)(!1),{createSuccessNotice:r,createErrorNotice:o}=(0,d.useDispatch)(Se.store),{deleteEntityRecord:i}=(0,d.useDispatch)(_.store),s=(0,d.useSelect)((t=>t(_.store).getEntityRecord("postType","page",e)),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuItem,{onClick:()=>a(!0),isDestructive:!0},(0,E.__)("Delete")),(0,l.createElement)(y.__experimentalConfirmDialog,{isOpen:n,onConfirm:async function(){try{await i("postType","page",e,{},{throwOnError:!0}),r((0,E.sprintf)((0,E.__)('"%s" deleted.'),(0,Pt.decodeEntities)(s.title.rendered)),{type:"snackbar",id:"edit-site-page-removed"}),t?.()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the page.");o(t,{type:"snackbar"})}finally{a(!1)}},onCancel:()=>a(!1)},(0,E.__)("Are you sure you want to delete this page?")))}function Ti({postId:e,className:t,toggleProps:n,onRemove:a}){return(0,l.createElement)(y.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:t,toggleProps:n},(()=>(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(xi,{postId:e,onRemove:a}))))}function Ni(){const e=(0,y.__experimentalUseNavigator)(),{setCanvasMode:t}=nt((0,d.useDispatch)(Dn)),{params:{postId:n}}=(0,y.__experimentalUseNavigator)(),{record:a}=(0,_.useEntityRecord)("postType","page",n),{featuredMediaAltText:r,featuredMediaSourceUrl:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=a?.featured_media?t("postType","attachment",a?.featured_media):null;return{featuredMediaSourceUrl:n?.media_details.sizes?.medium?.source_url||n?.source_url,featuredMediaAltText:(0,Ei.escapeAttribute)(n?.alt_text||n?.description?.raw||"")}}),[a]),i=r?(0,Pt.decodeEntities)(r):(0,Pt.decodeEntities)(a?.title?.rendered||(0,E.__)("Featured image"));return a?(0,l.createElement)(jn,{title:(0,Pt.decodeEntities)(a?.title?.rendered||(0,E.__)("(no title)")),actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ti,{postId:n,toggleProps:{as:$n},onRemove:()=>{e.goTo("/page")}}),(0,l.createElement)($n,{onClick:()=>t("edit"),label:(0,E.__)("Edit"),icon:Xn})),meta:(0,l.createElement)(y.ExternalLink,{className:"edit-site-sidebar-navigation-screen__page-link",href:a.link},(0,pt.filterURLForDisplay)((0,pt.safeDecodeURIComponent)(a.link))),content:(0,l.createElement)(l.Fragment,null,!!o&&(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-page__featured-image-wrapper",alignment:"left",spacing:2},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-page__featured-image has-image"},(0,l.createElement)("img",{alt:i,src:o}))),!!a?.excerpt?.rendered&&(0,l.createElement)(y.__experimentalTruncate,{className:"edit-site-sidebar-navigation-screen-page__excerpt",numberOfLines:3},(0,yi.__unstableStripHTML)(a.excerpt.rendered)),(0,l.createElement)(Ci,{id:n})),footer:(0,l.createElement)(ko,{lastModifiedDateTime:a?.modified})}):null}const{useLocation:Mi}=nt(mt.privateApis);function Pi(){return function(){const e=$o(),{params:t}=Uo(),{location:n,params:a,goTo:r}=(0,y.__experimentalUseNavigator)(),o=(0,l.useRef)(t),i=(0,l.useRef)(n.path),s=(0,l.useRef)(!0);(0,l.useEffect)((()=>{function t(t){if(Object.entries(t).every((([e,t])=>o.current[e]===t)))return;const n={...o.current,...t};o.current=n,e.push(n)}s.current?s.current=!1:a?.postType&&a?.postId?t({postType:a?.postType,postId:a?.postId,path:void 0}):n.path.startsWith("/page/")&&a?.postId?t({postType:"page",postId:a?.postId,path:void 0}):"/library"===n.path?t({postType:void 0,postId:void 0,canvas:void 0,path:n.path}):t({postType:void 0,postId:void 0,categoryType:void 0,categoryId:void 0,path:"/"===n.path?void 0:n.path})}),[n?.path,a,e]),(0,l.useEffect)((()=>{o.current=t;const e=jo(t);i.current!==e&&(i.current=e,r(e))}),[t,r])}(),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(Za,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/navigation"},(0,l.createElement)(ri,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/navigation/:postType/:postId"},(0,l.createElement)(Jo,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/wp_global_styles"},(0,l.createElement)(Wa,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/page"},(0,l.createElement)(vi,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/page/:postId"},(0,l.createElement)(Ni,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/:postType(wp_template)"},(0,l.createElement)(ro,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/library"},(0,l.createElement)(_r,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/:postType(wp_template_part|wp_block)/:postId"},(0,l.createElement)(Go,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/:postType(wp_template)/all"},(0,l.createElement)(li,null)),(0,l.createElement)(y.__experimentalNavigatorScreen,{path:"/:postType(wp_template)/:postId"},(0,l.createElement)(Co,null)))}var Ii=(0,l.memo)((function(){const{params:e}=Mi(),t=(0,l.useRef)(jo(e));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalNavigatorProvider,{className:"edit-site-sidebar__content",initialPath:t.current},(0,l.createElement)(Pi,null)),(0,l.createElement)(mi,null))}));var Bi=(0,l.createElement)(f.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var Ri=(0,l.createElement)(f.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));function Li({className:e,identifier:t,title:n,icon:a,children:r,closeLabel:o,header:i,headerClassName:s,panelClassName:c}){const u=(0,d.useSelect)((e=>e(Dn).getSettings().showIconLabels),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ae,{className:e,scope:"core/edit-site",identifier:t,title:n,icon:a,closeLabel:o,header:i,headerClassName:s,panelClassName:c,showIconLabels:u},r),(0,l.createElement)(Q,{scope:"core/edit-site",identifier:t,icon:a},n))}function Di({className:e,...t}){return(0,l.createElement)(y.Icon,{className:v()(e,"edit-site-global-styles-icon-with-current-color"),...t})}function Ai({icon:e,children:t,...n}){return(0,l.createElement)(y.__experimentalItem,{...n},e&&(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(Di,{icon:e,size:24}),(0,l.createElement)(y.FlexItem,null,t)),!e&&t)}function Vi(e){return(0,l.createElement)(y.__experimentalNavigatorButton,{as:Ai,...e})}var Fi=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));var zi=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"}));const{useHasDimensionsPanel:Oi,useHasTypographyPanel:Hi,useHasColorPanel:Gi,useGlobalSetting:Ui,useSettingsForBlockElement:$i}=nt(we.privateApis);var ji=function(){const[e]=Ui(""),t=$i(e),n=Hi(t),a=Gi(t),r=Oi(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalItemGroup,null,n&&(0,l.createElement)(Vi,{icon:Fi,path:"/typography","aria-label":(0,E.__)("Typography styles")},(0,E.__)("Typography")),a&&(0,l.createElement)(Vi,{icon:zi,path:"/colors","aria-label":(0,E.__)("Colors styles")},(0,E.__)("Colors")),r&&(0,l.createElement)(Vi,{icon:Gn,path:"/layout","aria-label":(0,E.__)("Layout styles")},(0,E.__)("Layout"))))};var Wi=function(){const{useGlobalStyle:e}=nt(we.privateApis),[t]=e("css"),{hasVariations:n,canEditCSS:a}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a,__experimentalGetCurrentThemeGlobalStylesVariations:r}=e(_.store),o=a(),i=o?n("root","globalStyles",o):void 0;return{hasVariations:!!r()?.length,canEditCSS:null!==(t=!!i?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]);return(0,l.createElement)(y.Card,{size:"small",className:"edit-site-global-styles-screen-root"},(0,l.createElement)(y.CardBody,null,(0,l.createElement)(y.__experimentalVStack,{spacing:4},(0,l.createElement)(y.Card,null,(0,l.createElement)(y.CardMedia,null,(0,l.createElement)(ha,null))),n&&(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(Vi,{path:"/variations","aria-label":(0,E.__)("Browse styles")},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(y.FlexItem,null,(0,E.__)("Browse styles")),(0,l.createElement)(Di,{icon:(0,E.isRTL)()?me:pe})))),(0,l.createElement)(ji,null))),(0,l.createElement)(y.CardDivider,null),(0,l.createElement)(y.CardBody,null,(0,l.createElement)(y.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Customize the appearance of specific blocks for the whole site.")),(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(Vi,{path:"/blocks","aria-label":(0,E.__)("Blocks styles")},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(y.FlexItem,null,(0,E.__)("Blocks")),(0,l.createElement)(Di,{icon:(0,E.isRTL)()?me:pe}))))),a&&!!t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.CardDivider,null),(0,l.createElement)(y.CardBody,null,(0,l.createElement)(y.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Add your own CSS to customize the appearance and layout of your site.")),(0,l.createElement)(y.__experimentalItemGroup,null,(0,l.createElement)(Vi,{path:"/css","aria-label":(0,E.__)("Additional CSS")},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(y.FlexItem,null,(0,E.__)("Additional CSS")),(0,l.createElement)(Di,{icon:(0,E.isRTL)()?me:pe})))))))};function Zi(e){const t=function(e){return e?.filter((e=>"block"===e.source))}((0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]));return t}function qi({name:e}){const t=Zi(e);return(0,l.createElement)(y.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},t.map(((t,n)=>t?.isDefault?null:(0,l.createElement)(Vi,{key:n,path:"/blocks/"+encodeURIComponent(e)+"/variations/"+encodeURIComponent(t.name),"aria-label":t.label},t.label))))}var Yi=function({title:e,description:t}){return(0,l.createElement)(y.__experimentalVStack,{spacing:0},(0,l.createElement)(y.__experimentalView,null,(0,l.createElement)(y.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,l.createElement)(y.__experimentalHStack,{spacing:2},(0,l.createElement)(y.__experimentalNavigatorToParentButton,{style:{minWidth:24,padding:0},icon:(0,E.isRTL)()?pe:me,isSmall:!0,"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(y.__experimentalSpacer,null,(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-global-styles-header",level:2,size:13},e))))),t&&(0,l.createElement)("p",{className:"edit-site-global-styles-header__description"},t))};const{useHasDimensionsPanel:Ki,useHasTypographyPanel:Xi,useHasBorderPanel:Qi,useGlobalSetting:Ji,useSettingsForBlockElement:es,useHasColorPanel:ts}=nt(we.privateApis);function ns(e){const[t]=Ji("",e),n=es(t,e),a=Xi(n),r=ts(n),o=Qi(n),i=Ki(n),s=o||i,l=!!Zi(e)?.length;return a||r||s||l}function as({block:e}){if(!ns(e.name))return null;const t=(0,E.sprintf)((0,E.__)("%s block styles"),e.title);return(0,l.createElement)(Vi,{path:"/blocks/"+encodeURIComponent(e.name),"aria-label":t},(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(we.BlockIcon,{icon:e.icon}),(0,l.createElement)(y.FlexItem,null,e.title)))}var rs=function(){const e=function(){const e=(0,d.useSelect)((e=>e(c.store).getBlockTypes()),[]),{core:t,noncore:n}=e.reduce(((e,t)=>{const{core:n,noncore:a}=e;return(t.name.startsWith("core/")?n:a).push(t),e}),{core:[],noncore:[]});return[...t,...n]}(),[t,n]=(0,l.useState)(""),a=(0,re.useDebounce)(Mt.speak,500),r=(0,d.useSelect)((e=>e(c.store).isMatchingSearchTerm),[]),o=(0,l.useMemo)((()=>t?e.filter((e=>r(e,t))):e),[t,e,r]),i=(0,l.useRef)();return(0,l.useEffect)((()=>{if(!t)return;const e=i.current.childElementCount,n=(0,E.sprintf)((0,E._n)("%d result found.","%d results found.",e),e);a(n,e)}),[t,a]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:(0,E.__)("Blocks"),description:(0,E.__)("Customize the appearance of specific blocks and for the whole site.")}),(0,l.createElement)(y.SearchControl,{__nextHasNoMarginBottom:!0,className:"edit-site-block-types-search",onChange:n,value:t,label:(0,E.__)("Search for blocks"),placeholder:(0,E.__)("Search")}),(0,l.createElement)("div",{ref:i,className:"edit-site-block-types-item-list"},o.map((e=>(0,l.createElement)(as,{block:e,key:"menu-itemblock-"+e.name})))))};var os=({name:e,variation:t=""})=>{const n=(0,c.getBlockType)(e)?.example,a={...n,attributes:{...n?.attributes,className:"is-style-"+t}},r=n&&(0,c.getBlockFromExample)(e,t?a:n),o=n?.viewportWidth||null,i="150px";return n?(0,l.createElement)(y.__experimentalSpacer,{marginX:4,marginBottom:4},(0,l.createElement)("div",{className:"edit-site-global-styles__block-preview-panel",style:{maxHeight:i,boxSizing:"initial"}},(0,l.createElement)(we.BlockPreview,{blocks:r,viewportWidth:o,minHeight:i,additionalStyles:[{css:"\n\t\t\t\t\t\t\t\tbody{\n\t\t\t\t\t\t\t\t\tmin-height:150px;\n\t\t\t\t\t\t\t\t\tdisplay:flex;align-items:center;justify-content:center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"}]}))):null};var is=function({children:e,level:t}){return(0,l.createElement)(y.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:null!=t?t:2},e)};function ss(e){if(!e)return e;const t=e.color||e.width;return!e.style&&t?{...e,style:"solid"}:!e.style||t?e:void 0}const{useHasDimensionsPanel:ls,useHasTypographyPanel:cs,useHasBorderPanel:us,useGlobalSetting:ds,useSettingsForBlockElement:ms,useHasColorPanel:ps,useHasEffectsPanel:_s,useHasFiltersPanel:gs,useGlobalStyle:hs,BorderPanel:vs,ColorPanel:ys,TypographyPanel:Es,DimensionsPanel:fs,EffectsPanel:bs,FiltersPanel:ws,AdvancedPanel:Ss}=nt(we.privateApis);var ks=function({name:e,variation:t}){let n=[];t&&(n=["variations",t].concat(n));const a=n.join("."),[r]=hs(a,e,"user",{shouldDecodeEncode:!1}),[o,i]=hs(a,e,"all",{shouldDecodeEncode:!1}),[s,u]=ds("",e),m=ms(s,e),p=(0,c.getBlockType)(e),g=Zi(e),h=cs(m),v=ps(m),f=us(m),b=ls(m),w=_s(m),S=gs(m),k=!!g?.length&&!t,{canEditCSS:C}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{canEditCSS:null!==(t=!!(r?n("root","globalStyles",r):void 0)?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),x=t?g.find((e=>e.name===t)):null,T=(0,l.useMemo)((()=>({...o,layout:m.layout})),[o,m.layout]),N=(0,l.useMemo)((()=>({...r,layout:m.layout})),[r,m.layout]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:t?x.label:p.title}),(0,l.createElement)(os,{name:e,variation:t}),k&&(0,l.createElement)("div",{className:"edit-site-global-styles-screen-variations"},(0,l.createElement)(y.__experimentalVStack,{spacing:3},(0,l.createElement)(is,null,(0,E.__)("Style Variations")),(0,l.createElement)(qi,{name:e}))),v&&(0,l.createElement)(ys,{inheritedValue:o,value:r,onChange:i,settings:m}),h&&(0,l.createElement)(Es,{inheritedValue:o,value:r,onChange:i,settings:m}),b&&(0,l.createElement)(fs,{inheritedValue:T,value:N,onChange:e=>{const t={...e};delete t.layout,i(t),e.layout!==m.layout&&u({...s,layout:e.layout})},settings:m,includeLayoutControls:!0}),f&&(0,l.createElement)(vs,{inheritedValue:o,value:r,onChange:e=>{if(!e?.border)return void i(e);const{radius:t,...n}=e.border,a=function(e){return e?(0,y.__experimentalHasSplitBorders)(e)?{top:ss(e.top),right:ss(e.right),bottom:ss(e.bottom),left:ss(e.left)}:ss(e):e}(n),r=(0,y.__experimentalHasSplitBorders)(a)?{color:null,style:null,width:null,...a}:{top:a,right:a,bottom:a,left:a};i({...e,border:{...r,radius:t}})},settings:m}),w&&(0,l.createElement)(bs,{inheritedValue:T,value:N,onChange:i,settings:m,includeLayoutControls:!0}),S&&(0,l.createElement)(ws,{inheritedValue:T,value:N,onChange:i,settings:{...m,color:{...m.color,customDuotone:!1}},includeLayoutControls:!0}),C&&(0,l.createElement)(y.PanelBody,{title:(0,E.__)("Advanced"),initialOpen:!1},(0,l.createElement)("p",null,(0,E.sprintf)((0,E.__)("Add your own CSS to customize the appearance of the %s block."),p?.title)),(0,l.createElement)(Ss,{value:r,onChange:i,inheritedValue:o})))};const{useGlobalStyle:Cs}=nt(we.privateApis);function xs({parentMenu:e,element:t,label:n}){const a="text"!==t&&t?`elements.${t}.`:"",r="link"===t?{textDecoration:"underline"}:{},[o]=Cs(a+"typography.fontFamily"),[i]=Cs(a+"typography.fontStyle"),[s]=Cs(a+"typography.fontWeight"),[c]=Cs(a+"typography.letterSpacing"),[u]=Cs(a+"color.background"),[d]=Cs(a+"color.gradient"),[m]=Cs(a+"color.text"),p=(0,E.sprintf)((0,E.__)("Typography %s styles"),n);return(0,l.createElement)(Vi,{path:e+"/typography/"+t,"aria-label":p},(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(y.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=o?o:"serif",background:null!=d?d:u,color:m,fontStyle:i,fontWeight:s,letterSpacing:c,...r}},(0,E.__)("Aa")),(0,l.createElement)(y.FlexItem,null,n)))}var Ts=function(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:(0,E.__)("Typography"),description:(0,E.__)("Manage the typography settings for different elements.")}),(0,l.createElement)(os,null),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-typography"},(0,l.createElement)(y.__experimentalVStack,{spacing:3},(0,l.createElement)(is,{level:3},(0,E.__)("Elements")),(0,l.createElement)(y.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(xs,{parentMenu:"",element:"text",label:(0,E.__)("Text")}),(0,l.createElement)(xs,{parentMenu:"",element:"link",label:(0,E.__)("Links")}),(0,l.createElement)(xs,{parentMenu:"",element:"heading",label:(0,E.__)("Headings")}),(0,l.createElement)(xs,{parentMenu:"",element:"caption",label:(0,E.__)("Captions")}),(0,l.createElement)(xs,{parentMenu:"",element:"button",label:(0,E.__)("Buttons")})))))};const{useGlobalStyle:Ns,useGlobalSetting:Ms,useSettingsForBlockElement:Ps,TypographyPanel:Is}=nt(we.privateApis);function Bs({element:e,headingLevel:t}){let n=[];"heading"===e?n=n.concat(["elements",t]):e&&"text"!==e&&(n=n.concat(["elements",e]));const a=n.join("."),[r]=Ns(a,void 0,"user",{shouldDecodeEncode:!1}),[o,i]=Ns(a,void 0,"all",{shouldDecodeEncode:!1}),[s]=Ms(""),c=Ps(s,void 0,"heading"===e?t:e);return(0,l.createElement)(Is,{inheritedValue:o,value:r,onChange:i,settings:c})}const{useGlobalStyle:Rs}=nt(we.privateApis);function Ls({name:e,element:t,headingLevel:n}){let a="";"heading"===t?a=`elements.${n}.`:t&&"text"!==t&&(a=`elements.${t}.`);const[r]=Rs(a+"typography.fontFamily",e),[o]=Rs(a+"color.gradient",e),[i]=Rs(a+"color.background",e),[s]=Rs(a+"color.text",e),[c]=Rs(a+"typography.fontSize",e),[u]=Rs(a+"typography.fontStyle",e),[d]=Rs(a+"typography.fontWeight",e),[m]=Rs(a+"typography.letterSpacing",e),p="link"===t?{textDecoration:"underline"}:{};return(0,l.createElement)("div",{className:"edit-site-typography-preview",style:{fontFamily:null!=r?r:"serif",background:null!=o?o:i,color:s,fontSize:c,fontStyle:u,fontWeight:d,letterSpacing:m,...p}},"Aa")}const Ds={text:{description:(0,E.__)("Manage the fonts used on the site."),title:(0,E.__)("Text")},link:{description:(0,E.__)("Manage the fonts and typography used on the links."),title:(0,E.__)("Links")},heading:{description:(0,E.__)("Manage the fonts and typography used on headings."),title:(0,E.__)("Headings")},caption:{description:(0,E.__)("Manage the fonts and typography used on captions."),title:(0,E.__)("Captions")},button:{description:(0,E.__)("Manage the fonts and typography used on buttons."),title:(0,E.__)("Buttons")}};var As=function({element:e}){const[t,n]=(0,l.useState)("heading");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:Ds[e].title,description:Ds[e].description}),(0,l.createElement)(y.__experimentalSpacer,{marginX:4},(0,l.createElement)(Ls,{element:e,headingLevel:t})),"heading"===e&&(0,l.createElement)(y.__experimentalSpacer,{marginX:4,marginBottom:"1em"},(0,l.createElement)(y.__experimentalToggleGroupControl,{label:(0,E.__)("Select heading level"),hideLabelFromVision:!0,value:t,onChange:n,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0},(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"heading",label:(0,E.__)("All")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h1",label:(0,E.__)("H1")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h2",label:(0,E.__)("H2")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h3",label:(0,E.__)("H3")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h4",label:(0,E.__)("H4")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h5",label:(0,E.__)("H5")}),(0,l.createElement)(y.__experimentalToggleGroupControlOption,{value:"h6",label:(0,E.__)("H6")}))),(0,l.createElement)(Bs,{element:e,headingLevel:t}))};var Vs=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,l.createElement)(f.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"}));var Fs=function({className:e,...t}){return(0,l.createElement)(y.Flex,{className:v()("edit-site-global-styles__color-indicator-wrapper",e),...t})};const{useGlobalSetting:zs}=nt(we.privateApis),Os=[];var Hs=function({name:e}){const[t]=zs("color.palette.custom"),[n]=zs("color.palette.theme"),[a]=zs("color.palette.default"),[r]=zs("color.defaultPalette",e),[o]=function(e){const[t,n]=at("color.palette.theme",e);return window.__experimentalEnableColorRandomizer?[function(){const e=Math.floor(225*Math.random()),a=t.map((t=>{const{color:n}=t,a=Ke(n).rotate(e).toHex();return{...t,color:a}}));n(a)}]:[]}(),i=(0,l.useMemo)((()=>[...t||Os,...n||Os,...a&&r?a:Os]),[t,n,a,r]),s=e?"/blocks/"+encodeURIComponent(e)+"/colors/palette":"/colors/palette",c=i.length>0?(0,E.sprintf)((0,E._n)("%d color","%d colors",i.length),i.length):(0,E.__)("Add custom colors");return(0,l.createElement)(y.__experimentalVStack,{spacing:3},(0,l.createElement)(is,{level:3},(0,E.__)("Palette")),(0,l.createElement)(y.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(Vi,{path:s,"aria-label":(0,E.__)("Color palettes")},(0,l.createElement)(y.__experimentalHStack,{direction:0===i.length?"row-reverse":"row"},(0,l.createElement)(y.__experimentalZStack,{isLayered:!1,offset:-8},i.slice(0,5).map((({color:e},t)=>(0,l.createElement)(Fs,{key:`${e}-${t}`},(0,l.createElement)(y.ColorIndicator,{colorValue:e}))))),(0,l.createElement)(y.FlexItem,null,c)))),n?.length>0&&(0,l.createElement)(y.Button,{variant:"secondary",icon:Vs,onClick:o},(0,E.__)("Randomize colors")))};const{useGlobalStyle:Gs,useGlobalSetting:Us,useSettingsForBlockElement:$s,ColorPanel:js}=nt(we.privateApis);var Ws=function(){const[e]=Gs("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=Gs("",void 0,"all",{shouldDecodeEncode:!1}),[a]=Us(""),r=$s(a);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:(0,E.__)("Colors"),description:(0,E.__)("Manage palettes and the default color of different global elements on the site.")}),(0,l.createElement)(os,null),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-colors"},(0,l.createElement)(y.__experimentalVStack,{spacing:10},(0,l.createElement)(Hs,null),(0,l.createElement)(js,{inheritedValue:t,value:e,onChange:n,settings:r}))))};const{useGlobalSetting:Zs}=nt(we.privateApis),qs={placement:"bottom-start",offset:8};function Ys({name:e}){const[t,n]=Zs("color.palette.theme",e),[a]=Zs("color.palette.theme",e,"base"),[r,o]=Zs("color.palette.default",e),[i]=Zs("color.palette.default",e,"base"),[s,c]=Zs("color.palette.custom",e),[u]=Zs("color.defaultPalette",e),d=(0,re.useViewportMatch)("small","<")?qs:void 0;return(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(y.__experimentalPaletteEdit,{canReset:t!==a,canOnlyChangeValues:!0,colors:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:d}),!!r&&!!r.length&&!!u&&(0,l.createElement)(y.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,colors:r,onChange:o,paletteLabel:(0,E.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:d}),(0,l.createElement)(y.__experimentalPaletteEdit,{colors:s,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelHeadingLevel:3,emptyMessage:(0,E.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-",popoverProps:d}))}const{useGlobalSetting:Ks}=nt(we.privateApis),Xs={placement:"bottom-start",offset:8},Qs=()=>{};function Js({name:e}){const[t,n]=Ks("color.gradients.theme",e),[a]=Ks("color.gradients.theme",e,"base"),[r,o]=Ks("color.gradients.default",e),[i]=Ks("color.gradients.default",e,"base"),[s,c]=Ks("color.gradients.custom",e),[u]=Ks("color.defaultGradients",e),[d]=Ks("color.duotone.custom")||[],[m]=Ks("color.duotone.default")||[],[p]=Ks("color.duotone.theme")||[],[_]=Ks("color.defaultDuotone"),g=[...d||[],...p||[],...m&&_?m:[]],h=(0,re.useViewportMatch)("small","<")?Xs:void 0;return(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(y.__experimentalPaletteEdit,{canReset:t!==a,canOnlyChangeValues:!0,gradients:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:h}),!!r&&!!r.length&&!!u&&(0,l.createElement)(y.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,gradients:r,onChange:o,paletteLabel:(0,E.__)("Default"),paletteLabelLevel:3,popoverProps:h}),(0,l.createElement)(y.__experimentalPaletteEdit,{gradients:s,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelLevel:3,emptyMessage:(0,E.__)("Custom gradients are empty! Add some gradients to create your own palette."),slugPrefix:"custom-",popoverProps:h}),!!g&&!!g.length&&(0,l.createElement)("div",null,(0,l.createElement)(is,{level:3},(0,E.__)("Duotone")),(0,l.createElement)(y.__experimentalSpacer,{margin:3}),(0,l.createElement)(y.DuotonePicker,{duotonePalette:g,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:Qs})))}var el=function({name:e}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:(0,E.__)("Palette"),description:(0,E.__)("Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),(0,l.createElement)(y.TabPanel,{tabs:[{name:"solid",title:"Solid",value:"solid"},{name:"gradient",title:"Gradient",value:"gradient"}]},(t=>(0,l.createElement)(l.Fragment,null,"solid"===t.value&&(0,l.createElement)(Ys,{name:e}),"gradient"===t.value&&(0,l.createElement)(Js,{name:e})))))};const{useGlobalStyle:tl,useGlobalSetting:nl,useSettingsForBlockElement:al,DimensionsPanel:rl}=nt(we.privateApis),ol={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!1};function il(){const[e]=tl("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=tl("",void 0,"all",{shouldDecodeEncode:!1}),[a,r]=nl(""),o=al(a),i=(0,l.useMemo)((()=>({...t,layout:o.layout})),[t,o.layout]),s=(0,l.useMemo)((()=>({...e,layout:o.layout})),[e,o.layout]);return(0,l.createElement)(rl,{inheritedValue:i,value:s,onChange:e=>{const t={...e};if(delete t.layout,n(t),e.layout!==o.layout){const t={...a,layout:e.layout};t.layout?.definitions&&delete t.layout.definitions,r(t)}},settings:o,includeLayoutControls:!0,defaultControls:ol})}const{useHasDimensionsPanel:sl,useGlobalSetting:ll,useSettingsForBlockElement:cl}=nt(we.privateApis);var ul=function(){const[e]=ll(""),t=cl(e),n=sl(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:(0,E.__)("Layout")}),(0,l.createElement)(os,null),n&&(0,l.createElement)(il,null))};var dl=function(){const{mode:e}=(0,d.useSelect)((e=>({mode:e(we.store).__unstableGetEditorMode()})),[]),t=(0,l.useRef)(null);(0,l.useEffect)((()=>{"zoom-out"!==e&&(t.current=!1)}),[e]),(0,l.useEffect)((()=>{if("zoom-out"!==e)return n("zoom-out"),t.current=!0,()=>{t.current&&n(e)}}),[]);const{__unstableSetEditorMode:n}=(0,d.useDispatch)(we.store);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{back:"/",title:(0,E.__)("Browse styles"),description:(0,E.__)("Choose a variation to change the look of the site.")}),(0,l.createElement)(y.Card,{size:"small",isBorderless:!0,className:"edit-site-global-styles-screen-style-variations"},(0,l.createElement)(y.CardBody,null,(0,l.createElement)(fa,null))))};const{useGlobalStyle:ml,AdvancedPanel:pl}=nt(we.privateApis);var _l=function(){const e=(0,E.__)("Add your own CSS to customize the appearance and layout of your site."),[t]=ml("",void 0,"user",{shouldDecodeEncode:!1}),[n,a]=ml("",void 0,"all",{shouldDecodeEncode:!1});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:(0,E.__)("CSS"),description:(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(y.ExternalLink,{href:"https://wordpress.org/documentation/article/css/",className:"edit-site-global-styles-screen-css-help-link"},(0,E.__)("Learn more about CSS")))}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-css"},(0,l.createElement)(pl,{value:t,onChange:a,inheritedValue:n})))};const{ExperimentalBlockEditorProvider:gl,useGlobalStylesOutputWithConfig:hl}=nt(we.privateApis);function vl(e){return!e||0===Object.keys(e).length}var yl=function({onClose:e,userConfig:t,blocks:n}){const{baseConfig:a}=(0,d.useSelect)((e=>({baseConfig:e(_.store).__experimentalGetCurrentThemeBaseGlobalStyles()})),[]),r=(0,l.useMemo)((()=>vl(t)||vl(a)?{}:sa(a,t)),[a,t]),o=(0,l.useMemo)((()=>Array.isArray(n)?n:[n]),[n]),i=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),s=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),[c]=hl(r),u=vl(c)||vl(t)?s.styles:c;return(0,l.createElement)(Pa,{title:(0,E.__)("Revisions"),onClose:e,closeButtonLabel:(0,E.__)("Close revisions"),enableResizing:!0},(0,l.createElement)(we.__unstableIframe,{className:"edit-site-revisions__iframe",name:"revisions",tabIndex:0},(0,l.createElement)(we.__unstableEditorStyles,{styles:u}),(0,l.createElement)("style",null,".is-root-container { display: flow-root; } body { position: relative; padding: 32px; }"),(0,l.createElement)(y.Disabled,{className:"edit-site-revisions__example-preview__content"},(0,l.createElement)(gl,{value:o,settings:s},(0,l.createElement)(we.BlockList,{renderAppender:!1})))))};const{createPrivateSlotFill:El}=nt(y.privateApis),{Slot:fl,Fill:bl}=El("SidebarFixedBottom");function wl({children:e}){return(0,l.createElement)(bl,null,(0,l.createElement)("div",{className:"edit-site-sidebar-fixed-bottom-slot"},e))}function Sl(e){const t=e?.author?.name||(0,E.__)("User");if("unsaved"===e?.id)return(0,E.sprintf)((0,E.__)("Unsaved changes by %(name)s"),{name:t});const n=(0,Jn.dateI18n)((0,Jn.getSettings)().formats.datetimeAbbreviated,(0,Jn.getDate)(e?.modified));return e?.isLatest?(0,E.sprintf)((0,E.__)("Changes saved by %(name)s on %(date)s (current)"),{name:t,date:n}):(0,E.sprintf)((0,E.__)("Changes saved by %(name)s on %(date)s"),{name:t,date:n})}var kl=function({userRevisions:e,selectedRevisionId:t,onChange:n}){return(0,l.createElement)("ol",{className:"edit-site-global-styles-screen-revisions__revisions-list","aria-label":(0,E.__)("Global styles revisions"),role:"group"},e.map(((e,a)=>{const{id:r,author:o,modified:i}=e,s=o?.name||(0,E.__)("User"),c=o?.avatar_urls?.[48],u="unsaved"===e?.id,d=t?t===e?.id:0===a;return(0,l.createElement)("li",{className:v()("edit-site-global-styles-screen-revisions__revision-item",{"is-selected":d}),key:r},(0,l.createElement)(y.Button,{className:"edit-site-global-styles-screen-revisions__revision-button",disabled:d,onClick:()=>{n(e)},label:Sl(e)},(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__description"},(0,l.createElement)("time",{dateTime:i},(0,Jn.humanTimeDiff)(i)),(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__meta"},u?(0,E.sprintf)((0,E.__)("Unsaved changes by %(name)s"),{name:s}):(0,E.sprintf)((0,E.__)("Changes saved by %(name)s"),{name:s}),(0,l.createElement)("img",{alt:o?.name,src:c})))))})))};const{GlobalStylesContext:Cl,areGlobalStyleConfigsEqual:xl}=nt(we.privateApis);var Tl=function(){const{goBack:e}=(0,y.__experimentalUseNavigator)(),{user:t,setUserConfig:n}=(0,l.useContext)(Cl),{blocks:a,editorCanvasContainerView:r}=(0,d.useSelect)((e=>({editorCanvasContainerView:nt(e(Dn)).getEditorCanvasContainerView(),blocks:e(we.store).getBlocks()})),[]),{revisions:o,isLoading:i,hasUnsavedChanges:s}=Ha(),[c,u]=(0,l.useState)(),[m,p]=(0,l.useState)(t),[_,g]=(0,l.useState)(!1),{setEditorCanvasContainerView:h}=nt((0,d.useDispatch)(Dn));(0,l.useEffect)((()=>{"global-styles-revisions"!==r&&(e(),h(r))}),[r]);const v=()=>{e()},f=e=>{n((()=>({styles:e?.styles,settings:e?.settings}))),g(!1),v()},b=!!m?.id&&!xl(m,t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Yi,{title:(0,E.__)("Revisions"),description:(0,E.__)("Revisions are added to the timeline when style changes are saved.")}),i&&(0,l.createElement)(y.Spinner,{className:"edit-site-global-styles-screen-revisions__loading"}),!i&&(0,l.createElement)(yl,{blocks:a,userConfig:m,onClose:v}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-revisions"},(0,l.createElement)(kl,{onChange:e=>{p({styles:e?.styles,settings:e?.settings,id:e?.id}),u(e?.id)},selectedRevisionId:c,userRevisions:o}),b&&(0,l.createElement)(wl,null,(0,l.createElement)(y.Button,{variant:"primary",className:"edit-site-global-styles-screen-revisions__button",disabled:!m?.id||"unsaved"===m?.id,onClick:()=>{s?g(!0):f(m)}},(0,E.__)("Apply")))),_&&(0,l.createElement)(y.__experimentalConfirmDialog,{title:(0,E.__)("Loading this revision will discard all unsaved changes."),isOpen:_,confirmButtonText:(0,E.__)(" Discard unsaved changes"),onConfirm:()=>f(m),onCancel:()=>g(!1)},(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h2",null,(0,E.__)("Loading this revision will discard all unsaved changes.")),(0,l.createElement)("p",null,(0,E.__)("Do you want to replace your unsaved changes in the editor?")))))};const{Slot:Nl,Fill:Ml}=(0,y.createSlotFill)("GlobalStylesMenu");function Pl(){const{toggle:e}=(0,d.useDispatch)(x.store),{canEditCSS:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{canEditCSS:null!==(t=!!(r?n("root","globalStyles",r):void 0)?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),{goTo:n}=(0,y.__experimentalUseNavigator)(),a=()=>n("/css");return(0,l.createElement)(Ml,null,(0,l.createElement)(y.DropdownMenu,{icon:le,label:(0,E.__)("More")},(({onClose:n})=>(0,l.createElement)(y.MenuGroup,null,t&&(0,l.createElement)(y.MenuItem,{onClick:a},(0,E.__)("Additional CSS")),(0,l.createElement)(y.MenuItem,{onClick:()=>{e("core/edit-site","welcomeGuideStyles"),n()}},(0,E.__)("Welcome Guide"))))))}function Il({className:e,children:t}){return(0,l.createElement)("span",{className:v()(e,"edit-site-global-styles-sidebar__revisions-count-badge")},t)}function Bl(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Dn),{revisionsCount:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{revisionsCount:null!==(t=(r?n("root","globalStyles",r):void 0)?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),{useGlobalStylesReset:n}=nt(we.privateApis),[a,r]=n(),{goTo:o}=(0,y.__experimentalUseNavigator)(),{setEditorCanvasContainerView:i}=nt((0,d.useDispatch)(Dn)),s=()=>{e(!1),o("/revisions"),i("global-styles-revisions")},c=t>=2;return(0,l.createElement)(Ml,null,a||c?(0,l.createElement)(y.DropdownMenu,{icon:Yn,label:(0,E.__)("Revisions")},(({onClose:e})=>(0,l.createElement)(y.MenuGroup,null,c&&(0,l.createElement)(y.MenuItem,{onClick:s,icon:(0,l.createElement)(Il,null,t)},(0,E.__)("Revision history")),(0,l.createElement)(y.MenuItem,{onClick:()=>{r(),e()},disabled:!a},(0,E.__)("Reset to defaults"))))):(0,l.createElement)(y.Button,{label:(0,E.__)("Revisions"),icon:Yn,disabled:!0,__experimentalIsFocusable:!0}))}function Rl({className:e,...t}){return(0,l.createElement)(y.__experimentalNavigatorScreen,{className:["edit-site-global-styles-sidebar__navigator-screen",e].filter(Boolean).join(" "),...t})}function Ll({parentMenu:e,blockStyles:t,blockName:n}){return t.map(((t,a)=>(0,l.createElement)(Rl,{key:a,path:e+"/variations/"+t.name},(0,l.createElement)(ks,{name:n,variation:t.name}))))}function Dl({name:e,parentMenu:t=""}){const n=(0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Rl,{path:t+"/colors/palette"},(0,l.createElement)(el,{name:e})),!!n?.length&&(0,l.createElement)(Ll,{parentMenu:t,blockStyles:n,blockName:e}))}function Al(){const e=(0,y.__experimentalUseNavigator)(),{path:t}=e.location;return(0,l.createElement)(Va,{isSelected:e=>t===`/blocks/${encodeURIComponent(e)}`||t.startsWith(`/blocks/${encodeURIComponent(e)}/`),onSelect:t=>{e.goTo("/blocks/"+encodeURIComponent(t))}})}function Vl(){const e=(0,y.__experimentalUseNavigator)(),{selectedBlockName:t,selectedBlockClientId:n}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n}=e(we.store),a=t();return{selectedBlockName:n(a),selectedBlockClientId:a}}),[]),a=ns(t);(0,l.useEffect)((()=>{if(!n||!a)return;const r=e.location.path;if("/blocks"!==r&&!r.startsWith("/blocks/"))return;const o="/blocks/"+encodeURIComponent(t);o!==r&&e.goTo(o,{skipFocus:!0})}),[n,t,a])}function Fl(){const{goTo:e,location:t}=(0,y.__experimentalUseNavigator)(),n=(0,d.useSelect)((e=>nt(e(Dn)).getEditorCanvasContainerView()),[]);(0,l.useEffect)((()=>{"global-styles-revisions"===n?e("/revisions"):n&&"/revisions"===t?.path?e("/"):"global-styles-css"===n&&e("/css")}),[n,e])}var zl=function(){const e=(0,c.getBlockTypes)(),t=(0,d.useSelect)((e=>nt(e(Dn)).getEditorCanvasContainerView()),[]);return(0,l.createElement)(y.__experimentalNavigatorProvider,{className:"edit-site-global-styles-sidebar__navigator-provider",initialPath:"/"},(0,l.createElement)(Rl,{path:"/"},(0,l.createElement)(Wi,null)),(0,l.createElement)(Rl,{path:"/variations"},(0,l.createElement)(dl,null)),(0,l.createElement)(Rl,{path:"/blocks"},(0,l.createElement)(rs,null)),(0,l.createElement)(Rl,{path:"/typography"},(0,l.createElement)(Ts,null)),(0,l.createElement)(Rl,{path:"/typography/text"},(0,l.createElement)(As,{element:"text"})),(0,l.createElement)(Rl,{path:"/typography/link"},(0,l.createElement)(As,{element:"link"})),(0,l.createElement)(Rl,{path:"/typography/heading"},(0,l.createElement)(As,{element:"heading"})),(0,l.createElement)(Rl,{path:"/typography/caption"},(0,l.createElement)(As,{element:"caption"})),(0,l.createElement)(Rl,{path:"/typography/button"},(0,l.createElement)(As,{element:"button"})),(0,l.createElement)(Rl,{path:"/colors"},(0,l.createElement)(Ws,null)),(0,l.createElement)(Rl,{path:"/layout"},(0,l.createElement)(ul,null)),(0,l.createElement)(Rl,{path:"/css"},(0,l.createElement)(_l,null)),(0,l.createElement)(Rl,{path:"/revisions"},(0,l.createElement)(Tl,null)),e.map((e=>(0,l.createElement)(Rl,{key:"menu-block-"+e.name,path:"/blocks/"+encodeURIComponent(e.name)},(0,l.createElement)(ks,{name:e.name})))),(0,l.createElement)(Dl,null),e.map((e=>(0,l.createElement)(Dl,{key:"screens-block-"+e.name,name:e.name,parentMenu:"/blocks/"+encodeURIComponent(e.name)}))),"style-book"===t&&(0,l.createElement)(Al,null),(0,l.createElement)(Bl,null),(0,l.createElement)(Pl,null),(0,l.createElement)(Vl,null),(0,l.createElement)(Fl,null))};function Ol(){const{shouldClearCanvasContainerView:e,isStyleBookOpened:t,showListViewByDefault:n}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t}=e(U),{getEditorCanvasContainerView:n,getCanvasMode:a}=nt(e(Dn)),r="visual"===e(Dn).getEditorMode(),o="edit"===a(),i=e(x.store).get("core/edit-site","showListViewByDefault");return{isStyleBookOpened:"style-book"===n(),shouldClearCanvasContainerView:"edit-site/global-styles"!==t("core/edit-site")||!r||!o,showListViewByDefault:i}}),[]),{setEditorCanvasContainerView:a}=nt((0,d.useDispatch)(Dn));(0,l.useEffect)((()=>{e&&a(void 0)}),[e]);const{setIsListViewOpened:r}=(0,d.useDispatch)(Dn);return(0,l.createElement)(Li,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:(0,E.__)("Styles"),icon:On,closeLabel:(0,E.__)("Close Styles"),panelClassName:"edit-site-global-styles-sidebar__panel",header:(0,l.createElement)(y.Flex,{className:"edit-site-global-styles-sidebar__header",role:"menubar","aria-label":(0,E.__)("Styles actions")},(0,l.createElement)(y.FlexBlock,{style:{minWidth:"min-content"}},(0,l.createElement)("strong",null,(0,E.__)("Styles"))),(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(y.Button,{icon:Kn,label:(0,E.__)("Style Book"),isPressed:t,disabled:e,onClick:()=>{r(t&&n),a(t?void 0:"style-book")}})),(0,l.createElement)(Nl,null))},(0,l.createElement)(zl,null))}const Hl="edit-site/template",Gl="edit-site/block-inspector";var Ul=({sidebarName:e})=>{const{hasPageContentFocus:t,entityType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,hasPageContentFocus:n}=e(Dn);return{hasPageContentFocus:n(),entityType:t()}})),a="wp_navigation"===n?(0,E.__)("Navigation"):(0,E.__)("Template"),{enableComplementaryArea:r}=(0,d.useDispatch)(U);let o;return o=t?e===Hl?(0,E.__)("Page (selected)"):(0,E.__)("Page"):e===Hl?(0,E.sprintf)((0,E.__)("%s (selected)"),a):a,(0,l.createElement)("ul",null,(0,l.createElement)("li",null,(0,l.createElement)(y.Button,{onClick:()=>r(It,Hl),className:v()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===Hl}),"aria-label":o,"data-label":t?(0,E.__)("Page"):a},t?(0,E.__)("Page"):a)),(0,l.createElement)("li",null,(0,l.createElement)(y.Button,{onClick:()=>r(It,Gl),className:v()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===Gl}),"aria-label":e===Gl?(0,E.__)("Block (selected)"):(0,E.__)("Block"),"data-label":(0,E.__)("Block")},(0,E.__)("Block"))))};function $l({className:e,title:t,icon:n,description:a,actions:r,children:o}){return(0,l.createElement)("div",{className:v()("edit-site-sidebar-card",e)},(0,l.createElement)(y.Icon,{className:"edit-site-sidebar-card__icon",icon:n}),(0,l.createElement)("div",{className:"edit-site-sidebar-card__content"},(0,l.createElement)("div",{className:"edit-site-sidebar-card__header"},(0,l.createElement)("h2",{className:"edit-site-sidebar-card__title"},t),r),(0,l.createElement)("div",{className:"edit-site-sidebar-card__description"},a),o))}const jl=["core/post-title","core/post-featured-image","core/post-content"],{BlockQuickNavigation:Wl}=nt(we.privateApis);function Zl(){const e=(0,d.useSelect)((e=>e(we.store).__experimentalGetGlobalBlocksByName(jl)),[]);return(0,l.createElement)(Wl,{clientIds:e})}const ql=[{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Draft"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Not ready to publish."))),value:"draft"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Pending"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Waiting for review before publishing."))),value:"pending"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Private"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Only visible to site admins and editors."))),value:"private"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Scheduled"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Publish automatically on a chosen date."))),value:"future"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Published"),(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,E.__)("Visible to everyone."))),value:"publish"}];function Yl({postType:e,postId:t,status:n,password:a,date:r}){const[o,i]=(0,l.useState)(!!a),{editEntityRecord:s}=(0,d.useDispatch)(_.store),{createErrorNotice:c}=(0,d.useDispatch)(Se.store),[u,m]=(0,l.useState)(null),p=(0,l.useMemo)((()=>({anchor:u,"aria-label":(0,E.__)("Change status"),placement:"bottom-end"})),[u]),g=async({status:o=n,password:i=a,date:l=r})=>{try{await s("postType",e,t,{status:o,date:l,password:i})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");c(t,{type:"snackbar"})}},h=e=>{i(e),e||g({password:""})},v=e=>{let t=r,n=a;"publish"===e?new Date(r)>new Date&&(t=null):"future"===e?(!r||new Date(r)(0,l.createElement)(y.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},(0,l.createElement)(ki,{status:a?"protected":n})),renderContent:({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(we.__experimentalInspectorPopoverHeader,{title:(0,E.__)("Status"),onClose:e}),(0,l.createElement)("form",null,(0,l.createElement)(y.__experimentalVStack,{spacing:5},(0,l.createElement)(y.RadioControl,{className:"edit-site-change-status__options",hideLabelFromVision:!0,label:(0,E.__)("Status"),options:ql,onChange:v,selected:n}),"private"!==n&&(0,l.createElement)(y.BaseControl,{id:"edit-site-change-status__password",label:(0,E.__)("Password")},(0,l.createElement)(y.ToggleControl,{label:(0,E.__)("Hide this page behind a password"),checked:o,onChange:h}),o&&(0,l.createElement)(y.TextControl,{onChange:e=>g({password:e}),value:a,autoFocus:!a,placeholder:(0,E.__)("Enter a secure password"),type:"password"})))))}))}function Kl({postType:e,postId:t,status:n,date:a}){const{editEntityRecord:r}=(0,d.useDispatch)(_.store),{createErrorNotice:o}=(0,d.useDispatch)(Se.store),[i,s]=(0,l.useState)(null),c=(0,l.useMemo)((()=>({anchor:i,"aria-label":(0,E.__)("Change publish date"),placement:"bottom-end"})),[i]),u=async a=>{try{let o=n;"future"===n&&new Date(a)new Date&&(o="future"),await r("postType",e,t,{status:o,date:a})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");o(t,{type:"snackbar"})}},m=a?(0,Jn.humanTimeDiff)(a):(0,E.__)("Immediately");return(0,l.createElement)(y.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(y.__experimentalText,{className:"edit-site-summary-field__label"},(0,E.__)("Publish")),(0,l.createElement)(y.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:c,focusOnMount:!0,ref:s,renderToggle:({onToggle:e})=>(0,l.createElement)(y.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},m),renderContent:({onClose:e})=>(0,l.createElement)(we.__experimentalPublishDateTimePicker,{currentDate:a,is12Hour:!0,onClose:e,onChange:u})}))}function Xl({status:e,date:t,password:n,postId:a,postType:r}){return(0,l.createElement)(y.__experimentalVStack,null,(0,l.createElement)(Yl,{status:e,date:t,password:n,postId:a,postType:r}),(0,l.createElement)(Kl,{status:e,date:t,postId:a,postType:r}))}function Ql(){const{context:e,hasResolved:t,title:n,blocks:a}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditedPostType:n,getEditedPostId:a}=e(Dn),{getEditedEntityRecord:r,hasFinishedResolution:o}=e(_.store),i=t(),s=["postType",n(),a()],l=r(...s);return{context:i,hasResolved:o("getEditedEntityRecord",s),title:l?.title,blocks:l?.blocks}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(Dn),o=(0,l.useMemo)((()=>({...e,postType:null,postId:null})),[e]);return t?(0,l.createElement)(y.__experimentalVStack,null,(0,l.createElement)("div",null,(0,Pt.decodeEntities)(n)),(0,l.createElement)("div",{className:"edit-site-page-panels__edit-template-preview"},(0,l.createElement)(we.BlockContextProvider,{value:o},(0,l.createElement)(we.BlockPreview,{viewportWidth:1024,blocks:a}))),(0,l.createElement)(y.Button,{className:"edit-site-page-panels__edit-template-button",variant:"secondary",onClick:()=>r(!1)},(0,E.__)("Edit template"))):null}function Jl(){const{id:e,type:t,hasResolved:n,status:a,date:r,password:o,title:i,modified:s}=(0,d.useSelect)((e=>{const{getEditedPostContext:t}=e(Dn),{getEditedEntityRecord:n,hasFinishedResolution:a}=e(_.store),r=t(),o=["postType",r.postType,r.postId],i=n(...o);return{hasResolved:a("getEditedEntityRecord",o),title:i?.title,id:i?.id,type:i?.type,status:i?.status,date:i?.date,password:i?.password,modified:i?.modified}}),[]);return n?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.PanelBody,null,(0,l.createElement)($l,{title:(0,Pt.decodeEntities)(i),icon:Hn,description:(0,l.createElement)(y.__experimentalVStack,null,(0,l.createElement)(y.__experimentalText,null,(0,E.sprintf)((0,E.__)("Last edited %s"),(0,Jn.humanTimeDiff)(s))))})),(0,l.createElement)(y.PanelBody,{title:(0,E.__)("Summary")},(0,l.createElement)(Xl,{status:a,date:r,password:o,postId:e,postType:t})),(0,l.createElement)(y.PanelBody,{title:(0,E.__)("Content")},(0,l.createElement)(Zl,null)),(0,l.createElement)(y.PanelBody,{title:(0,E.__)("Template")},(0,l.createElement)(Ql,null))):null}function ec({template:e}){const{revertTemplate:t}=(0,d.useDispatch)(Dn);return Bt(e)?(0,l.createElement)(y.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:"edit-site-template-card__actions",toggleProps:{isSmall:!0}},(({onClose:n})=>(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{t(e),n()}},(0,E.__)("Clear customizations"))))):null}function tc({area:e,clientId:t}){const{selectBlock:n,toggleBlockHighlight:a}=(0,d.useDispatch)(we.store),r=(0,d.useSelect)((t=>t(g.store).__experimentalGetDefaultTemplatePartAreas().find((t=>t.area===e))),[e]),o=()=>a(t,!0),i=()=>a(t,!1);return(0,l.createElement)(y.Button,{className:"edit-site-template-card__template-areas-item",icon:r?.icon,onMouseOver:o,onMouseLeave:i,onFocus:o,onBlur:i,onClick:()=>{n(t)}},r?.label)}function nc(){const e=(0,d.useSelect)((e=>e(Dn).getCurrentTemplateTemplateParts()),[]);return e.length?(0,l.createElement)("section",{className:"edit-site-template-card__template-areas"},(0,l.createElement)(y.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},(0,E.__)("Areas")),(0,l.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map((({templatePart:e,block:t})=>(0,l.createElement)("li",{key:e.slug},(0,l.createElement)(tc,{area:e.area,clientId:t.clientId})))))):null}const ac=()=>{var e,t;const{record:n}=oo();return{currentTemplate:n,lastRevisionId:null!==(e=n?._links?.["predecessor-version"]?.[0]?.id)&&void 0!==e?e:null,revisionsCount:null!==(t=n?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}};function rc({children:e}){const{lastRevisionId:t,revisionsCount:n}=ac();return!t||n<2?null:(0,l.createElement)(g.PostTypeSupportCheck,{supportKeys:"revisions"},e)}const oc=()=>{const{lastRevisionId:e,revisionsCount:t}=ac();return(0,l.createElement)(rc,null,(0,l.createElement)(y.Button,{href:(0,pt.addQueryArgs)("revision.php",{revision:e,gutenberg:!0}),className:"edit-site-template-last-revision__title",icon:Yn},(0,E.sprintf)((0,E._n)("%d Revision","%d Revisions",t),t)))};function ic(){return(0,l.createElement)(rc,null,(0,l.createElement)(oc,null))}function sc(){const{info:{title:e,description:t,icon:n},record:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Dn),{getEditedEntityRecord:a}=e(_.store),{__experimentalGetTemplateInfo:r}=e(g.store),o=a("postType",t(),n());return{info:o?r(o):{},record:o}}),[]);return e||t?(0,l.createElement)(y.PanelBody,{className:"edit-site-template-panel"},(0,l.createElement)($l,{className:"edit-site-template-card",title:(0,Pt.decodeEntities)(e),icon:"wp_navigation"===a?.type?zn:n,description:(0,Pt.decodeEntities)(t),actions:(0,l.createElement)(ec,{template:a})},(0,l.createElement)(nc,null)),(0,l.createElement)(y.PanelRow,{header:(0,E.__)("Editing history"),className:"edit-site-template-revisions"},(0,l.createElement)(ic,null))):null}const{Fill:lc,Slot:cc}=(0,y.createSlotFill)("PluginTemplateSettingPanel"),uc=lc;uc.Slot=cc;var dc=uc;const{Slot:mc,Fill:pc}=(0,y.createSlotFill)("EditSiteSidebarInspector"),_c=pc;function gc(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n,supportsGlobalStyles:a,hasPageContentFocus:r}=(0,d.useSelect)((e=>{const t=e(U).getActiveComplementaryArea(It),n=[Gl,Hl].includes(t),a=e(Dn).getSettings();return{sidebar:t,isEditorSidebarOpened:n,hasBlockSelection:!!e(we.store).getBlockSelectionStart(),supportsGlobalStyles:!a?.supportsTemplatePartsMode,hasPageContentFocus:e(Dn).hasPageContentFocus()}}),[]),{enableComplementaryArea:o}=(0,d.useDispatch)(U);(0,l.useEffect)((()=>{t&&(n?r||o(It,Gl):o(It,Hl))}),[n,t,r]);let i=e;return t||(i=n?Gl:Hl),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Li,{identifier:i,title:(0,E.__)("Settings"),icon:(0,E.isRTL)()?Bi:Ri,closeLabel:(0,E.__)("Close Settings"),header:(0,l.createElement)(Ul,{sidebarName:i}),headerClassName:"edit-site-sidebar-edit-mode__panel-tabs"},i===Hl&&(0,l.createElement)(l.Fragment,null,r?(0,l.createElement)(Jl,null):(0,l.createElement)(sc,null),(0,l.createElement)(dc.Slot,null)),i===Gl&&(0,l.createElement)(mc,{bubblesVirtually:!0})),a&&(0,l.createElement)(Ol,null))}var hc=window.wp.reusableBlocks;function vc({clientId:e,onClose:t}){const{getBlocks:n}=(0,d.useSelect)(we.store),{replaceBlocks:a}=(0,d.useDispatch)(we.store);return(0,d.useSelect)((t=>t(we.store).canRemoveBlock(e)),[e])?(0,l.createElement)(y.MenuItem,{onClick:()=>{a(e,n(e)),t()}},(0,E.__)("Detach blocks from template part")):null}var yc=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function Ec({clientIds:e,blocks:t}){const[n,a]=(0,l.useState)(!1),{replaceBlocks:r}=(0,d.useDispatch)(we.store),{createSuccessNotice:o}=(0,d.useDispatch)(Se.store),{canCreate:i}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Dn).getSettings();return{canCreate:!t}}),[]);if(!i)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuItem,{icon:yc,onClick:()=>{a(!0)}},(0,E.__)("Create template part")),n&&(0,l.createElement)(lr,{closeModal:()=>{a(!1)},blocks:t,onCreate:async t=>{r(e,(0,c.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),o((0,E.__)("Template part created."),{type:"snackbar"})}}))}function fc(){return(0,l.createElement)(we.BlockSettingsMenuControls,null,(({selectedClientIds:e,onClose:t})=>(0,l.createElement)(bc,{clientIds:e,onClose:t})))}function bc({clientIds:e,onClose:t}){const n=(0,d.useSelect)((t=>t(we.store).getBlocksByClientId(e)),[e]);return 1===n.length&&"core/template-part"===n[0]?.name?(0,l.createElement)(vc,{clientId:e[0],onClose:t}):(0,l.createElement)(Ec,{clientIds:e,blocks:n})}var wc=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));const{useLocation:Sc,useHistory:kc}=nt(mt.privateApis);var Cc=function(){const e=Sc(),t=kc(),n="wp_template_part"===e.params.postType,a="wp_navigation"===e.params.postType,r=e.state?.fromTemplateId;return(n||a)&&r?(0,l.createElement)(y.Button,{className:"edit-site-visual-editor__back-button",icon:wc,onClick:()=>{t.back()}},(0,E.__)("Back")):null};var xc=function({enableResizing:e,settings:t,children:n,...a}){const{canvasMode:r,deviceType:o,isZoomOutMode:i}=(0,d.useSelect)((e=>({deviceType:e(Dn).__experimentalGetPreviewDeviceType(),isZoomOutMode:"zoom-out"===e(we.store).__unstableGetEditorMode(),canvasMode:nt(e(Dn)).getCanvasMode()})),[]),{setCanvasMode:s}=nt((0,d.useDispatch)(Dn)),c=(0,we.__experimentalUseResizeCanvas)(o),u=(0,we.__unstableUseMouseMoveTypingReset)(),[m,p]=(0,l.useState)(!1);(0,l.useEffect)((()=>{"edit"===r&&p(!1)}),[r]);const _={"aria-label":(0,E.__)("Editor Canvas"),role:"button",tabIndex:0,onFocus:()=>p(!0),onBlur:()=>p(!1),onKeyDown:e=>{const{keyCode:t}=e;t!==ea.ENTER&&t!==ea.SPACE||(e.preventDefault(),s("edit"))},onClick:()=>s("edit"),readonly:!0};return(0,l.createElement)(we.__unstableIframe,{expand:i,scale:i?.45:void 0,frameSize:i?100:void 0,style:e?{}:c,ref:u,name:"editor-canvas",className:v()("edit-site-visual-editor__editor-canvas",{"is-focused":m&&"view"===r}),...a,..."view"===r?_:{}},(0,l.createElement)(we.__unstableEditorStyles,{styles:t.styles}),(0,l.createElement)("style",null,`.is-root-container{display:flow-root;${e?"min-height:0!important;":""}}body{position:relative; ${"view"===r?"cursor: pointer;":""}}}`),n)};const Tc=(e,t)=>`${t}`,Nc=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,Mc=e=>{const{title:t,foreign_landing_url:n,creator:a,creator_url:r,license:o,license_version:i,license_url:s}=e,l=((e,t)=>{let n=e.trim();return"pdm"!==e&&(n=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(n+=` ${t}`),["pdm","cc0"].includes(e)||(n=`CC ${n}`),n})(o,i),c=(0,Pt.decodeEntities)(a);let u;return u=c?t?(0,E.sprintf)((0,E._x)('"%1$s" by %2$s/ %3$s',"caption"),Tc(n,(0,Pt.decodeEntities)(t)),r?Tc(r,c):c,s?Tc(`${s}?ref=openverse`,l):l):(0,E.sprintf)((0,E._x)("Work by %2$s/ %3$s","caption"),Nc(n),r?Tc(r,c):c,s?Tc(`${s}?ref=openverse`,l):l):t?(0,E.sprintf)((0,E._x)('"%1$s"/ %2$s',"caption"),Tc(n,(0,Pt.decodeEntities)(t)),s?Tc(`${s}?ref=openverse`,l):l):(0,E.sprintf)((0,E._x)("Work/ %3$s","caption"),Nc(n),s?Tc(`${s}?ref=openverse`,l):l),u.replace(/\s{2}/g," ")},Pc=async(e={})=>(await(0,d.resolveSelect)(_.store).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map((e=>({...e,alt:e.alt_text,url:e.source_url,previewUrl:e.media_details?.sizes?.medium?.source_url,caption:e.caption?.raw})));var Ic=[{name:"images",labels:{name:(0,E.__)("Images"),search_items:(0,E.__)("Search images")},mediaType:"image",async fetch(e={}){return Pc({...e,media_type:"image"})}},{name:"videos",labels:{name:(0,E.__)("Videos"),search_items:(0,E.__)("Search videos")},mediaType:"video",async fetch(e={}){return Pc({...e,media_type:"video"})}},{name:"audio",labels:{name:(0,E.__)("Audio"),search_items:(0,E.__)("Search audio")},mediaType:"audio",async fetch(e={}){return Pc({...e,media_type:"audio"})}},{name:"openverse",labels:{name:(0,E.__)("Openverse"),search_items:(0,E.__)("Search Openverse")},mediaType:"image",async fetch(e={}){const t={...e,mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"},n={per_page:"page_size",search:"q"},a=new URL("https://api.openverse.engineering/v1/images/");Object.entries(t).forEach((([e,t])=>{const r=n[e]||e;a.searchParams.set(r,t)}));const r=await window.fetch(a,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}});return(await r.json()).results.map((e=>({...e,title:e.title?.toLowerCase().startsWith("file:")?e.title.slice(5):e.title,sourceId:e.id,id:void 0,caption:Mc(e),previewUrl:e.thumbnail})))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}];function Bc(e){var t,n;const{storedSettings:a}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Dn));return{storedSettings:t()}}),[]),r=null!==(t=a.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:a.__experimentalBlockPatterns,o=null!==(n=a.__experimentalAdditionalBlockPatternCategories)&&void 0!==n?n:a.__experimentalBlockPatternCategories,{restBlockPatterns:i,restBlockPatternCategories:s}=(0,d.useSelect)((e=>({restBlockPatterns:e(_.store).getBlockPatterns(),restBlockPatternCategories:e(_.store).getBlockPatternCategories()})),[]),c=(0,l.useMemo)((()=>[...r||[],...i||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name)))).filter((({postTypes:t})=>!t||Array.isArray(t)&&t.includes(e)))),[r,i,e]),u=(0,l.useMemo)((()=>[...o||[],...s||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))),[o,s]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,__experimentalAdditionalBlockPatternCategories:t,...n}=a;return{...n,inserterMediaCategories:Ic,__experimentalBlockPatterns:c,__experimentalBlockPatternCategories:u,templateLock:!1,template:!1}}),[a,c,u])}const Rc=["wp_template_part","wp_navigation"],{useBlockEditingMode:Lc}=nt(we.privateApis);function Dc(){Lc("disabled"),(0,l.useEffect)((()=>((0,Ee.addFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks",Ac),()=>(0,Ee.removeFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks"))),[])}const Ac=(0,re.createHigherOrderComponent)((e=>t=>{const n=jl.includes(t.name);return Lc(n?"contentOnly":void 0),(0,l.createElement)(e,{...t})}),"withDisableNonPageContentBlocks");function Vc({contentRef:e}){const t=(0,d.useSelect)((e=>e(Dn).hasPageContentFocus()),[]),{getNotices:n}=(0,d.useSelect)(Se.store),{createInfoNotice:a,removeNotice:r}=(0,d.useDispatch)(Se.store),{setHasPageContentFocus:o}=(0,d.useDispatch)(Dn),[i,s]=(0,l.useState)(!1),c=(0,l.useRef)(0);return(0,l.useEffect)((()=>{const i=async e=>{if(!t)return;if(!e.target.classList.contains("is-root-container"))return;const r=n().some((e=>e.id===c.current));if(r)return;const{notice:i}=await a((0,E.__)("Edit your template to edit this block."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,E.__)("Edit template"),onClick:()=>o(!1)}]});c.current=i.id},l=e=>{t&&e.target.classList.contains("is-root-container")&&(c.current&&r(c.current),s(!0))},u=e.current;return u?.addEventListener("click",i),u?.addEventListener("dblclick",l),()=>{u?.removeEventListener("click",i),u?.removeEventListener("dblclick",l)}}),[c,t,e.current]),(0,l.createElement)(y.__experimentalConfirmDialog,{isOpen:i,confirmButtonText:(0,E.__)("Edit template"),onConfirm:()=>{s(!1),o(!1)},onCancel:()=>s(!1)},(0,E.__)("Edit your template to edit this block."))}function Fc(){return function(){const{isPage:e,hasPageContentFocus:t}=(0,d.useSelect)((e=>({isPage:e(Dn).isPage(),hasPageContentFocus:e(Dn).hasPageContentFocus()})),[]),n=(0,l.useRef)(!1),a=(0,l.useRef)(!1),{createInfoNotice:r}=(0,d.useDispatch)(Se.store),{setHasPageContentFocus:o}=(0,d.useDispatch)(Dn);(0,l.useEffect)((()=>{!n.current&&e&&a.current&&!t&&(r((0,E.__)("You are editing a template."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,E.__)("Back to page"),onClick:()=>o(!0)}]}),n.current=!0),a.current=t}),[n,e,a,t,r,o])}(),null}function zc({contentRef:e}){const t=(0,d.useSelect)((e=>e(Dn).hasPageContentFocus()),[]);return(0,l.createElement)(l.Fragment,null,t&&(0,l.createElement)(Dc,null),(0,l.createElement)(Vc,{contentRef:e}),(0,l.createElement)(Fc,null))}const Oc={type:"default",alignments:[]};function Hc(){const{clearSelectedBlock:e}=(0,d.useDispatch)(we.store),{templateType:t,isFocusMode:n,isViewMode:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getCanvasMode:n}=nt(e(Dn)),a=t();return{templateType:a,isFocusMode:Rc.includes(a),isViewMode:"view"===n()}}),[]),[r,o]=(0,re.useResizeObserver)(),i=Bc(),{hasBlocks:s}=(0,d.useSelect)((e=>{const{getBlockCount:t}=e(we.store);return{hasBlocks:!!t()}}),[]),c=(0,re.useViewportMatch)("small","<"),u=n&&!a&&!c,m=(0,l.useRef)(),p=(0,re.useMergeRefs)([m,(0,we.__unstableUseClipboardHandler)(),(0,we.__unstableUseTypingObserver)()]),_="wp_navigation"===t,g=!(_&&n&&s||a)&&void 0;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Pa.Slot,null,(([t])=>{var s;return t?(0,l.createElement)("div",{className:"edit-site-visual-editor is-focus-mode"},t):(0,l.createElement)(we.BlockTools,{className:v()("edit-site-visual-editor",{"is-focus-mode":n||!!t,"is-view-mode":a}),__unstableContentRef:m,onClick:t=>{t.target===t.currentTarget&&e()}},(0,l.createElement)(we.BlockEditorKeyboardShortcuts.Register,null),(0,l.createElement)(Cc,null),(0,l.createElement)(Sa,{enableResizing:u,height:null!==(s=o.height)&&void 0!==s?s:"100%"},(0,l.createElement)(xc,{enableResizing:u,settings:i,contentRef:p,readonly:a},r,(0,l.createElement)(we.BlockList,{className:v()("edit-site-block-editor__block-list wp-site-blocks",{"is-navigation-block":_}),layout:Oc,renderAppender:g}))))})),(0,l.createElement)(zc,{contentRef:m}))}const{ExperimentalBlockEditorProvider:Gc}=nt(we.privateApis);function Uc({children:e}){const t=Bc(),{templateType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=nt(e(Dn));return{templateType:t()}}),[]),[a,r,o]=(0,_.useEntityBlockEditor)("postType",n);return(0,l.createElement)(Gc,{settings:t,value:a,onInput:r,onChange:o,useSubRegistry:!1},e)}const{ExperimentalBlockEditorProvider:$c}=nt(we.privateApis),jc=()=>{};function Wc({children:e}){const t=Bc(),n=(0,_.useEntityId)("postType","wp_navigation"),a=(0,l.useMemo)((()=>[(0,c.createBlock)("core/navigation",{ref:n,templateLock:!1})]),[n]),{isEditMode:r}=(0,d.useSelect)((e=>{const{getCanvasMode:t}=nt(e(Dn));return{isEditMode:"edit"===t()}}),[]),{selectBlock:o,setBlockEditingMode:i,unsetBlockEditingMode:s}=nt((0,d.useDispatch)(we.store)),u=a&&a[0]?.clientId,m=(0,l.useMemo)((()=>({...t,templateLock:"insert",template:[["core/navigation",{},[]]]})),[t]);return(0,l.useEffect)((()=>{u&&r&&o(u)}),[u,r,o]),(0,l.useEffect)((()=>{if(u)return i(u,"contentOnly"),()=>{s(u)}}),[u,s,i]),(0,l.createElement)($c,{settings:m,value:a,onInput:jc,onChange:jc,useSubRegistry:!1},e)}function Zc(){const e=function(e){let t=null;t="wp_navigation"===e?Wc:Uc;return t}((0,d.useSelect)((e=>e(Dn).getEditedPostType()),[]));return(0,l.createElement)(e,null,(0,l.createElement)(fc,null),(0,l.createElement)(_c,null,(0,l.createElement)(we.BlockInspector,null)),(0,l.createElement)(Hc,null),(0,l.createElement)(hc.ReusableBlocksMenuItems,null))}var qc=n(773);function Yc({value:e,onChange:t,onInput:n}){const[a,r]=(0,l.useState)(e),[o,i]=(0,l.useState)(!1),s=(0,re.useInstanceId)(Yc),c=(0,l.useRef)();o||a===e||r(e);return(0,l.useEffect)((()=>()=>{c.current&&t(c.current)}),[]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.VisuallyHidden,{as:"label",htmlFor:`code-editor-text-area-${s}`},(0,E.__)("Type text or HTML")),(0,l.createElement)(qc.Z,{autoComplete:"off",dir:"auto",value:a,onChange:e=>{const t=e.target.value;n(t),r(t),i(!0),c.current=t},onBlur:()=>{o&&(t(a),i(!1))},className:"edit-site-code-editor-text-area",id:`code-editor-text-area-${s}`,placeholder:(0,E.__)("Start writing with text or HTML")}))}function Kc(){const{templateType:e,shortcut:t}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=e(Dn),{getShortcutRepresentation:n}=e(An.store);return{templateType:t(),shortcut:n("core/edit-site/toggle-mode")}}),[]),[n,a]=(0,_.useEntityProp)("postType",e,"content"),[r,,o]=(0,_.useEntityBlockEditor)("postType",e);let i;i=n instanceof Function?n({blocks:r}):r?(0,c.__unstableSerializeAndClean)(r):n;const{switchEditorMode:s}=(0,d.useDispatch)(Dn);return(0,l.createElement)("div",{className:"edit-site-code-editor"},(0,l.createElement)("div",{className:"edit-site-code-editor__toolbar"},(0,l.createElement)("h2",null,(0,E.__)("Editing code")),(0,l.createElement)(y.Button,{variant:"tertiary",onClick:()=>s("visual"),shortcut:t},(0,E.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-site-code-editor__body"},(0,l.createElement)(Yc,{value:i,onChange:e=>{o((0,c.parse)(e),{selection:void 0})},onInput:a})))}var Xc=function(){const{getEditorMode:e}=(0,d.useSelect)(Dn),t=(0,d.useSelect)((e=>e(Dn).isListViewOpened()),[]),n=(0,d.useSelect)((e=>e(U).getActiveComplementaryArea(Dn.name)===Gl),[]),{redo:a,undo:r}=(0,d.useDispatch)(_.store),{isFeatureActive:o,setIsListViewOpened:i,switchEditorMode:s,toggleFeature:l,setIsInserterOpened:u,closeGeneralSidebar:m}=(0,d.useDispatch)(Dn),{enableComplementaryArea:p,disableComplementaryArea:g}=(0,d.useDispatch)(U),{replaceBlocks:h}=(0,d.useDispatch)(we.store),{getBlockName:v,getSelectedBlockClientId:y,getBlockAttributes:f}=(0,d.useSelect)(we.store),{set:b}=(0,d.useDispatch)(x.store),{createInfoNotice:w}=(0,d.useDispatch)(Se.store),S=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",a=y();if(null===a)return;const r=v(a);if("core/paragraph"!==r&&"core/heading"!==r)return;const o=f(a),i="core/paragraph"===r?"align":"textAlign",s="core/paragraph"===n?"align":"textAlign";h(a,(0,c.createBlock)(n,{level:t,content:o.content,[s]:o[i]}))};return(0,An.useShortcut)("core/edit-site/undo",(e=>{r(),e.preventDefault()})),(0,An.useShortcut)("core/edit-site/redo",(e=>{a(),e.preventDefault()})),(0,An.useShortcut)("core/edit-site/toggle-list-view",(()=>{t||i(!0)})),(0,An.useShortcut)("core/edit-site/toggle-block-settings-sidebar",(e=>{e.preventDefault(),n?g(It):p(It,Gl)})),(0,An.useShortcut)("core/edit-site/toggle-mode",(()=>{s("visual"===e()?"text":"visual")})),(0,An.useShortcut)("core/edit-site/transform-heading-to-paragraph",(e=>S(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,An.useShortcut)(`core/edit-site/transform-paragraph-to-heading-${e}`,(t=>S(t,e)))})),(0,An.useShortcut)("core/edit-site/toggle-distraction-free",(()=>{b("core/edit-site","fixedToolbar",!1),u(!1),i(!1),m(),l("distractionFree"),w(o("distractionFree")?(0,E.__)("Distraction free mode turned on."):(0,E.__)("Distraction free mode turned off."),{id:"core/edit-site/distraction-free-mode/notice",type:"snackbar"})})),null};var Qc=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function Jc(){const{setIsInserterOpened:e}=(0,d.useDispatch)(Dn),t=(0,d.useSelect)((e=>e(Dn).__experimentalGetInsertionPoint()),[]),n=(0,re.useViewportMatch)("medium","<"),a=n?"div":y.VisuallyHidden,[r,o]=(0,re.__experimentalUseDialog)({onClose:()=>e(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...o,className:"edit-site-editor__inserter-panel"},(0,l.createElement)(a,{className:"edit-site-editor__inserter-panel-header"},(0,l.createElement)(y.Button,{icon:Qc,label:(0,E.__)("Close block inserter"),onClick:()=>e(!1)})),(0,l.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},(0,l.createElement)(we.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue,ref:i})))}const{PrivateListView:eu}=nt(we.privateApis);function tu(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Dn),t=(0,re.useFocusOnMount)("firstElement"),n=(0,re.useFocusReturn)(),a=(0,re.useFocusReturn)();const[r,o]=(0,l.useState)(null),i=(0,l.useRef)(),s=(0,l.useRef)(),c=(0,l.useRef)();return(0,An.useShortcut)("core/edit-site/toggle-list-view",(()=>{i.current.contains(i.current.ownerDocument.activeElement)?e(!1):function(){const e=yi.focus.tabbable.find(c.current)[0];(i.current.contains(e)?e:s.current).focus()}()})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==ea.ESCAPE||t.defaultPrevented||e(!1)},ref:i},(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-header",ref:n},(0,l.createElement)("strong",null,(0,E.__)("List View")),(0,l.createElement)(y.Button,{icon:C,label:(0,E.__)("Close"),onClick:()=>e(!1),ref:s})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-content",ref:(0,re.useMergeRefs)([a,t,o,c])},(0,l.createElement)(eu,{dropZoneElement:r})))}function nu({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-site-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function au(){const{toggle:e}=(0,d.useDispatch)(x.store);return(0,d.useSelect)((e=>!!e(x.store).get("core/edit-site","welcomeGuide")),[])?(0,l.createElement)(y.Guide,{className:"edit-site-welcome-guide",contentLabel:(0,E.__)("Welcome to the site editor"),finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuide"),pages:[{image:(0,l.createElement)(nu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Edit your site")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Design everything on your site — from the header right down to the footer — using blocks.")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,l.createInterpolateElement)((0,E.__)("Click to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:(0,l.createElement)("img",{alt:(0,E.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]}):null}function ru(){const{toggle:e}=(0,d.useDispatch)(x.store),{isActive:t,isStylesOpen:n}=(0,d.useSelect)((e=>{const t=e(U).getActiveComplementaryArea(Dn.name);return{isActive:!!e(x.store).get("core/edit-site","welcomeGuideStyles"),isStylesOpen:"edit-site/global-styles"===t}}),[]);if(!t||!n)return null;const a=(0,E.__)("Welcome to Styles");return(0,l.createElement)(y.Guide,{className:"edit-site-welcome-guide",contentLabel:a,finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuideStyles"),pages:[{image:(0,l.createElement)(nu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},a),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:(0,l.createElement)(nu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Set the design")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle! ")))},{image:(0,l.createElement)(nu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Personalize blocks")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:(0,l.createElement)(nu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Learn more")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("New to block themes and styling your site? "),(0,l.createElement)(y.ExternalLink,{href:(0,E.__)("https://wordpress.org/documentation/article/styles-overview/")},(0,E.__)("Here’s a detailed guide to learn how to make the most of it."))))}]})}function ou(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(au,null),(0,l.createElement)(ru,null))}function iu({fallbackContent:e,onChoosePattern:t,postType:n}){const[,,a]=(0,_.useEntityBlockEditor)("postType",n),r=function(e){const{slug:t,patterns:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Dn),{getEntityRecord:a}=e(_.store),r=n(),o=a("postType",t(),r),{getSettings:i}=e(we.store);return{slug:o.slug,patterns:i().__experimentalBlockPatterns}}),[]);return(0,l.useMemo)((()=>[{name:"fallback",blocks:(0,c.parse)(e),title:(0,E.__)("Fallback content")},...n.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,c.parse)(e.content)})))]),[e,t,n])}(e),o=(0,re.useAsyncList)(r);return(0,l.createElement)(we.__experimentalBlockPatternsList,{blockPatterns:r,shownPatterns:o,onClickPattern:(e,n)=>{a(n,{selection:void 0}),t()}})}function su({slug:e,isCustom:t,onClose:n,postType:a}){const r=function(e,t=!1){const[n,a]=(0,l.useState)("");return(0,l.useEffect)((()=>{Nt()({path:(0,pt.addQueryArgs)("/wp/v2/templates/lookup",{slug:e,is_custom:t,ignore_empty:!0})}).then((({content:e})=>a(e.raw)))}),[t,e]),n}(e,t);return r?(0,l.createElement)(y.Modal,{className:"edit-site-start-template-options__modal",title:(0,E.__)("Choose a pattern"),closeLabel:(0,E.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:n,isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-start-template-options__modal-content"},(0,l.createElement)(iu,{fallbackContent:r,slug:e,isCustom:t,postType:a,onChoosePattern:()=>{n()}})),(0,l.createElement)(y.Flex,{className:"edit-site-start-template-options__modal__actions",justify:"flex-end",expanded:!1},(0,l.createElement)(y.FlexItem,null,(0,l.createElement)(y.Button,{variant:"tertiary",onClick:n},(0,E.__)("Skip"))))):null}const lu="INITIAL",cu="CLOSED";function uu(){const[e,t]=(0,l.useState)(lu),{shouldOpenModal:n,slug:a,isCustom:r,postType:o}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Dn),a=t(),r=n(),{getEditedEntityRecord:o,hasEditsForEntityRecord:i}=e(_.store),s=o("postType",a,r);return{shouldOpenModal:!i("postType",a,r)&&""===s.content&&"wp_template"===a&&!e(x.store).get("core/edit-site","welcomeGuide"),slug:s.slug,isCustom:s.is_custom,postType:a}}),[]);return e===lu&&!n||e===cu?null:(0,l.createElement)(su,{slug:a,isCustom:r,postType:o,onClose:()=>t(cu)})}const{useGlobalStylesOutput:du}=nt(we.privateApis);function mu(){return function(){const[e,t]=du(),{getSettings:n}=(0,d.useSelect)(Dn),{updateSettings:a}=(0,d.useDispatch)(Dn);(0,l.useEffect)((()=>{var r;if(!e||!t)return;const o=n(),i=Object.values(null!==(r=o.styles)&&void 0!==r?r:[]).filter((e=>!e.isGlobalStyles));a({...o,styles:[...i,...e],__experimentalFeatures:t})}),[e,t])}(),null}const{useLocation:pu}=nt(mt.privateApis);const{useGlobalStyle:_u}=nt(we.privateApis);function gu(){const[e]=_u("color.text");return(0,l.createElement)("div",{className:"edit-site-canvas-spinner"},(0,l.createElement)(y.Spinner,{style:{color:e}}))}const{BlockRemovalWarningModal:hu}=nt(we.privateApis),vu={body:(0,E.__)("Editor content"),sidebar:(0,E.__)("Editor settings"),actions:(0,E.__)("Editor publish"),footer:(0,E.__)("Editor footer")},yu={wp_template:(0,E.__)("Template Part"),wp_template_part:(0,E.__)("Template Part"),wp_block:(0,E.__)("Pattern")};function Eu({isLoading:e}){const{record:t,getTitle:n,isLoaded:a}=oo(),{id:r,type:o}=t,{context:i,editorMode:s,canvasMode:c,blockEditorMode:u,isRightSidebarOpen:m,isInserterOpen:p,isListViewOpen:h,showIconLabels:f,showBlockBreadcrumbs:b,hasPageContentFocus:w}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditorMode:n,getCanvasMode:a,isInserterOpened:r,isListViewOpened:o,hasPageContentFocus:i}=nt(e(Dn)),{__unstableGetEditorMode:s}=e(we.store),{getActiveComplementaryArea:l}=e(U);return{context:t(),editorMode:n(),canvasMode:a(),blockEditorMode:s(),isInserterOpen:r(),isListViewOpen:o(),isRightSidebarOpen:l(Dn.name),showIconLabels:e(x.store).get("core/edit-site","showIconLabels"),showBlockBreadcrumbs:e(x.store).get("core/edit-site","showBlockBreadcrumbs"),hasPageContentFocus:i()}}),[]),{setEditedPostContext:S}=(0,d.useDispatch)(Dn),k="edit"===c,C="view"===c||"visual"===s,T=b&&k&&C&&"zoom-out"!==u,N=k&&C&&p,M=k&&C&&h,P=h?(0,E.__)("List View"):(0,E.__)("Block Library"),I=(0,l.useMemo)((()=>{const{postType:e,postId:t,...n}=null!=i?i:{};return{...w?i:n,queryContext:[i?.queryContext||{page:1},e=>S({...i,queryContext:{...i?.queryContext,...e}})]}}),[w,i,S]);let B;if(a){var R;const e=null!==(R=yu[o])&&void 0!==R?R:(0,E.__)("Template");B=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s ‹ Editor"),n(),e)}return function(e){const t=pu(),n=(0,d.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]),a=(0,l.useRef)(!0);(0,l.useEffect)((()=>{a.current=!1}),[t]),(0,l.useEffect)((()=>{if(!a.current&&e&&n){const t=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s — WordPress"),(0,Pt.decodeEntities)(e),(0,Pt.decodeEntities)(n));document.title=t,(0,Mt.speak)((0,E.sprintf)((0,E.__)("Now displaying: %s"),document.title),"assertive")}}),[e,n,t])}(a&&B),(0,l.createElement)(l.Fragment,null,e?(0,l.createElement)(gu,null):null,k&&(0,l.createElement)(ou,null),(0,l.createElement)(_.EntityProvider,{kind:"root",type:"site"},(0,l.createElement)(_.EntityProvider,{kind:"postType",type:o,id:r},(0,l.createElement)(we.BlockContextProvider,{value:I},(0,l.createElement)(gc,null),k&&(0,l.createElement)(uu,null),(0,l.createElement)(se,{isDistractionFree:!0,enableRegionNavigation:!1,className:v()("edit-site-editor__interface-skeleton",{"show-icon-labels":f,"is-loading":e}),notices:(0,l.createElement)(g.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(mu,null),k&&(0,l.createElement)(g.EditorNotices,null),C&&t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Zc,null),(0,l.createElement)(hu,null)),"text"===s&&t&&k&&(0,l.createElement)(Kc,null),a&&!t&&(0,l.createElement)(y.Notice,{status:"warning",isDismissible:!1},(0,E.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),k&&(0,l.createElement)(Xc,null)),secondarySidebar:k&&(N&&(0,l.createElement)(Jc,null)||M&&(0,l.createElement)(tu,null)),sidebar:k&&m&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ae.Slot,{scope:"core/edit-site"}),(0,l.createElement)(fl,null)),footer:T&&(0,l.createElement)(we.BlockBreadcrumb,{rootLabelText:w?(0,E.__)("Page"):(0,E.__)("Template")}),labels:{...vu,secondarySidebar:P}})))))}function fu({text:e,children:t}){const n=(0,re.useCopyToClipboard)(e);return(0,l.createElement)(y.Button,{variant:"secondary",ref:n},t)}function bu({message:e,error:t}){const n=[(0,l.createElement)(fu,{key:"copy-error",text:t.stack},(0,E.__)("Copy Error"))];return(0,l.createElement)(we.Warning,{className:"editor-error-boundary",actions:n},e)}class wu extends l.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,Ee.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,l.createElement)(bu,{message:(0,E.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}var Su=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var ku=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"}));var Cu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const xu=[{keyCombination:{modifier:"primary",character:"b"},description:(0,E.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,E.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,E.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,E.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,E.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,E.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,E.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,E.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,E.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,E.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Tu({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?ea.displayShortcutList[e.modifier](e.character):e.character,a=e.modifier?ea.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||a},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-site-keyboard-shortcut-help-modal__shortcut-key"},e))))}function Nu({description:e,keyCombination:t,aliases:n=[],ariaLabel:a}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(Tu,{keyCombination:t,forceAriaLabel:a}),n.map(((e,t)=>(0,l.createElement)(Tu,{keyCombination:e,forceAriaLabel:a,key:t})))))}function Mu({name:e}){const{keyCombination:t,description:n,aliases:a}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:a,getShortcutAliases:r}=t(An.store);return{keyCombination:n(e),aliases:r(e),description:a(e)}}),[e]);return t?(0,l.createElement)(Nu,{keyCombination:t,description:n,aliases:a}):null}const Pu="edit-site/keyboard-shortcut-help",Iu=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-site-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Mu,{name:e}):(0,l.createElement)(Nu,{...e}))))),Bu=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:v()("edit-site-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-site-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(Iu,{shortcuts:t})),Ru=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const a=(0,d.useSelect)((e=>e(An.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(Bu,{title:e,shortcuts:a.concat(n)})};function Lu(){const e=(0,d.useSelect)((e=>e(U).isModalActive(Pu))),{closeModal:t,openModal:n}=(0,d.useDispatch)(U),a=()=>e?t():n(Pu);return(0,An.useShortcut)("core/edit-site/keyboard-shortcuts",a),e?(0,l.createElement)(y.Modal,{className:"edit-site-keyboard-shortcut-help-modal",title:(0,E.__)("Keyboard shortcuts"),onRequestClose:a},(0,l.createElement)(Bu,{className:"edit-site-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-site/keyboard-shortcuts"]}),(0,l.createElement)(Ru,{title:(0,E.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(Ru,{title:(0,E.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(Ru,{title:(0,E.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,E.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,E.__)("Forward-slash")}]}),(0,l.createElement)(Bu,{title:(0,E.__)("Text formatting"),shortcuts:xu})):null}function Du(e){const{featureName:t,onToggle:n=(()=>{}),...a}=e,r=(0,d.useSelect)((e=>!!e(x.store).get("core/edit-site",t)),[t]),{toggle:o}=(0,d.useDispatch)(x.store);return(0,l.createElement)(ve,{onChange:()=>{n(),o("core/edit-site",t)},isChecked:r,...a})}const Au="edit-site/preferences";function Vu(){const e=(0,d.useSelect)((e=>e(U).isModalActive(Au))),{closeModal:t,openModal:n}=(0,d.useDispatch)(U),a=(0,d.useRegistry)(),{closeGeneralSidebar:r,setIsListViewOpened:o,setIsInserterOpened:i}=(0,d.useDispatch)(Dn),{set:s}=(0,d.useDispatch)(x.store),c=()=>{a.batch((()=>{s("core/edit-site","fixedToolbar",!1),i(!1),o(!1),r()}))},u=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,E.__)("General"),content:(0,l.createElement)(he,{title:(0,E.__)("Appearance"),description:(0,E.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(Du,{featureName:"distractionFree",onToggle:c,help:(0,E.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,E.__)("Distraction free")}),(0,l.createElement)(Du,{featureName:"focusMode",help:(0,E.__)("Highlights the current block and fades other content."),label:(0,E.__)("Spotlight mode")}),(0,l.createElement)(Du,{featureName:"showIconLabels",label:(0,E.__)("Show button text labels"),help:(0,E.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(Du,{featureName:"showListViewByDefault",help:(0,E.__)("Opens the block list view sidebar by default."),label:(0,E.__)("Always open list view")}),(0,l.createElement)(Du,{featureName:"showBlockBreadcrumbs",help:(0,E.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,E.__)("Display block breadcrumbs")}))},{name:"blocks",tabLabel:(0,E.__)("Blocks"),content:(0,l.createElement)(he,{title:(0,E.__)("Block interactions"),description:(0,E.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(Du,{featureName:"keepCaretInsideBlock",help:(0,E.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,E.__)("Contain text cursor inside block")}))}]));return e?(0,l.createElement)(ue,{closeModal:()=>e?t():n(Au)},(0,l.createElement)(ge,{sections:u})):null}const{Fill:Fu,Slot:zu}=(0,y.createSlotFill)("EditSiteToolsMoreMenuGroup");Fu.Slot=({fillProps:e})=>(0,l.createElement)(zu,{fillProps:e},(e=>e&&e.length>0));var Ou=Fu,Hu=n(8981),Gu=n.n(Hu);var Uu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"}));function $u(){const{createErrorNotice:e}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(y.MenuItem,{role:"menuitem",icon:Uu,onClick:async function(){try{const e=await Nt()({path:"/wp-block-editor/v1/export",parse:!1,headers:{Accept:"application/zip"}}),t=await e.blob(),n=e.headers.get("content-disposition").match(/=(.+)\.zip/),a=n[1]?n[1]:"edit-site-export";Gu()(t,a+".zip","application/zip")}catch(t){let n={};try{n=await t.json()}catch(e){}const a=n.message&&"unknown_error"!==n.code?n.message:(0,E.__)("An error occurred while creating the site export.");e(a,{type:"snackbar"})}},info:(0,E.__)("Download your theme with updated templates and styles.")},(0,E._x)("Export","site exporter menu item"))}function ju(){const{toggle:e}=(0,d.useDispatch)(x.store);return(0,l.createElement)(y.MenuItem,{onClick:()=>e("core/edit-site","welcomeGuide")},(0,E.__)("Welcome Guide"))}function Wu(){const{createNotice:e}=(0,d.useDispatch)(Se.store),t=(0,d.useSelect)((e=>()=>{const{getEditedPostId:t,getEditedPostType:n}=e(Dn),{getEditedEntityRecord:a}=e(_.store),r=a("postType",n(),t());if(r){if("function"==typeof r.content)return r.content(r);if(r.blocks)return(0,c.__unstableSerializeAndClean)(r.blocks);if(r.content)return r.content}return""}),[]);const n=(0,re.useCopyToClipboard)(t,(function(){e("info",(0,E.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(y.MenuItem,{ref:n},(0,E.__)("Copy all blocks"))}const Zu=[{value:"visual",label:(0,E.__)("Visual editor")},{value:"text",label:(0,E.__)("Code editor")}];var qu=function(){const{shortcut:e,mode:t}=(0,d.useSelect)((e=>({shortcut:e(An.store).getShortcutRepresentation("core/edit-site/toggle-mode"),isRichEditingEnabled:e(Dn).getSettings().richEditingEnabled,isCodeEditingEnabled:e(Dn).getSettings().codeEditingEnabled,mode:e(Dn).getEditorMode()})),[]),{switchEditorMode:n}=(0,d.useDispatch)(Dn),a=Zu.map((n=>n.value!==t?{...n,shortcut:e}:n));return(0,l.createElement)(y.MenuGroup,{label:(0,E.__)("Editor")},(0,l.createElement)(y.MenuItemsChoice,{choices:a,value:t,onSelect:n}))};function Yu({showIconLabels:e}){const t=(0,d.useRegistry)(),n=(0,d.useSelect)((e=>e(x.store).get("core/edit-site","distractionFree")),[]),{setIsInserterOpened:a,setIsListViewOpened:r,closeGeneralSidebar:o}=(0,d.useDispatch)(Dn),{openModal:i}=(0,d.useDispatch)(U),{set:s}=(0,d.useDispatch)(x.store),c=()=>{t.batch((()=>{s("core/edit-site","fixedToolbar",!1),a(!1),r(!1),o()}))};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ce,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.MenuGroup,{label:(0,E._x)("View","noun")},(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"fixedToolbar",disabled:n,label:(0,E.__)("Top toolbar"),info:(0,E.__)("Access all block and document tools in a single place"),messageActivated:(0,E.__)("Top toolbar activated"),messageDeactivated:(0,E.__)("Top toolbar deactivated")}),(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"focusMode",label:(0,E.__)("Spotlight mode"),info:(0,E.__)("Focus on one block at a time"),messageActivated:(0,E.__)("Spotlight mode activated"),messageDeactivated:(0,E.__)("Spotlight mode deactivated")}),(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"distractionFree",onToggle:c,label:(0,E.__)("Distraction free"),info:(0,E.__)("Write with calmness"),messageActivated:(0,E.__)("Distraction free mode activated"),messageDeactivated:(0,E.__)("Distraction free mode deactivated"),shortcut:ea.displayShortcut.primaryShift("\\")})),(0,l.createElement)(qu,null),(0,l.createElement)(K.Slot,{name:"core/edit-site/plugin-more-menu",label:(0,E.__)("Plugins"),as:y.MenuGroup,fillProps:{onClick:e}}),(0,l.createElement)(y.MenuGroup,{label:(0,E.__)("Tools")},(0,l.createElement)($u,null),(0,l.createElement)(y.MenuItem,{onClick:()=>i(Pu),shortcut:ea.displayShortcut.access("h")},(0,E.__)("Keyboard shortcuts")),(0,l.createElement)(ju,null),(0,l.createElement)(Wu,null),(0,l.createElement)(y.MenuItem,{icon:Cu,role:"menuitem",href:(0,E.__)("https://wordpress.org/documentation/article/site-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,E.__)("Help"),(0,l.createElement)(y.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)"))),(0,l.createElement)(Ou.Slot,{fillProps:{onClose:e}})),(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>i(Au)},(0,E.__)("Preferences")))))),(0,l.createElement)(Lu,null),(0,l.createElement)(Vu,null))}var Ku=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var Xu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var Qu=(0,l.forwardRef)((function(e,t){const n=(0,d.useSelect)((e=>e(_.store).hasUndo()),[]),{undo:a}=(0,d.useDispatch)(_.store);return(0,l.createElement)(y.Button,{...e,ref:t,icon:(0,E.isRTL)()?Xu:Ku,label:(0,E.__)("Undo"),shortcut:ea.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?a:void 0})}));var Ju=(0,l.forwardRef)((function(e,t){const n=(0,ea.isAppleOS)()?ea.displayShortcut.primaryShift("z"):ea.displayShortcut.primary("y"),a=(0,d.useSelect)((e=>e(_.store).hasRedo()),[]),{redo:r}=(0,d.useDispatch)(_.store);return(0,l.createElement)(y.Button,{...e,ref:t,icon:(0,E.isRTL)()?Ku:Xu,label:(0,E.__)("Redo"),shortcut:n,"aria-disabled":!a,onClick:a?r:void 0})}));function ed(){return(0,d.useSelect)((e=>e(Dn).isPage()))?(0,l.createElement)(td,null):(0,l.createElement)(nd,null)}function td(){const{hasPageContentFocus:e,hasResolved:t,isFound:n,title:a}=(0,d.useSelect)((e=>{const{hasPageContentFocus:t,getEditedPostContext:n}=e(Dn),{getEditedEntityRecord:a,hasFinishedResolution:r}=e(_.store),o=n(),i=["postType",o.postType,o.postId],s=a(...i);return{hasPageContentFocus:t(),hasResolved:r("getEditedEntityRecord",i),isFound:!!s,title:s?.title}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(Dn),[o,i]=(0,l.useState)(!1),s=(0,l.useRef)(!1);return(0,l.useEffect)((()=>{s.current&&!e&&i(!0),s.current=e}),[e]),t?n?e?(0,l.createElement)(ad,{className:v()("is-page",{"is-animated":o}),icon:Hn},a):(0,l.createElement)(nd,{className:"is-animated",onBack:()=>r(!0)}):(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,E.__)("Document not found")):null}function nd({className:e,onBack:t}){const{isLoaded:n,record:a,getTitle:r,icon:o}=oo();if(!n)return null;if(!a)return(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,E.__)("Document not found"));const i=function(e){let t="";switch(e){case"wp_navigation":t="navigation menu";break;case"wp_template_part":t="template part";break;default:t="template"}return t}(a.type);return(0,l.createElement)(ad,{className:e,icon:"wp_navigation"===a.type?zn:o,onBack:t},(0,l.createElement)(y.VisuallyHidden,{as:"span"},(0,E.sprintf)((0,E.__)("Editing %s: "),i)),r())}function ad({className:e,icon:t,children:n,onBack:a}){const{open:r}=(0,d.useDispatch)(Vn.store);return(0,l.createElement)("div",{className:v()("edit-site-document-actions",e)},a&&(0,l.createElement)(y.Button,{className:"edit-site-document-actions__back",icon:Wn,onClick:e=>{e.stopPropagation(),a()}},(0,E.__)("Back")),(0,l.createElement)(y.Button,{className:"edit-site-document-actions__command",onClick:()=>r()},(0,l.createElement)(y.__experimentalHStack,{className:"edit-site-document-actions__title",spacing:1,justify:"center"},(0,l.createElement)(we.BlockIcon,{icon:t}),(0,l.createElement)(y.__experimentalText,{size:"body",as:"h1"},n)),(0,l.createElement)("span",{className:"edit-site-document-actions__shortcut"},ea.displayShortcut.primary("k"))))}const{useShouldContextualToolbarShow:rd}=nt(we.privateApis),od=e=>{e.preventDefault()};function id(){const e=(0,l.useRef)(),{deviceType:t,templateType:n,isInserterOpen:a,isListViewOpen:r,listViewShortcut:o,isVisualMode:i,isDistractionFree:s,blockEditorMode:c,homeUrl:u,showIconLabels:m,editorCanvasView:p}=(0,d.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t,getEditedPostType:n,isInserterOpened:a,isListViewOpened:r,getEditorMode:o}=e(Dn),{getShortcutRepresentation:i}=e(An.store),{__unstableGetEditorMode:s}=e(we.store),l=n(),{getUnstableBase:c}=e(_.store);return{deviceType:t(),templateType:l,isInserterOpen:a(),isListViewOpen:r(),listViewShortcut:i("core/edit-site/toggle-list-view"),isVisualMode:"visual"===o(),blockEditorMode:s(),homeUrl:c()?.home,showIconLabels:e(x.store).get("core/edit-site","showIconLabels"),editorCanvasView:nt(e(Dn)).getEditorCanvasContainerView(),isDistractionFree:e(x.store).get("core/edit-site","distractionFree")}}),[]),{__experimentalSetPreviewDeviceType:g,setIsInserterOpened:h,setIsListViewOpened:f}=(0,d.useDispatch)(Dn),{__unstableSetEditorMode:b}=(0,d.useDispatch)(we.store),w=(0,re.useReducedMotion)(),S=(0,re.useViewportMatch)("medium"),k=(0,l.useCallback)((()=>{a?(e.current.focus(),h(!1)):h(!0)}),[a,h]),C=(0,l.useCallback)((()=>f(!r)),[f,r]),{shouldShowContextualToolbar:T,canFocusHiddenToolbar:N,fixedToolbarCanBeFocused:M}=rd(),P=T||N||M,I=!(0,y.__experimentalUseSlotFills)(xa)?.length,B="wp_template_part"===n||"wp_navigation"===n,R=(0,E._x)("Toggle block inserter","Generic label for block inserter button"),L=a?(0,E.__)("Close"):(0,E.__)("Add"),D=window?.__experimentalEnableZoomedOutView&&i,A="zoom-out"===c,V={isDistractionFree:{y:"-50px"},isDistractionFreeHovering:{y:0},view:{y:0},edit:{y:0}},F={type:"tween",duration:w?0:.2,ease:"easeOut"};return(0,l.createElement)("div",{className:v()("edit-site-header-edit-mode",{"show-icon-labels":m})},I&&(0,l.createElement)(we.NavigableToolbar,{as:y.__unstableMotion.div,className:"edit-site-header-edit-mode__start","aria-label":(0,E.__)("Document tools"),shouldUseKeyboardFocusShortcut:!P,variants:V,transition:F},(0,l.createElement)("div",{className:"edit-site-header-edit-mode__toolbar"},!s&&(0,l.createElement)(y.ToolbarItem,{ref:e,as:y.Button,className:"edit-site-header-edit-mode__inserter-toggle",variant:"primary",isPressed:a,onMouseDown:od,onClick:k,disabled:!i,icon:Ka,label:m?L:R,showTooltip:!m}),S&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.ToolbarItem,{as:we.ToolSelector,showTooltip:!m,variant:m?"tertiary":void 0,disabled:!i}),(0,l.createElement)(y.ToolbarItem,{as:Qu,showTooltip:!m,variant:m?"tertiary":void 0}),(0,l.createElement)(y.ToolbarItem,{as:Ju,showTooltip:!m,variant:m?"tertiary":void 0}),!s&&(0,l.createElement)(y.ToolbarItem,{as:y.Button,className:"edit-site-header-edit-mode__list-view-toggle",disabled:!i||A,icon:Su,isPressed:r,label:(0,E.__)("List View"),onClick:C,shortcut:o,showTooltip:!m,variant:m?"tertiary":void 0}),D&&!s&&(0,l.createElement)(y.ToolbarItem,{as:y.Button,className:"edit-site-header-edit-mode__zoom-out-view-toggle",icon:ku,isPressed:A,label:(0,E.__)("Zoom-out View"),onClick:()=>{g("desktop"),b(A?"edit":"zoom-out")}})))),!s&&(0,l.createElement)("div",{className:"edit-site-header-edit-mode__center"},I?(0,l.createElement)(ed,null):ka(p)),(0,l.createElement)("div",{className:"edit-site-header-edit-mode__end"},(0,l.createElement)(y.__unstableMotion.div,{className:"edit-site-header-edit-mode__actions",variants:V,transition:F},!B&&I&&(0,l.createElement)("div",{className:v()("edit-site-header-edit-mode__preview-options",{"is-zoomed-out":A})},(0,l.createElement)(we.__experimentalPreviewOptions,{deviceType:t,setDeviceType:g,label:(0,E.__)("View")},(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{href:u,target:"_blank",icon:Cu},(0,E.__)("View site"),(0,l.createElement)(y.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)")))))),(0,l.createElement)(ci,null),!s&&(0,l.createElement)(ee.Slot,{scope:"core/edit-site"}),(0,l.createElement)(Yu,{showIconLabels:m}))))}var sd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(f.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var ld=function({className:e}){const{isRequestingSite:t,siteIconUrl:n}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","__unstableBase",void 0);return{isRequestingSite:!n,siteIconUrl:n?.site_icon_url}}),[]);if(t&&!n)return(0,l.createElement)("div",{className:"edit-site-site-icon__image"});const a=n?(0,l.createElement)("img",{className:"edit-site-site-icon__image",alt:(0,E.__)("Site Icon"),src:n}):(0,l.createElement)(y.Icon,{className:"edit-site-site-icon__icon",size:"48px",icon:sd});return(0,l.createElement)("div",{className:v()(e,"edit-site-site-icon")},a)};const cd=(0,l.forwardRef)(((e,t)=>{const{canvasMode:n,dashboardLink:a,homeUrl:r}=(0,d.useSelect)((e=>{const{getCanvasMode:t,getSettings:n}=nt(e(Dn)),{getUnstableBase:a}=e(_.store);return{canvasMode:t(),dashboardLink:n().__experimentalDashboardLink||"index.php",homeUrl:a()?.home}}),[]),{open:o}=(0,d.useDispatch)(Vn.store),i=(0,re.useReducedMotion)(),{setCanvasMode:s}=nt((0,d.useDispatch)(Dn)),{clearSelectedBlock:c}=(0,d.useDispatch)(we.store),u="view"===n?{href:a,label:(0,E.__)("Go back to the Dashboard")}:{href:a,role:"button",label:(0,E.__)("Open Navigation"),onClick:e=>{e.preventDefault(),"edit"===n&&(c(),s("view"))}},m=(0,d.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]);return(0,l.createElement)(y.__unstableMotion.div,{ref:t,...e,className:v()("edit-site-site-hub",e.className),initial:!1,transition:{type:"tween",duration:i?0:.3,ease:"easeOut"}},(0,l.createElement)(y.__experimentalHStack,{justify:"space-between",alignment:"center",className:"edit-site-site-hub__container"},(0,l.createElement)(y.__experimentalHStack,{justify:"flex-start",className:"edit-site-site-hub__text-content",spacing:"0"},(0,l.createElement)(y.__unstableMotion.div,{className:"edit-site-site-hub__view-mode-toggle-container",layout:!0,transition:{type:"tween",duration:i?0:.3,ease:"easeOut"}},(0,l.createElement)(y.Button,{...u,className:"edit-site-layout__view-mode-toggle"},(0,l.createElement)(y.__unstableMotion.div,{initial:!1,animate:{scale:"view"===n?.5:1},whileHover:{scale:"view"===n?.5:.96},transition:{type:"tween",duration:i?0:.3,ease:"easeOut"}},(0,l.createElement)(ld,{className:"edit-site-layout__view-mode-toggle-icon"})))),(0,l.createElement)(y.__unstableAnimatePresence,null,(0,l.createElement)(y.__unstableMotion.div,{layout:"edit"===n,animate:{opacity:"view"===n?1:0},exit:{opacity:0},className:"edit-site-site-hub__site-title",transition:{type:"tween",duration:i?0:.2,ease:"easeOut",delay:"view"===n?.1:0}},(0,Pt.decodeEntities)(m))),"view"===n&&(0,l.createElement)(y.Button,{href:r,target:"_blank",label:(0,E.__)("View site"),"aria-label":(0,E.__)("View site (opens in a new tab)"),icon:Cu,className:"edit-site-site-hub__site-view-link"})),"view"===n&&(0,l.createElement)(y.Button,{className:"edit-site-site-hub_toggle-command-center",icon:Er,onClick:()=>o(),label:(0,E.__)("Open command center")})))}));var ud=cd;const dd={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};function md(e,t){const n=((e,t,n)=>e+(t-e)*n)(t,.46153846153846156,1-Math.max(0,Math.min(1,(e-340)/960)));return e/n}var pd=function({isFullWidth:e,isReady:t,children:n,oversizedClassName:a,innerContentStyle:r}){const[o,i]=(0,l.useState)({width:"100%",height:"100%"}),[s,c]=(0,l.useState)(),[u,m]=(0,l.useState)(!1),[p,_]=(0,l.useState)(!1),[g,h]=(0,l.useState)(!1),[E,f]=(0,l.useState)(1),{setCanvasMode:b}=nt((0,d.useDispatch)(Dn)),w=(0,l.useRef)(null),S=(0,l.useRef)(null),k={type:"tween",duration:u?0:.5},C=(0,l.useRef)(null);(0,l.useEffect)((()=>{const{offsetWidth:e,offsetHeight:t}=C.current.resizable;S.current=e,w.current=e/t}),[]);const x={default:{flexGrow:0,height:o.height},fullWidth:{flexGrow:1,height:o.height}};return(0,l.createElement)(y.ResizableBox,{as:y.__unstableMotion.div,ref:C,initial:!1,variants:x,animate:e?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&i({width:"100%",height:"100%"})},transition:k,size:o,enable:{top:!1,right:!1,bottom:!1,left:t,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:E,handleClasses:void 0,handleStyles:{left:dd,right:dd},minWidth:340,maxWidth:e?"100%":"150%",maxHeight:"100%",onMouseOver:()=>_(!0),onMouseOut:()=>_(!1),handleComponent:{left:p||u?(0,l.createElement)(y.__unstableMotion.div,{key:"handle",className:"edit-site-resizable-frame__handle",variants:{default:{opacity:1,left:-16},resizing:{opacity:1,left:-16,scaleY:1.3}},animate:u?"resizing":"default",title:"Drag to resize",initial:{opacity:0,left:0},exit:{opacity:0,left:0},whileHover:{scaleY:1.3}}):null},onResizeStart:(e,t,n)=>{c(n.offsetWidth),m(!0)},onResize:(e,t,n,a)=>{const r=a.width/E,o=Math.abs(r),l=a.width<0?o:(S.current-s)/2,c=Math.min(o,l),u=0===o?0:c/o;f(1-u+2*u);const d=s+a.width;h(d>S.current),i({height:g?"100%":md(d,w.current)})},onResizeStop:(e,t,n)=>{if(m(!1),!g)return;h(!1);n.ownerDocument.documentElement.offsetWidth-n.offsetWidth>200?i({width:"100%",height:"100%"}):b("edit")},className:v()("edit-site-resizable-frame__inner",{"is-resizing":u,[a]:g})},(0,l.createElement)(y.__unstableMotion.div,{className:"edit-site-resizable-frame__inner-content",animate:{borderRadius:e?0:8},transition:k,style:r},n))};const{useLocation:_d,useHistory:gd}=nt(mt.privateApis);const{useHistory:hd,useLocation:vd}=nt(mt.privateApis);const{EntitiesSavedStatesExtensible:yd}=nt(g.privateApis),Ed=({onClose:e})=>{const t=(0,g.useEntitiesSavedStatesIsDirty)();let n;n=t.isDirty?(0,E.__)("Activate & Save"):(0,E.__)("Activate");const{getTheme:a}=(0,d.useSelect)(_.store),r=a(gt()),o=(0,l.createElement)("p",null,(0,E.sprintf)("Saving your changes will change your active theme to %1$s.",r?.name?.rendered)),i=function(){const e=hd(),t=vd();return async()=>{if(_t()){const n="themes.php?action=activate&stylesheet="+gt()+"&_wpnonce="+window.BLOCK_THEME_ACTIVATE_NONCE;await window.fetch(n);const{wp_theme_preview:a,...r}=t.params;e.replace(r)}}}();return(0,l.createElement)(yd,{...t,additionalPrompt:o,close:e,onSave:async e=>(await i(),e),saveEnabled:!0,saveLabel:n})},fd=({onClose:e})=>_t()?(0,l.createElement)(Ed,{onClose:e}):(0,l.createElement)(g.EntitiesSavedStates,{close:e});function bd(){const{isSaveViewOpen:e,canvasMode:t}=(0,d.useSelect)((e=>{const{isSaveViewOpened:t,getCanvasMode:n}=nt(e(Dn));return{isSaveViewOpen:t(),canvasMode:n()}}),[]),{setIsSaveViewOpened:n}=(0,d.useDispatch)(Dn),a=()=>n(!1);return"view"===t?e?(0,l.createElement)(y.Modal,{className:"edit-site-save-panel__modal",onRequestClose:a,__experimentalHideHeader:!0,contentLabel:(0,E.__)("Save site, content, and template changes")},(0,l.createElement)(fd,{onClose:a})):null:(0,l.createElement)(oe,{className:v()("edit-site-layout__actions",{"is-entity-save-view-open":e}),ariaLabel:(0,E.__)("Save panel")},e?(0,l.createElement)(fd,{onClose:a}):(0,l.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},(0,l.createElement)(y.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:()=>n(!0),"aria-expanded":!1},(0,E.__)("Open save panel"))))}var wd=function(){const{registerShortcut:e}=(0,d.useDispatch)(An.store);return(0,l.useEffect)((()=>{e({name:"core/edit-site/save",category:"global",description:(0,E.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/undo",category:"global",description:(0,E.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-site/redo",category:"global",description:(0,E.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,ea.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-site/toggle-list-view",category:"global",description:(0,E.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:(0,E.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/keyboard-shortcuts",category:"main",description:(0,E.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-site/next-region",category:"global",description:(0,E.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:(0,E.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-site/toggle-mode",category:"global",description:(0,E.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/edit-site/transform-heading-to-paragraph",category:"block-library",description:(0,E.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-site/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,E.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),e({name:"core/edit-site/toggle-distraction-free",category:"global",description:(0,E.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}})}),[e]),null};var Sd=function(){const{__experimentalGetDirtyEntityRecords:e,isSavingEntityRecord:t}=(0,d.useSelect)(_.store),{setIsSaveViewOpened:n}=(0,d.useDispatch)(Dn);return(0,An.useShortcut)("core/edit-site/save",(a=>{a.preventDefault();const r=e(),o=!!r.length;!r.some((e=>t(e.kind,e.name,e.key)))&&o&&n(!0)})),null};var kd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));var Cd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));const{useGlobalStylesReset:xd}=nt(we.privateApis),{useHistory:Td}=nt(mt.privateApis);function Nd(){const[e,t]=xd();return{isLoading:!1,commands:(0,l.useMemo)((()=>e?[{name:"core/edit-site/reset-global-styles",label:(0,E.__)("Reset styles to defaults"),icon:kd,callback:({close:e})=>{e(),t()}}]:[]),[e,t])}}function Md(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t}=nt((0,d.useDispatch)(Dn)),n=Td(),{canEditCSS:a}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a();return{canEditCSS:null!==(t=!!(r?n("root","globalStyles",r):void 0)?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]);return{isLoading:!1,commands:(0,l.useMemo)((()=>a?[{name:"core/edit-site/open-styles-css",label:(0,E.__)("Open CSS"),icon:On,callback:({close:a})=>{a(),n.push({path:"/wp_global_styles",canvas:"edit"}),e("edit-site/global-styles"),t("global-styles-css")}}]:[]),[n,e,t,a])}}var Pd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var Id=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var Bd=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));var Rd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(f.Path,{d:"M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z"}));const{useHistory:Ld}=nt(mt.privateApis);function Dd(){const{isPage:e,canvasMode:t,hasPageContentFocus:n}=(0,d.useSelect)((e=>({isPage:e(Dn).isPage(),canvasMode:nt(e(Dn)).getCanvasMode(),hasPageContentFocus:e(Dn).hasPageContentFocus()})),[]),{setHasPageContentFocus:a}=(0,d.useDispatch)(Dn);if(!e||"edit"!==t)return{isLoading:!1,commands:[]};const r=[];return n?r.push({name:"core/switch-to-template-focus",label:(0,E.__)("Edit template"),icon:Gn,callback:({close:e})=>{a(!1),e()}}):r.push({name:"core/switch-to-page-focus",label:(0,E.__)("Back to page"),icon:Hn,callback:({close:e})=>{a(!0),e()}}),{isLoading:!1,commands:r}}function Ad(){const{isLoaded:e,record:t}=oo(),{removeTemplate:n,revertTemplate:a}=(0,d.useDispatch)(Dn),r=Ld(),o=(0,d.useSelect)((e=>e(Dn).hasPageContentFocus()),[]);if(!e)return{isLoading:!0,commands:[]};const i=[];if(Bt(t)&&!o){const e="wp_template"===t.type?(0,E.__)("Reset template"):(0,E.__)("Reset template part");i.push({name:"core/reset-template",label:e,icon:Yn,callback:({close:e})=>{a(t),e()}})}if(po(t)&&!o){const e="wp_template"===t.type?(0,E.__)("Delete template"):(0,E.__)("Delete template part");i.push({name:"core/remove-template",label:e,icon:kd,callback:({close:e})=>{n(t),r.push({path:"/"+t.type}),e()}})}return{isLoading:!e,commands:i}}function Vd(){const{openGeneralSidebar:e,closeGeneralSidebar:t,switchEditorMode:n}=(0,d.useDispatch)(Dn),{canvasMode:a,editorMode:r,activeSidebar:o}=(0,d.useSelect)((e=>({canvasMode:nt(e(Dn)).getCanvasMode(),editorMode:e(Dn).getEditorMode(),activeSidebar:e(U).getActiveComplementaryArea(Dn.name)})),[]),{openModal:i}=(0,d.useDispatch)(U),{toggle:s}=(0,d.useDispatch)(x.store);if("edit"!==a)return{isLoading:!1,commands:[]};const l=[];return l.push({name:"core/open-settings-sidebar",label:(0,E.__)("Toggle settings sidebar"),icon:(0,E.isRTL)()?Bi:Ri,callback:({close:n})=>{n(),"edit-site/template"===o?t():e("edit-site/template")}}),l.push({name:"core/open-block-inspector",label:(0,E.__)("Toggle block inspector"),icon:Pd,callback:({close:n})=>{n(),"edit-site/block-inspector"===o?t():e("edit-site/block-inspector")}}),l.push({name:"core/toggle-spotlight-mode",label:(0,E.__)("Toggle spotlight mode"),icon:Id,callback:({close:e})=>{s("core/edit-site","focusMode"),e()}}),l.push({name:"core/toggle-top-toolbar",label:(0,E.__)("Toggle top toolbar"),icon:Id,callback:({close:e})=>{s("core/edit-site","fixedToolbar"),e()}}),l.push({name:"core/toggle-code-editor",label:(0,E.__)("Toggle code editor"),icon:Bd,callback:({close:e})=>{n("visual"===r?"text":"visual"),e()}}),l.push({name:"core/open-preferences",label:(0,E.__)("Open editor preferences"),icon:Id,callback:()=>{i(Au)}}),l.push({name:"core/open-shortcut-help",label:(0,E.__)("Open keyboard shortcuts"),icon:Rd,callback:()=>{i(Pu)}}),{isLoading:!1,commands:l}}function Fd({title:e,subTitle:t,actions:n}){return(0,l.createElement)(y.__experimentalHStack,{as:"header",alignment:"left",className:"edit-site-page-header"},(0,l.createElement)(y.FlexBlock,{className:"edit-site-page-header__page-title"},(0,l.createElement)(y.__experimentalHeading,{as:"h1",level:4,className:"edit-site-page-header__title"},e),t&&(0,l.createElement)(y.__experimentalText,{as:"p",className:"edit-site-page-header__sub-title"},t)),(0,l.createElement)(y.FlexItem,{className:"edit-site-page-header__actions"},n))}function zd({title:e,subTitle:t,actions:n,children:a,className:r,hideTitleFromUI:o=!1}){const i=v()("edit-site-page",r);return(0,l.createElement)(oe,{className:i,ariaLabel:e},!o&&e&&(0,l.createElement)(Fd,{title:e,subTitle:t,actions:n}),(0,l.createElement)("div",{className:"edit-site-page-content"},a))}function Od({data:e,columns:t}){return(0,l.createElement)("div",{className:"edit-site-table-wrapper"},(0,l.createElement)("table",{className:"edit-site-table"},(0,l.createElement)("thead",null,(0,l.createElement)("tr",null,t.map((e=>(0,l.createElement)("th",{key:e.header},e.header))))),(0,l.createElement)("tbody",null,e.map(((e,n)=>(0,l.createElement)("tr",{key:n},t.map(((t,n)=>(0,l.createElement)("td",{style:{maxWidth:t.maxWidth?t.maxWidth:void 0},key:n},t.cell(e))))))))))}function Hd(){const{records:e}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),{canCreate:t}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Dn).getSettings();return{postType:e(_.store).getPostType("wp_template"),canCreate:!t}})),n=[{header:(0,E.__)("Template"),cell:e=>(0,l.createElement)(y.__experimentalVStack,null,(0,l.createElement)(y.__experimentalHeading,{level:5},(0,l.createElement)(yt,{params:{postId:e.id,postType:e.type,canvas:"edit"}},(0,Pt.decodeEntities)(e.title?.rendered||e.slug))),e.description&&(0,l.createElement)(y.__experimentalText,{variant:"muted"},(0,Pt.decodeEntities)(e.description))),maxWidth:400},{header:(0,E.__)("Added by"),cell:e=>(0,l.createElement)(mo,{postType:e.type,postId:e.id})},{header:(0,l.createElement)(y.VisuallyHidden,null,(0,E.__)("Actions")),cell:e=>(0,l.createElement)(go,{postType:e.type,postId:e.id})}];return(0,l.createElement)(zd,{title:(0,E.__)("Templates"),actions:t&&(0,l.createElement)(to,{templateType:"wp_template",showIcon:!1,toggleProps:{variant:"primary"}})},e&&(0,l.createElement)(Od,{data:e,columns:n}))}var Gd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));function Ud({categoryId:e,composite:t,icon:n,item:a}){const r=`edit-site-library__pattern-description-${(0,re.useInstanceId)(Ud)}`,[o,i]=(0,l.useState)(!1),{__experimentalDeleteReusableBlock:s}=(0,d.useDispatch)(hc.store),{createErrorNotice:c,createSuccessNotice:u}=(0,d.useDispatch)(Se.store),{onClick:m}=vt({postType:a.type,postId:a.type===tr?a.id:a.name,categoryId:e,categoryType:a.type,canvas:"view"}),p=!a.blocks?.length,_=v()("edit-site-library__pattern",{"is-placeholder":p}),g=v()("edit-site-library__preview",{"is-inactive":a.type===Ja}),h=a.type===tr;let f;return h?f=(0,E.__)("Press Enter to edit, or Delete to delete the pattern."):a.description&&(f=a.description),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:_},(0,l.createElement)(y.__unstableCompositeItem,{className:g,role:"option",as:"div",...t,onClick:a.type!==Ja?m:void 0,onKeyDown:h?e=>{ea.DELETE!==e.keyCode&&ea.BACKSPACE!==e.keyCode||i(!0)}:void 0,"aria-label":a.title,"aria-describedby":f?r:void 0},p&&(0,E.__)("Empty pattern"),!p&&(0,l.createElement)(we.BlockPreview,{blocks:a.blocks})),f&&(0,l.createElement)("div",{"aria-hidden":"true",style:{display:"none"},id:r},f),(0,l.createElement)(y.__experimentalHStack,{"aria-hidden":"true",className:"edit-site-library__footer",justify:"space-between"},(0,l.createElement)(y.__experimentalHStack,{alignment:"center",justify:"left",spacing:3,className:"edit-site-library__pattern-title"},n&&(0,l.createElement)(de,{icon:n}),(0,l.createElement)(y.__experimentalHeading,{level:5},a.title)),a.type===tr&&(0,l.createElement)(y.DropdownMenu,{icon:Gd,label:(0,E.__)("Actions"),className:"edit-site-library__dropdown",popoverProps:{placement:"bottom-end"},toggleProps:{className:"edit-site-library__button",isSmall:!0,describedBy:(0,E.sprintf)((0,E.__)("Action menu for %s pattern"),a.title),tabIndex:-1}},(()=>(0,l.createElement)(y.MenuGroup,null,(0,l.createElement)(y.MenuItem,{onClick:()=>i(!0)},(0,E.__)("Delete"))))))),o&&(0,l.createElement)(y.__experimentalConfirmDialog,{onConfirm:async()=>{try{await s(a.id),u((0,E.__)("Pattern successfully deleted."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the pattern.");c(t,{type:"snackbar"})}},onCancel:()=>i(!1)},(0,E.__)("Are you sure you want to delete this pattern?")))}function $d({categoryId:e,label:t,icon:n,items:a}){const r=(0,y.__unstableUseCompositeState)({orientation:"vertical"});return a?.length?(0,l.createElement)(y.__unstableComposite,{...r,role:"listbox",className:"edit-site-library__grid","aria-label":t},a.map((t=>(0,l.createElement)(Ud,{key:t.name,icon:n,item:t,categoryId:e,composite:r})))):null}function jd(){return(0,l.createElement)("div",{className:"edit-site-library__no-results"},(0,E.__)("No patterns found."))}var Wd=n(4793),Zd=n.n(Wd);function qd(e){return e.toLowerCase()}var Yd=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Kd=/[^A-Z0-9]+/gi;function Xd(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const Qd=e=>e.name||"",Jd=e=>e.title,em=e=>e.description||"",tm=e=>e.keywords||[],nm=()=>!1;function am(e=""){return function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,a=void 0===n?Yd:n,r=t.stripRegexp,o=void 0===r?Kd:r,i=t.transform,s=void 0===i?qd:i,l=t.delimiter,c=void 0===l?" ":l,u=Xd(Xd(e,a,"$1\0$2"),o,"\0"),d=0,m=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(m-1);)m--;return u.slice(d,m).split("\0").map(s).join(c)}(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function rm(e=""){return e=(e=(e=Zd()(e)).replace(/^\//,"")).toLowerCase()}const om=(e="")=>am(rm(e)),im=(e=[],t="",n={})=>{const a=om(t),r=!a.length,o={...n,onlyFilterByCategory:r},i=r?0:1,s=e.map((e=>[e,sm(e,t,o)])).filter((([,e])=>e>i));return 0===a.length||s.sort((([,e],[,t])=>t-e)),s.map((([e])=>e))};function sm(e,t,n){const{categoryId:a,getName:r=Qd,getTitle:o=Jd,getDescription:i=em,getKeywords:s=tm,hasCategory:l=nm,onlyFilterByCategory:c}=n;let u=l(e,a)?1:0;if(!u||c)return u;const d=r(e),m=o(e),p=i(e),_=s(e),g=rm(t),h=rm(m);if(g===h)u+=30;else if(h.startsWith(g))u+=20;else{const e=[d,m,p,..._].join(" ");0===((e,t)=>e.filter((e=>!om(t).some((t=>t.includes(e))))))(am(g),e).length&&(u+=10)}return u}const lm=[],cm=(e,t=er,n="")=>{const{templateParts:a,isResolving:r}=(0,d.useSelect)((e=>{if(t!==er)return{templateParts:lm,isResolving:!1};const{getEntityRecords:n,isResolving:a}=e(_.store),r={per_page:-1},o=n("postType",t,r)?.map((e=>(e=>{return{blocks:(0,c.parse)(e.content.raw),categories:[e.area],description:e.description||"",keywords:e.keywords||[],name:(t=e.theme,n=e.slug,t&&n?t+"//"+n:null),title:e.title.rendered,type:e.type,templatePart:e};var t,n})(e)));return{templateParts:o,isResolving:a("getEntityRecords",["postType","wp_template_part",r])}}),[t]);return{templateParts:(0,l.useMemo)((()=>a?im(a,n,{categoryId:e,hasCategory:(e,t)=>e.templatePart.area===t}):lm),[a,n,e]),isResolving:r}},um=(e,t=Ja,n="")=>{const a=t===Ja?tr:t,r=(0,d.useSelect)((t=>{if(a!==tr||e!==nr)return lm;const{getEntityRecords:n}=t(_.store),r=n("postType",a,{per_page:-1});return r?r.map((e=>{return t=e,{blocks:(0,c.parse)(t.content.raw),categories:t.wp_pattern,id:t.id,name:t.slug,syncStatus:t.meta?.sync_status,title:t.title.raw,type:t.type,reusableBlock:t};var t})):lm}),[a,e]),o=(0,l.useMemo)((()=>r.length?im(r,n,{hasCategory:()=>!0}):lm),[r,n]),i={syncedPatterns:[],unsyncedPatterns:[]};return o.forEach((e=>{e.syncStatus===rr?i.syncedPatterns.push(e):i.unsyncedPatterns.push(e)})),i};var dm=(e,t,n)=>{const a=((e,t=Ja,n="")=>{const a=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(Dn)),a=n();return null!==(t=a.__experimentalAdditionalBlockPatterns)&&void 0!==t?t:a.__experimentalBlockPatterns})),r=(0,d.useSelect)((e=>e(_.store).getBlockPatterns())),o=(0,l.useMemo)((()=>[...a||[],...r||[]].filter((e=>!ar.includes(e.source))).filter(ir).map((e=>({...e,keywords:e.keywords||[],type:"pattern",blocks:(0,c.parse)(e.content)})))),[a,r]);return(0,l.useMemo)((()=>t!==Ja?lm:im(o,n,{categoryId:e,hasCategory:(e,t)=>e.categories?.includes(t)})),[o,n,e,t])})(t,e,n),{syncedPatterns:r=[],unsyncedPatterns:o=[]}=um(t,e,n),{templateParts:i,isResolving:s}=cm(t,e,n);return[{syncedPatterns:[...i,...r],unsyncedPatterns:[...a,...o]},s]};const{useLocation:mm,useHistory:pm}=nt(mt.privateApis);function _m({categoryId:e,type:t}){const n=mm(),a=pm(),r=(0,re.useViewportMatch)("medium","<"),[o,i,s]=Nr(""),[c,u]=dm(t,e,s),{syncedPatterns:d,unsyncedPatterns:m}=c,p=!!d.length||!!m.length;return(0,l.createElement)(y.__experimentalVStack,{spacing:6},(0,l.createElement)(y.Flex,null,r&&(0,l.createElement)($n,{icon:(0,E.isRTL)()?pe:me,label:(0,E.__)("Back"),onClick:()=>{"/library"===n.state?.backPath?a.back():a.push({path:"/library"})}}),(0,l.createElement)(y.FlexBlock,null,(0,l.createElement)(y.SearchControl,{className:"edit-site-library__search",onChange:e=>i(e),placeholder:(0,E.__)("Search patterns"),label:(0,E.__)("Search patterns"),value:o,__nextHasNoMarginBottom:!0}))),u&&(0,E.__)("Loading"),!u&&!!d.length&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-library__section-header"},(0,l.createElement)(y.__experimentalHeading,{level:4},(0,E.__)("Synced")),(0,l.createElement)(y.__experimentalText,{variant:"muted",as:"p"},(0,E.__)("Patterns that are kept in sync across your site"))),(0,l.createElement)($d,{icon:Un,categoryId:e,label:(0,E.__)("Synced patterns"),items:d})),!u&&!!m.length&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(y.__experimentalVStack,{className:"edit-site-library__section-header"},(0,l.createElement)(y.__experimentalHeading,{level:4},(0,E.__)("Standard")),(0,l.createElement)(y.__experimentalText,{variant:"muted",as:"p"},(0,E.__)("Patterns that can be changed freely without affecting your site"))),(0,l.createElement)($d,{categoryId:e,label:(0,E.__)("Standard patterns"),items:m})),!u&&!p&&(0,l.createElement)(jd,null))}const{ExperimentalBlockEditorProvider:gm}=nt(we.privateApis);function hm(){const{categoryType:e,categoryId:t}=(0,pt.getQueryArgs)(window.location.href),n=e||Qa,a=t||Xa,r=function(){var e;const t=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Dn));return t()}),[]),n=null!==(e=t.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:t.__experimentalBlockPatterns,a=(0,d.useSelect)((e=>e(_.store).getBlockPatterns()),[]),r=(0,l.useMemo)((()=>[...n||[],...a||[]].filter(ir)),[n,a]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,...n}=t;return{...n,__experimentalBlockPatterns:r,__unstableIsPreviewMode:!0}}),[t,r])}();return(0,l.createElement)(gm,{settings:r},(0,l.createElement)(zd,{className:"edit-site-library",title:(0,E.__)("Library content"),hideTitleFromUI:!0},(0,l.createElement)(_m,{type:n,categoryId:a})))}const{useLocation:vm}=nt(mt.privateApis);function ym(){const{params:{path:e}}=vm();return"/wp_template/all"===e?(0,l.createElement)(Hd,null):"/library"===e?(0,l.createElement)(hm,null):null}const{useCommands:Em}=nt(Fn.privateApis),{useCommandContext:fm}=nt(Vn.privateApis),{useLocation:bm}=nt(mt.privateApis),{useGlobalStyle:wm}=nt(we.privateApis);function Sm(){To(),function(){const e=gd(),{params:t}=_d(),n=(0,d.useSelect)((e=>nt(e(Dn)).getCanvasMode()),[]),{setCanvasMode:a}=nt((0,d.useDispatch)(Dn)),r=(0,l.useRef)(n),{canvas:o}=t,i=(0,l.useRef)(o),s=(0,l.useRef)(t);(0,l.useEffect)((()=>{s.current=t}),[t]),(0,l.useEffect)((()=>{r.current=n,"init"!==n&&("edit"===n&&i.current!==n&&e.push({...s.current,canvas:"edit"}),"view"===n&&void 0!==i.current&&e.push({...s.current,canvas:void 0}))}),[n,e]),(0,l.useEffect)((()=>{i.current=o,void 0===o&&"view"!==r.current?a("view"):"edit"===o&&"edit"!==r.current&&a("edit")}),[o,a])}(),Em(),(0,Vn.useCommandLoader)({name:"core/edit-site/page-content-focus",hook:Dd,context:"site-editor-edit"}),(0,Vn.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:Ad,context:"site-editor-edit"}),(0,Vn.useCommandLoader)({name:"core/edit-site/edit-ui",hook:Vd}),function(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t}=nt((0,d.useDispatch)(Dn)),{set:n}=(0,d.useDispatch)(x.store),a=Td(),{homeUrl:r}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home}}),[]);(0,Vn.useCommand)({name:"core/edit-site/open-global-styles-revisions",label:(0,E.__)("Open styles revisions"),icon:Yn,callback:({close:n})=>{n(),a.push({path:"/wp_global_styles",canvas:"edit"}),e("edit-site/global-styles"),t("global-styles-revisions")}}),(0,Vn.useCommand)({name:"core/edit-site/open-styles",label:(0,E.__)("Open styles"),callback:({close:t})=>{t(),a.push({path:"/wp_global_styles",canvas:"edit"}),e("edit-site/global-styles")},icon:On}),(0,Vn.useCommand)({name:"core/edit-site/toggle-styles-welcome-guide",label:(0,E.__)("Learn about styles"),callback:({close:t})=>{t(),a.push({path:"/wp_global_styles",canvas:"edit"}),e("edit-site/global-styles"),n("core/edit-site","welcomeGuideStyles",!0),setTimeout((()=>{n("core/edit-site","welcomeGuideStyles",!0)}),500)},icon:Cd}),(0,Vn.useCommand)({name:"core/edit-site/view-site",label:(0,E.__)("View site"),callback:({close:e})=>{e(),window.open(r,"_blank")},icon:Cu}),(0,Vn.useCommandLoader)({name:"core/edit-site/reset-global-styles",hook:Nd}),(0,Vn.useCommandLoader)({name:"core/edit-site/open-styles-css",hook:Md})}();const e=(0,l.useRef)(),{params:t}=bm(),n=(0,re.useViewportMatch)("medium","<"),a=function({path:e,categoryType:t,categoryId:n},a){return"/wp_template/all"===e||"/library"===e&&(!a||!!t&&!!n)}(t,n),r=!a,{isDistractionFree:o,hasFixedToolbar:i,canvasMode:s,previousShortcut:c,nextShortcut:u}=(0,d.useSelect)((e=>{const{getAllShortcutKeyCombinations:t}=e(An.store),{getCanvasMode:n}=nt(e(Dn));return{canvasMode:n(),previousShortcut:t("core/edit-site/previous-region"),nextShortcut:t("core/edit-site/next-region"),hasFixedToolbar:e(x.store).get("core/edit-site","fixedToolbar"),isDistractionFree:e(x.store).get("core/edit-site","distractionFree")}}),[]),m="edit"===s,p=(0,y.__unstableUseNavigateRegions)({previous:c,next:u}),g=(0,re.useReducedMotion)(),h=n&&!a||!n&&("view"===s||!r),f=n&&r&&m||!n||!r,b=n&&a||r&&m,[w,S]=(0,re.useResizeObserver)(),[k]=(0,re.useResizeObserver)(),[C]=(0,l.useState)(!1),T=function(){const{isLoaded:e}=oo(),[t,n]=(0,l.useState)(!1),a=(0,d.useSelect)((e=>{const n=e(_.store).hasResolvingSelectors();return!t&&!n}),[t]);return(0,l.useEffect)((()=>{let e;return t||(e=setTimeout((()=>{n(!0)}),1e4)),()=>{clearTimeout(e)}}),[t]),(0,l.useEffect)((()=>{if(a){const e=setTimeout((()=>{n(!0)}),1e3);return()=>{clearTimeout(e)}}}),[a]),!t||!e}();let N;N="view"===s?"view":o?"isDistractionFree":s;fm("edit"===s&&r?"site-editor-edit":"site-editor");const[M]=wm("color.background"),[P]=wm("color.gradient");return"init"===s?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Vn.CommandMenu,null),(0,l.createElement)(wd,null),(0,l.createElement)(Sd,null),k,(0,l.createElement)("div",{...p,ref:p.ref,className:v()("edit-site-layout",p.className,{"is-distraction-free":o&&m,"is-full-canvas":b,"is-edit-mode":m,"has-fixed-toolbar":i})},(0,l.createElement)(y.__unstableMotion.div,{className:"edit-site-layout__header-container",variants:{isDistractionFree:{opacity:0,transition:{type:"tween",delay:.8,delayChildren:.8}},isDistractionFreeHovering:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},view:{opacity:1},edit:{opacity:1}},whileHover:o?"isDistractionFreeHovering":void 0,animate:N},(0,l.createElement)(ud,{as:y.__unstableMotion.div,variants:{isDistractionFree:{x:"-100%"},isDistractionFreeHovering:{x:0},view:{x:0},edit:{x:0}},ref:e,className:"edit-site-layout__hub"}),(0,l.createElement)(y.__unstableAnimatePresence,{initial:!1},r&&m&&(0,l.createElement)(oe,{className:"edit-site-layout__header",ariaLabel:(0,E.__)("Editor top bar"),as:y.__unstableMotion.div,variants:{isDistractionFree:{opacity:0},isDistractionFreeHovering:{opacity:1},view:{opacity:1},edit:{opacity:1}},transition:{type:"tween",duration:g?0:.2,ease:"easeOut"}},m&&(0,l.createElement)(id,null)))),(0,l.createElement)("div",{className:"edit-site-layout__content"},(0,l.createElement)(y.__unstableAnimatePresence,{initial:!1},(0,l.createElement)(y.__unstableMotion.div,{initial:{opacity:0},animate:h?{opacity:1,display:"block"}:{opacity:0,transitionEnd:{display:"none"}},exit:{opacity:0},transition:{type:"tween",duration:g||n?0:.5,ease:"easeOut"},className:"edit-site-layout__sidebar"},(0,l.createElement)(oe,{ariaLabel:(0,E.__)("Navigation")},(0,l.createElement)(Ii,null)))),(0,l.createElement)(bd,null),f&&(0,l.createElement)(l.Fragment,null,a&&(0,l.createElement)(ym,null),r&&(0,l.createElement)("div",{className:v()("edit-site-layout__canvas-container",{"is-resizing":C})},w,!!S.width&&(0,l.createElement)(y.__unstableMotion.div,{whileHover:r&&"view"===s?{scale:1.005,transition:{duration:g||C?0:.5,ease:"easeOut"}}:{},initial:!1,layout:"position",className:"edit-site-layout__canvas",transition:{type:"tween",duration:g||C?0:.5,ease:"easeOut"}},(0,l.createElement)(wu,null,(0,l.createElement)(pd,{isReady:!T,isFullWidth:m,oversizedClassName:"edit-site-layout__resizable-frame-oversized",innerContentStyle:{background:null!=P?P:M}},(0,l.createElement)(Eu,{isLoading:T})))))))))}const{RouterProvider:km}=nt(mt.privateApis);function Cm(){const{createErrorNotice:e}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(An.ShortcutProvider,{style:{height:"100%"}},(0,l.createElement)(y.SlotFillProvider,null,(0,l.createElement)(ca,null,(0,l.createElement)(y.Popover.Slot,null),(0,l.createElement)(g.UnsavedChangesWarning,null),(0,l.createElement)(km,null,(0,l.createElement)(Sm,null),(0,l.createElement)($.PluginArea,{onError:function(t){e((0,E.sprintf)((0,E.__)('The "%s" plugin has encountered an error and cannot be rendered.'),t))}})))))}function xm({className:e,...t}){const n=(0,d.useSelect)((e=>e(Dn).getSettings().showIconLabels),[]);return(0,l.createElement)(ae,{panelClassName:e,className:"edit-site-sidebar-edit-mode",scope:"core/edit-site",showIconLabels:n,...t})}function Tm(e){return(0,l.createElement)(Q,{__unstableExplicitMenuItem:!0,scope:"core/edit-site",...e})}var Nm=(0,re.compose)((0,$.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:y.MenuItem,icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"}})))(K);function Mm(e,t){const n=document.getElementById(e),a=(0,l.createRoot)(n);t.__experimentalFetchLinkSuggestions=(e,n)=>(0,_.__experimentalFetchLinkSuggestions)(e,n,t),t.__experimentalFetchRichUrlData=_.__experimentalFetchUrlData,(0,d.dispatch)(c.store).__experimentalReapplyBlockTypeFilters();const r=(0,u.__experimentalGetCoreBlocks)().filter((({name:e})=>"core/freeform"!==e));return(0,u.registerCoreBlocks)(r),(0,d.dispatch)(c.store).setFreeformFallbackBlockName("core/html"),(0,ye.registerLegacyWidgetBlock)({inserter:!1}),(0,ye.registerWidgetGroupBlock)({inserter:!1}),(0,d.dispatch)(x.store).setDefaults("core/edit-site",{editorMode:"visual",fixedToolbar:!1,focusMode:!1,distractionFree:!1,keepCaretInsideBlock:!1,welcomeGuide:!0,welcomeGuideStyles:!0,showListViewByDefault:!1,showBlockBreadcrumbs:!0}),(0,d.dispatch)(U).setDefaultComplementaryArea("core/edit-site","edit-site/template"),(0,d.dispatch)(Dn).updateSettings(t),(0,d.dispatch)(g.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas}),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),a.render((0,l.createElement)(Cm,null)),a}function Pm(){p()("wp.editSite.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editSite=a}(); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-widgets.js b/wp-includes/js/dist/edit-widgets.js index 899a9bdc1b..a50783c4f5 100644 --- a/wp-includes/js/dist/edit-widgets.js +++ b/wp-includes/js/dist/edit-widgets.js @@ -153,8 +153,10 @@ __webpack_require__.d(__webpack_exports__, { var actions_namespaceObject = {}; __webpack_require__.r(actions_namespaceObject); __webpack_require__.d(actions_namespaceObject, { + "closeModal": function() { return closeModal; }, "disableComplementaryArea": function() { return disableComplementaryArea; }, "enableComplementaryArea": function() { return enableComplementaryArea; }, + "openModal": function() { return openModal; }, "pinItem": function() { return pinItem; }, "setDefaultComplementaryArea": function() { return setDefaultComplementaryArea; }, "setFeatureDefaults": function() { return setFeatureDefaults; }, @@ -170,7 +172,8 @@ __webpack_require__.d(selectors_namespaceObject, { "getActiveComplementaryArea": function() { return getActiveComplementaryArea; }, "isComplementaryAreaLoading": function() { return isComplementaryAreaLoading; }, "isFeatureActive": function() { return isFeatureActive; }, - "isItemPinned": function() { return isItemPinned; } + "isItemPinned": function() { return isItemPinned; }, + "isModalActive": function() { return isModalActive; } }); // NAMESPACE OBJECT: ./node_modules/@wordpress/edit-widgets/build-module/store/actions.js @@ -581,6 +584,31 @@ function setFeatureDefaults(scope, defaults) { registry.dispatch(external_wp_preferences_namespaceObject.store).setDefaults(scope, defaults); }; } +/** + * Returns an action object used in signalling that the user opened a modal. + * + * @param {string} name A string that uniquely identifies the modal. + * + * @return {Object} Action object. + */ + +function openModal(name) { + return { + type: 'OPEN_MODAL', + name + }; +} +/** + * Returns an action object signalling that the user closed a modal. + * + * @return {Object} Action object. + */ + +function closeModal() { + return { + type: 'CLOSE_MODAL' + }; +} ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/selectors.js /** @@ -653,6 +681,18 @@ const isFeatureActive = (0,external_wp_data_namespaceObject.createRegistrySelect }); return !!select(external_wp_preferences_namespaceObject.store).get(scope, featureName); }); +/** + * Returns true if a modal is active, or false otherwise. + * + * @param {Object} state Global application state. + * @param {string} modalName A string that uniquely identifies the modal. + * + * @return {boolean} Whether the modal is active. + */ + +function isModalActive(state, modalName) { + return state.activeModal === modalName; +} ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/reducer.js /** @@ -691,8 +731,29 @@ function complementaryAreas(state = {}, action) { return state; } +/** + * Reducer for storing the name of the open modal, or null if no modal is open. + * + * @param {Object} state Previous state. + * @param {Object} action Action object containing the `name` of the modal + * + * @return {Object} Updated state + */ + +function activeModal(state = null, action) { + switch (action.type) { + case 'OPEN_MODAL': + return action.name; + + case 'CLOSE_MODAL': + return null; + } + + return state; +} /* harmony default export */ var store_reducer = ((0,external_wp_data_namespaceObject.combineReducers)({ - complementaryAreas + complementaryAreas, + activeModal })); ;// CONCATENATED MODULE: ./node_modules/@wordpress/interface/build-module/store/constants.js diff --git a/wp-includes/js/dist/edit-widgets.min.js b/wp-includes/js/dist/edit-widgets.min.js index 6d8ca17856..1a7aa5d062 100644 --- a/wp-includes/js/dist/edit-widgets.min.js +++ b/wp-includes/js/dist/edit-widgets.min.js @@ -4,4 +4,4 @@ Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),T=(e,t)=>({registry:r,dispatch:n})=>{if(!t)return;r.select(_.store).get(e,"isComplementaryAreaVisible")||r.dispatch(_.store).set(e,"isComplementaryAreaVisible",!0),n({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},L=e=>({registry:t})=>{t.select(_.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(_.store).set(e,"isComplementaryAreaVisible",!1)},R=(e,t)=>({registry:r})=>{if(!t)return;const n=r.select(_.store).get(e,"pinnedItems");!0!==n?.[t]&&r.dispatch(_.store).set(e,"pinnedItems",{...n,[t]:!0})},P=(e,t)=>({registry:r})=>{if(!t)return;const n=r.select(_.store).get(e,"pinnedItems");r.dispatch(_.store).set(e,"pinnedItems",{...n,[t]:!1})};function O(e,t){return function({registry:r}){m()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(_.store).toggle(e,t)}}function M(e,t,r){return function({registry:n}){m()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),n.dispatch(_.store).set(e,t,!!r)}}function D(e,t){return function({registry:r}){m()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(_.store).setDefaults(e,t)}}const V=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(_.store).get(r,"isComplementaryAreaVisible");if(void 0!==n)return!1===n?null:t?.complementaryAreas?.[r]})),F=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(_.store).get(r,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[r];return n&&void 0===a})),G=(0,d.createRegistrySelector)((e=>(t,r,n)=>{var a;return null===(a=e(_.store).get(r,"pinnedItems")?.[n])||void 0===a||a})),z=(0,d.createRegistrySelector)((e=>(t,r,n)=>(m()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(_.store).get(r,n))));var H=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:r,area:n}=t;return e[r]?e:{...e,[r]:n}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:r,area:n}=t;return{...e,[r]:n}}}return e}});const U=(0,d.createReduxStore)("core/interface",{reducer:H,actions:e,selectors:t});(0,d.register)(U);var $=window.wp.plugins,j=(0,$.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var Y=j((function({as:e=S.Button,scope:t,identifier:r,icon:n,selectedIcon:a,name:i,...o}){const s=e,l=(0,d.useSelect)((e=>e(U).getActiveComplementaryArea(t)===r),[r]),{enableComplementaryArea:u,disableComplementaryArea:m}=(0,d.useDispatch)(U);return(0,c.createElement)(s,{icon:a&&l?a:n,onClick:()=>{l?m(t):u(t,r)},...o})}));var K=({smallScreenTitle:e,children:t,className:r,toggleButtonProps:n})=>{const a=(0,c.createElement)(Y,{icon:x,...n});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,c.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),a),(0,c.createElement)("div",{className:k()("components-panel__header","interface-complementary-area-header",r),tabIndex:-1},t,a))};const Z=()=>{};function q({name:e,as:t=S.Button,onClick:r,...n}){return(0,c.createElement)(S.Fill,{name:e},(({onClick:e})=>(0,c.createElement)(t,{onClick:r||e?(...t)=>{(r||Z)(...t),(e||Z)(...t)}:void 0,...n})))}q.Slot=function({name:e,as:t=S.ButtonGroup,fillProps:r={},bubblesVirtually:n,...a}){return(0,c.createElement)(S.Slot,{name:e,bubblesVirtually:n,fillProps:r},(e=>{if(!c.Children.toArray(e).length)return null;const r=[];c.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&r.push(t)}));const n=c.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&r.includes(e.props.__unstableTarget)?null:e));return(0,c.createElement)(t,{...a},n)}))};var Q=q;const J=({__unstableExplicitMenuItem:e,__unstableTarget:t,...r})=>(0,c.createElement)(S.MenuItem,{...r});function X({scope:e,target:t,__unstableExplicitMenuItem:r,...n}){return(0,c.createElement)(Y,{as:n=>(0,c.createElement)(Q,{__unstableExplicitMenuItem:r,__unstableTarget:`${e}/${t}`,as:J,name:`${e}/plugin-more-menu`,...n}),role:"menuitemcheckbox",selectedIcon:A,name:t,scope:e,...n})}function ee({scope:e,...t}){return(0,c.createElement)(S.Fill,{name:`PinnedItems/${e}`,...t})}ee.Slot=function({scope:e,className:t,...r}){return(0,c.createElement)(S.Slot,{name:`PinnedItems/${e}`,...r},(e=>e?.length>0&&(0,c.createElement)("div",{className:k()(t,"interface-pinned-items")},e)))};var te=ee;function re({scope:e,children:t,className:r}){return(0,c.createElement)(S.Fill,{name:`ComplementaryArea/${e}`},(0,c.createElement)("div",{className:r},t))}const ne=j((function({children:e,className:t,closeLabel:r=(0,b.__)("Close plugin"),identifier:n,header:a,headerClassName:i,icon:o,isPinnable:s=!0,panelClassName:l,scope:u,name:m,smallScreenTitle:g,title:p,toggleShortcut:h,isActiveByDefault:_,showIconLabels:w=!1}){const{isLoading:f,isActive:E,isPinned:v,activeArea:y,isSmall:I,isLarge:x}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:r,isItemPinned:a}=e(U),i=t(u);return{isLoading:r(u),isActive:i===n,isPinned:a(u,n),activeArea:i,isSmall:e(N.store).isViewportMatch("< medium"),isLarge:e(N.store).isViewportMatch("large")}}),[n,u]);!function(e,t,r,n,a){const i=(0,c.useRef)(!1),o=(0,c.useRef)(!1),{enableComplementaryArea:s,disableComplementaryArea:l}=(0,d.useDispatch)(U);(0,c.useEffect)((()=>{n&&a&&!i.current?(l(e),o.current=!0):o.current&&!a&&i.current?(o.current=!1,s(e,t)):o.current&&r&&r!==t&&(o.current=!1),a!==i.current&&(i.current=a)}),[n,a,e,t,r])}(u,n,y,E,I);const{enableComplementaryArea:W,disableComplementaryArea:T,pinItem:L,unpinItem:R}=(0,d.useDispatch)(U);return(0,c.useEffect)((()=>{_&&void 0===y&&!I?W(u,n):void 0===y&&I&&T(u,n)}),[y,_,u,n,I]),(0,c.createElement)(c.Fragment,null,s&&(0,c.createElement)(te,{scope:u},v&&(0,c.createElement)(Y,{scope:u,identifier:n,isPressed:E&&(!w||x),"aria-expanded":E,"aria-disabled":f,label:p,icon:w?A:o,showTooltip:!w,variant:w?"tertiary":void 0})),m&&s&&(0,c.createElement)(X,{target:m,scope:u,icon:o},p),E&&(0,c.createElement)(re,{className:k()("interface-complementary-area",t),scope:u},(0,c.createElement)(K,{className:i,closeLabel:r,onClose:()=>T(u),smallScreenTitle:g,toggleButtonProps:{label:r,shortcut:h,scope:u,identifier:n}},a||(0,c.createElement)(c.Fragment,null,(0,c.createElement)("strong",null,p),s&&(0,c.createElement)(S.Button,{className:"interface-complementary-area__pin-unpin-item",icon:v?C:B,label:v?(0,b.__)("Unpin from toolbar"):(0,b.__)("Pin to toolbar"),onClick:()=>(v?R:L)(u,n),isPressed:v,"aria-expanded":v}))),(0,c.createElement)(S.Panel,{className:l},e)))}));ne.Slot=function({scope:e,...t}){return(0,c.createElement)(S.Slot,{name:`ComplementaryArea/${e}`,...t})};var ae=ne,ie=window.wp.compose;function oe({children:e,className:t,ariaLabel:r,as:n="div",...a}){return(0,c.createElement)(n,{className:k()("interface-navigable-region",t),"aria-label":r,role:"region",tabIndex:"-1",...a},e)}const se={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var ce=(0,c.forwardRef)((function({isDistractionFree:e,footer:t,header:r,editorNotices:n,sidebar:a,secondarySidebar:i,notices:o,content:s,actions:l,labels:d,className:u,enableRegionNavigation:m=!0,shortcuts:g},p){const h=(0,S.__unstableUseNavigateRegions)(g);!function(e){(0,c.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const _={...{header:(0,b.__)("Header"),body:(0,b.__)("Content"),secondarySidebar:(0,b.__)("Block Library"),sidebar:(0,b.__)("Settings"),actions:(0,b.__)("Publish"),footer:(0,b.__)("Footer")},...d};return(0,c.createElement)("div",{...m?h:{},ref:(0,ie.useMergeRefs)([p,m?h.ref:void 0]),className:k()(u,"interface-interface-skeleton",h.className,!!t&&"has-footer")},(0,c.createElement)("div",{className:"interface-interface-skeleton__editor"},!!r&&(0,c.createElement)(oe,{as:S.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":_.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:se,transition:e?{type:"tween",delay:.8}:void 0},r),e&&(0,c.createElement)("div",{className:"interface-interface-skeleton__header"},n),(0,c.createElement)("div",{className:"interface-interface-skeleton__body"},!!i&&(0,c.createElement)(oe,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:_.secondarySidebar},i),!!o&&(0,c.createElement)("div",{className:"interface-interface-skeleton__notices"},o),(0,c.createElement)(oe,{className:"interface-interface-skeleton__content",ariaLabel:_.body},s),!!a&&(0,c.createElement)(oe,{className:"interface-interface-skeleton__sidebar",ariaLabel:_.sidebar},a),!!l&&(0,c.createElement)(oe,{className:"interface-interface-skeleton__actions",ariaLabel:_.actions},l))),!!t&&(0,c.createElement)(oe,{className:"interface-interface-skeleton__footer",ariaLabel:_.footer},t))}));var le=(0,c.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function de({as:e=S.DropdownMenu,className:t,label:r=(0,b.__)("Options"),popoverProps:n,toggleProps:a,children:i}){return(0,c.createElement)(e,{className:k()("interface-more-menu-dropdown",t),icon:le,label:r,popoverProps:{placement:"bottom-end",...n,className:k()("interface-more-menu-dropdown__content",n?.className)},toggleProps:{tooltipPosition:"bottom",...a}},(e=>i(e)))}var ue=window.wp.blockEditor;function me(e){if("block"===e.id_base){const t=(0,l.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});return t.length?(0,h.addWidgetIdToBlock)(t[0],e.id):(0,h.addWidgetIdToBlock)((0,l.createBlock)("core/paragraph",{},[]),e.id)}let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},(0,h.addWidgetIdToBlock)((0,l.createBlock)("core/legacy-widget",t,[]),e.id)}function ge(e,t={}){let r;var n,a,i;"core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance)?r={...t,id:null!==(n=e.attributes.id)&&void 0!==n?n:t.id,id_base:null!==(a=e.attributes.idBase)&&void 0!==a?a:t.id_base,instance:null!==(i=e.attributes.instance)&&void 0!==i?i:t.instance}:r={...t,id_base:"block",instance:{raw:{content:(0,l.serialize)(e)}}};return delete r.rendered,delete r.rendered_form,r}const pe="root",he="sidebar",_e="postType",we=e=>`widget-area-${e}`;const fe="core/edit-widgets",Ee=(e,t)=>({registry:r})=>{const n=((e,t)=>({id:e,slug:e,status:"draft",type:"page",blocks:t,meta:{widgetAreaId:e}}))(e,t);return r.dispatch(p.store).receiveEntityRecords(pe,_e,n,{id:n.id},!1),n},be=()=>async({select:e,dispatch:t,registry:r})=>{const n=e.getEditedWidgetAreas();if(n?.length)try{await t.saveWidgetAreas(n),r.dispatch(v.store).createSuccessNotice((0,b.__)("Widgets saved."),{type:"snackbar"})}catch(e){r.dispatch(v.store).createErrorNotice((0,b.sprintf)((0,b.__)("There was an error. %s"),e.message),{type:"snackbar"})}},ve=e=>async({dispatch:t,registry:r})=>{try{for(const r of e)await t.saveWidgetArea(r.id)}finally{await r.dispatch(p.store).finishResolution("getEntityRecord",pe,he,{per_page:-1})}},ye=e=>async({dispatch:t,select:r,registry:n})=>{const a=r.getWidgets(),i=n.select(p.store).getEditedEntityRecord(pe,_e,we(e)),o=Object.values(a).filter((({sidebar:t})=>t===e)),s=[],c=i.blocks.filter((e=>{const{id:t}=e.attributes;if("core/legacy-widget"===e.name&&t){if(s.includes(t))return!1;s.push(t)}return!0})),l=[];for(const e of o){r.getWidgetAreaForWidgetId(e.id)||l.push(e)}const d=[],u=[],m=[];for(let t=0;te("root","widget",i)))}else u.push((({saveEntityRecord:t})=>t("root","widget",{...s,sidebar:e})));d.push({block:r,position:t,clientId:r.clientId})}for(const e of l)u.push((({deleteEntityRecord:t})=>t("root","widget",e.id,{force:!0})));const g=(await n.dispatch(p.store).__experimentalBatch(u)).filter((e=>!e.hasOwnProperty("deleted"))),_=[];for(let e=0;e({registry:t})=>{t.dispatch(p.store).saveEditedEntityRecord(pe,he,e,{throwOnError:!0})};function Se(e,t){return{type:"SET_WIDGET_ID_FOR_CLIENT_ID",clientId:e,widgetId:t}}function Ie(e){return{type:"SET_WIDGET_AREAS_OPEN_STATE",widgetAreasOpenState:e}}function Ae(e,t){return{type:"SET_IS_WIDGET_AREA_OPEN",clientId:e,isOpen:t}}function Ce(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function Be(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}const Ne=()=>({registry:e})=>{e.dispatch(U).disableComplementaryArea(fe)},xe=(e,t)=>async({dispatch:r,select:n,registry:a})=>{const i=a.select(ue.store).getBlockRootClientId(e),o=a.select(ue.store).getBlocks().find((({attributes:e})=>e.id===t)).clientId,s=a.select(ue.store).getBlockOrder(o).length;n.getIsWidgetAreaOpen(o)||r.setIsWidgetAreaOpen(o,!0),a.dispatch(ue.store).moveBlocksToPosition([e],i,o,s)},We=()=>async({dispatch:e,registry:t})=>{const r={per_page:-1},n=[],a=(await t.resolveSelect(p.store).getEntityRecords(pe,he,r)).sort(((e,t)=>"wp_inactive_widgets"===e.id?1:"wp_inactive_widgets"===t.id?-1:0));for(const t of a)n.push((0,l.createBlock)("core/widget-area",{id:t.id,name:t.name})),t.widgets.length||e(Ee(we(t.id),[]));const i={};n.forEach(((e,t)=>{i[e.clientId]=0===t})),e(Ie(i)),e(Ee("widget-areas",n))},Te=()=>async({dispatch:e,registry:t})=>{const r={per_page:-1,_embed:"about"},n=await t.resolveSelect(p.store).getEntityRecords("root","widget",r),a={};for(const e of n){const t=me(e);a[e.sidebar]=a[e.sidebar]||[],a[e.sidebar].push(t)}for(const t in a)a.hasOwnProperty(t)&&e(Ee(we(t),a[t]))},Le=(0,d.createRegistrySelector)((e=>()=>e(p.store).getEntityRecords("root","widget",{per_page:-1,_embed:"about"})?.reduce(((e,t)=>({...e,[t.id]:t})),{})||{})),Re=(0,d.createRegistrySelector)((e=>(t,r)=>e(fe).getWidgets()[r])),Pe=(0,d.createRegistrySelector)((e=>()=>{const t={per_page:-1};return e(p.store).getEntityRecords(pe,he,t)})),Oe=(0,d.createRegistrySelector)((e=>(t,r)=>e(fe).getWidgetAreas().find((t=>e(p.store).getEditedEntityRecord(pe,_e,we(t.id)).blocks.map((e=>(0,h.getWidgetIdFromBlock)(e))).includes(r))))),Me=(0,d.createRegistrySelector)((e=>(t,r)=>{const{getBlock:n,getBlockName:a,getBlockParents:i}=e(ue.store);return n(i(r).find((e=>"core/widget-area"===a(e))))})),De=(0,d.createRegistrySelector)((e=>(t,r)=>{let n=e(fe).getWidgetAreas();return n?(r&&(n=n.filter((({id:e})=>r.includes(e)))),n.filter((({id:t})=>e(p.store).hasEditsForEntityRecord(pe,_e,we(t)))).map((({id:t})=>e(p.store).getEditedEntityRecord(pe,he,t)))):[]})),Ve=(0,d.createRegistrySelector)((e=>(t,r=null)=>{const n=[],a=e(fe).getWidgetAreas();for(const t of a){const a=e(p.store).getEditedEntityRecord(pe,_e,we(t.id));for(const e of a.blocks)"core/legacy-widget"!==e.name||r&&e.attributes?.referenceWidgetName!==r||n.push(e)}return n})),Fe=(0,d.createRegistrySelector)((e=>()=>{const t=e(fe).getWidgetAreas()?.map((({id:e})=>e));if(!t)return!1;for(const r of t){if(e(p.store).isSavingEntityRecord(pe,he,r))return!0}const r=[...Object.keys(e(fe).getWidgets()),void 0];for(const t of r){if(e(p.store).isSavingEntityRecord("root","widget",t))return!0}return!1})),Ge=(e,t)=>{const{widgetAreasOpenState:r}=e;return!!r[t]};function ze(e){return!!e.blockInserterPanel}function He(e){const{rootClientId:t,insertionIndex:r}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:r}}const Ue=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(ue.store).getBlocks(),[a]=n;return e(ue.store).canInsertBlockType(r,a.clientId)}));function $e(e){return e.listViewPanel}const je={reducer:E,selectors:o,resolvers:i,actions:a},Ye=(0,d.createReduxStore)(fe,je);(0,d.register)(Ye),f().use((function(e,t){return 0===e.path?.indexOf("/wp/v2/types/widget-area")?Promise.resolve({}):t(e)}));var Ke=window.wp.hooks;const Ze=(0,ie.createHigherOrderComponent)((e=>t=>{const{clientId:r,name:n}=t,{widgetAreas:a,currentWidgetAreaId:i,canInsertBlockInWidgetArea:o}=(0,d.useSelect)((e=>{if("core/widget-area"===n)return{};const t=e(Ye),a=t.getParentWidgetAreaBlock(r);return{widgetAreas:t.getWidgetAreas(),currentWidgetAreaId:a?.attributes?.id,canInsertBlockInWidgetArea:t.canInsertBlockInWidgetArea(n)}}),[r,n]),{moveBlockToWidgetArea:s}=(0,d.useDispatch)(Ye),l="core/widget-area"!==n&&a?.length>1&&o;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),l&&(0,c.createElement)(ue.BlockControls,null,(0,c.createElement)(h.MoveToWidgetArea,{widgetAreas:a,currentWidgetAreaId:i,onSelect:e=>{s(t.clientId,e)}})))}),"withMoveToWidgetAreaToolbarItem");(0,Ke.addFilter)("editor.BlockEdit","core/edit-widgets/block-edit",Ze);var qe=window.wp.mediaUtils;(0,Ke.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",(()=>qe.MediaUpload));var Qe=e=>{const[t,r]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){i(e)}function a(){r(!1)}function i(t){e.current.contains(t.target)?r(!0):r(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",a),t.addEventListener("dragenter",i),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",a),t.removeEventListener("dragenter",i)}}),[]),t};function Je({id:e}){const[t,r,n]=(0,p.useEntityBlockEditor)("root","postType"),a=(0,c.useRef)(),i=Qe(a),o=(0,ue.useInnerBlocksProps)({ref:a},{value:t,onInput:r,onChange:n,templateLock:!1,renderAppender:ue.InnerBlocks.ButtonBlockAppender});return(0,c.createElement)("div",{"data-widget-area-id":e,className:k()("wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper",{"wp-block-widget-area__highlight-drop-zone":i})},(0,c.createElement)("div",{...o}))}const Xe=e=>{const[t,r]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(){r(!0)}function a(){r(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",a)}}),[]),t},et={name:"core/widget-area",category:"widgets",attributes:{id:{type:"string"},name:{type:"string"}},supports:{html:!1,inserter:!1,customClassName:!1,reusable:!1,__experimentalToolbar:!1,__experimentalParentSelector:!1,__experimentalDisableBlockOverlay:!0},editorStyle:"wp-block-widget-area-editor",style:"wp-block-widget-area"},{name:tt}=et,rt={title:(0,b.__)("Widget Area"),description:(0,b.__)("A widget area container."),__experimentalLabel:({name:e})=>e,edit:function({clientId:e,className:t,attributes:{id:r,name:n}}){const a=(0,d.useSelect)((t=>t(Ye).getIsWidgetAreaOpen(e)),[e]),{setIsWidgetAreaOpen:i}=(0,d.useDispatch)(Ye),o=(0,c.useRef)(),s=(0,c.useCallback)((t=>i(e,t)),[e]),l=Xe(o),u=Qe(o),[m,g]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{l?u&&!a?(s(!0),g(!0)):!u&&a&&m&&s(!1):g(!1)}),[a,l,u,m]),(0,c.createElement)(S.Panel,{className:t,ref:o},(0,c.createElement)(S.PanelBody,{title:n,opened:a,onToggle:()=>{i(e,!a)},scrollAfterOpen:!l},(({opened:e})=>(0,c.createElement)(S.__unstableDisclosureContent,{className:"wp-block-widget-area__panel-body-content",visible:e},(0,c.createElement)(p.EntityProvider,{kind:"root",type:"postType",id:`widget-area-${r}`},(0,c.createElement)(Je,{id:r}))))))}};function nt({text:e,children:t}){const r=(0,ie.useCopyToClipboard)(e);return(0,c.createElement)(S.Button,{variant:"secondary",ref:r},t)}function at({message:e,error:t}){const r=[(0,c.createElement)(nt,{key:"copy-error",text:t.stack},(0,b.__)("Copy Error"))];return(0,c.createElement)(ue.Warning,{className:"edit-widgets-error-boundary",actions:r},e)}class it extends c.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,Ke.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,c.createElement)(at,{message:(0,b.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}var ot=window.wp.reusableBlocks,st=window.wp.keyboardShortcuts,ct=window.wp.keycodes;function lt(){const{redo:e,undo:t}=(0,d.useDispatch)(p.store),{saveEditedWidgetAreas:r}=(0,d.useDispatch)(Ye),{replaceBlocks:n}=(0,d.useDispatch)(ue.store),{getBlockName:a,getSelectedBlockClientId:i,getBlockAttributes:o}=(0,d.useSelect)(ue.store),s=(e,t)=>{e.preventDefault();const r=0===t?"core/paragraph":"core/heading",s=i();if(null===s)return;const c=a(s);if("core/paragraph"!==c&&"core/heading"!==c)return;const d=o(s),u="core/paragraph"===c?"align":"textAlign",m="core/paragraph"===r?"align":"textAlign";n(s,(0,l.createBlock)(r,{level:t,content:d.content,[m]:d[u]}))};return(0,st.useShortcut)("core/edit-widgets/undo",(e=>{t(),e.preventDefault()})),(0,st.useShortcut)("core/edit-widgets/redo",(t=>{e(),t.preventDefault()})),(0,st.useShortcut)("core/edit-widgets/save",(e=>{e.preventDefault(),r()})),(0,st.useShortcut)("core/edit-widgets/transform-heading-to-paragraph",(e=>s(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,st.useShortcut)(`core/edit-widgets/transform-paragraph-to-heading-${e}`,(t=>s(t,e)))})),null}lt.Register=function(){const{registerShortcut:e}=(0,d.useDispatch)(st.store);return(0,c.useEffect)((()=>{e({name:"core/edit-widgets/undo",category:"global",description:(0,b.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-widgets/redo",category:"global",description:(0,b.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,ct.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-widgets/save",category:"global",description:(0,b.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-widgets/keyboard-shortcuts",category:"main",description:(0,b.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-widgets/next-region",category:"global",description:(0,b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-widgets/previous-region",category:"global",description:(0,b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-widgets/transform-heading-to-paragraph",category:"block-library",description:(0,b.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-widgets/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,b.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})}))}),[e]),null};var dt=lt;var ut=()=>(0,d.useSelect)((e=>{const{getBlockSelectionEnd:t,getBlockName:r}=e(ue.store),n=t();if("core/widget-area"===r(n))return n;const{getParentWidgetAreaBlock:a}=e(Ye),i=a(n)?.clientId;if(i)return i;const{getEntityRecord:o}=e(p.store);return o(pe,_e,"widget-areas")?.blocks[0]?.clientId}),[]);var mt=window.wp.privateApis;const{lock:gt,unlock:pt}=(0,mt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-widgets"),{ExperimentalBlockEditorProvider:ht}=pt(ue.privateApis);function _t({blockEditorSettings:e,children:t,...r}){const n=(0,p.useResourcePermissions)("media"),{reusableBlocks:a,isFixedToolbarActive:i,keepCaretInsideBlock:o}=(0,d.useSelect)((e=>({widgetAreas:e(Ye).getWidgetAreas(),widgets:e(Ye).getWidgets(),reusableBlocks:[],isFixedToolbarActive:!!e(_.store).get("core/edit-widgets","fixedToolbar"),keepCaretInsideBlock:!!e(_.store).get("core/edit-widgets","keepCaretInsideBlock")})),[]),{setIsInserterOpened:s}=(0,d.useDispatch)(Ye),l=(0,c.useMemo)((()=>{let t;return n.canCreate&&(t=({onError:t,...r})=>{(0,qe.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...r})}),{...e,__experimentalReusableBlocks:a,hasFixedToolbar:i,keepCaretInsideBlock:o,mediaUpload:t,templateLock:"all",__experimentalSetIsInserterOpened:s}}),[e,i,o,n.canCreate,a,s]),u=ut(),[m,g,h]=(0,p.useEntityBlockEditor)(pe,_e,{id:"widget-areas"});return(0,c.createElement)(st.ShortcutProvider,null,(0,c.createElement)(ue.BlockEditorKeyboardShortcuts.Register,null),(0,c.createElement)(dt.Register,null),(0,c.createElement)(S.SlotFillProvider,null,(0,c.createElement)(ht,{value:m,onInput:g,onChange:h,settings:l,useSubRegistry:!1,...r},(0,c.createElement)(ue.CopyHandler,null,t),(0,c.createElement)(ot.ReusableBlocksMenuItems,{rootClientId:u}))))}var wt=(0,c.createElement)(I.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var ft=(0,c.createElement)(I.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));var Et=(0,c.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),bt=window.wp.url,vt=window.wp.dom;function yt({selectedWidgetAreaId:e}){const t=(0,d.useSelect)((e=>e(Ye).getWidgetAreas()),[]),r=(0,c.useMemo)((()=>e&&t?.find((t=>t.id===e))),[e,t]);let n;return n=r?"wp_inactive_widgets"===e?(0,b.__)("Blocks in this Widget Area will not be displayed in your site."):r.description:(0,b.__)("Widget Areas are global parts in your site’s layout that can accept blocks. These vary by theme, but are typically parts like your Sidebar or Footer."),(0,c.createElement)("div",{className:"edit-widgets-widget-areas"},(0,c.createElement)("div",{className:"edit-widgets-widget-areas__top-container"},(0,c.createElement)(ue.BlockIcon,{icon:Et}),(0,c.createElement)("div",null,(0,c.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,vt.safeHTML)(n)}}),0===t?.length&&(0,c.createElement)("p",null,(0,b.__)("Your theme does not contain any Widget Areas.")),!r&&(0,c.createElement)(S.Button,{href:(0,bt.addQueryArgs)("customize.php",{"autofocus[panel]":"widgets",return:window.location.pathname}),variant:"tertiary"},(0,b.__)("Manage with live preview")))))}const kt=c.Platform.select({web:!0,native:!1}),St="edit-widgets/block-inspector",It="edit-widgets/block-areas";function At({identifier:e,label:t,isActive:r}){const{enableComplementaryArea:n}=(0,d.useDispatch)(U);return(0,c.createElement)(S.Button,{onClick:()=>n(Ye.name,e),className:k()("edit-widgets-sidebar__panel-tab",{"is-active":r}),"aria-label":r?(0,b.sprintf)((0,b.__)("%s (selected)"),t):t,"data-label":t},t)}function Ct(){const{enableComplementaryArea:e}=(0,d.useDispatch)(U),{currentArea:t,hasSelectedNonAreaBlock:r,isGeneralSidebarOpen:n,selectedWidgetAreaBlock:a}=(0,d.useSelect)((e=>{const{getSelectedBlock:t,getBlock:r,getBlockParentsByBlockName:n}=e(ue.store),{getActiveComplementaryArea:a}=e(U),i=t(),o=a(Ye.name);let s,c=o;return c||(c=i?St:It),i&&(s="core/widget-area"===i.name?i:r(n(i.clientId,"core/widget-area")[0])),{currentArea:c,hasSelectedNonAreaBlock:!(!i||"core/widget-area"===i.name),isGeneralSidebarOpen:!!o,selectedWidgetAreaBlock:s}}),[]);return(0,c.useEffect)((()=>{r&&t===It&&n&&e("core/edit-widgets",St),!r&&t===St&&n&&e("core/edit-widgets",It)}),[r,e]),(0,c.createElement)(ae,{className:"edit-widgets-sidebar",header:(0,c.createElement)("ul",null,(0,c.createElement)("li",null,(0,c.createElement)(At,{identifier:It,label:a?a.attributes.name:(0,b.__)("Widget Areas"),isActive:t===It})),(0,c.createElement)("li",null,(0,c.createElement)(At,{identifier:St,label:(0,b.__)("Block"),isActive:t===St}))),headerClassName:"edit-widgets-sidebar__panel-tabs",title:(0,b.__)("Settings"),closeLabel:(0,b.__)("Close Settings"),scope:"core/edit-widgets",identifier:t,icon:(0,b.isRTL)()?wt:ft,isActiveByDefault:kt},t===It&&(0,c.createElement)(yt,{selectedWidgetAreaId:a?.attributes.id}),t===St&&(r?(0,c.createElement)(ue.BlockInspector,null):(0,c.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,b.__)("No block selected."))))}var Bt=(0,c.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var Nt=(0,c.createElement)(I.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(I.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var xt=function(){const{hasEditedWidgetAreaIds:e,isSaving:t}=(0,d.useSelect)((e=>{const{getEditedWidgetAreas:t,isSavingWidgetAreas:r}=e(Ye);return{hasEditedWidgetAreaIds:t()?.length>0,isSaving:r()}}),[]),{saveEditedWidgetAreas:r}=(0,d.useDispatch)(Ye);return(0,c.createElement)(S.Button,{variant:"primary",isBusy:t,"aria-disabled":t,onClick:t?void 0:r,disabled:!e},t?(0,b.__)("Saving…"):(0,b.__)("Update"))};var Wt=(0,c.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var Tt=(0,c.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));function Lt(){const e=(0,d.useSelect)((e=>e(p.store).hasUndo()),[]),{undo:t}=(0,d.useDispatch)(p.store);return(0,c.createElement)(S.ToolbarButton,{icon:(0,b.isRTL)()?Tt:Wt,label:(0,b.__)("Undo"),shortcut:ct.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?t:void 0})}function Rt(){const e=(0,ct.isAppleOS)()?ct.displayShortcut.primaryShift("z"):ct.displayShortcut.primary("y"),t=(0,d.useSelect)((e=>e(p.store).hasRedo()),[]),{redo:r}=(0,d.useDispatch)(p.store);return(0,c.createElement)(S.ToolbarButton,{icon:(0,b.isRTL)()?Wt:Tt,label:(0,b.__)("Redo"),shortcut:e,"aria-disabled":!t,onClick:t?r:void 0})}var Pt=(0,c.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const Ot=[{keyCombination:{modifier:"primary",character:"b"},description:(0,b.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,b.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,b.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,b.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,b.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,b.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,b.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,b.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,b.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,b.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Mt({keyCombination:e,forceAriaLabel:t}){const r=e.modifier?ct.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?ct.shortcutAriaLabel[e.modifier](e.character):e.character,a=Array.isArray(r)?r:[r];return(0,c.createElement)("kbd",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||n},a.map(((e,t)=>"+"===e?(0,c.createElement)(c.Fragment,{key:t},e):(0,c.createElement)("kbd",{key:t,className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key"},e))))}var Dt=function({description:e,keyCombination:t,aliases:r=[],ariaLabel:n}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-description"},e),(0,c.createElement)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-term"},(0,c.createElement)(Mt,{keyCombination:t,forceAriaLabel:n}),r.map(((e,t)=>(0,c.createElement)(Mt,{keyCombination:e,forceAriaLabel:n,key:t})))))};var Vt=function({name:e}){const{keyCombination:t,description:r,aliases:n}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:r,getShortcutDescription:n,getShortcutAliases:a}=t(st.store);return{keyCombination:r(e),aliases:a(e),description:n(e)}}),[e]);return t?(0,c.createElement)(Dt,{keyCombination:t,description:r,aliases:n}):null};const Ft=({shortcuts:e})=>(0,c.createElement)("ul",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,c.createElement)("li",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,c.createElement)(Vt,{name:e}):(0,c.createElement)(Dt,{...e}))))),Gt=({title:e,shortcuts:t,className:r})=>(0,c.createElement)("section",{className:k()("edit-widgets-keyboard-shortcut-help-modal__section",r)},!!e&&(0,c.createElement)("h2",{className:"edit-widgets-keyboard-shortcut-help-modal__section-title"},e),(0,c.createElement)(Ft,{shortcuts:t})),zt=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{const n=(0,d.useSelect)((e=>e(st.store).getCategoryShortcuts(t)),[t]);return(0,c.createElement)(Gt,{title:e,shortcuts:n.concat(r)})};function Ht({isModalActive:e,toggleModal:t}){return(0,st.useShortcut)("core/edit-widgets/keyboard-shortcuts",t,{bindGlobal:!0}),e?(0,c.createElement)(S.Modal,{className:"edit-widgets-keyboard-shortcut-help-modal",title:(0,b.__)("Keyboard shortcuts"),onRequestClose:t},(0,c.createElement)(Gt,{className:"edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-widgets/keyboard-shortcuts"]}),(0,c.createElement)(zt,{title:(0,b.__)("Global shortcuts"),categoryName:"global"}),(0,c.createElement)(zt,{title:(0,b.__)("Selection shortcuts"),categoryName:"selection"}),(0,c.createElement)(zt,{title:(0,b.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,b.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,b.__)("Forward-slash")}]}),(0,c.createElement)(Gt,{title:(0,b.__)("Text formatting"),shortcuts:Ot})):null}const{Fill:Ut,Slot:$t}=(0,S.createSlotFill)("EditWidgetsToolsMoreMenuGroup");Ut.Slot=({fillProps:e})=>(0,c.createElement)($t,{fillProps:e},(e=>e.length>0&&e));var jt=Ut;function Yt(){const[e,t]=(0,c.useState)(!1),r=()=>t(!e);(0,st.useShortcut)("core/edit-widgets/keyboard-shortcuts",r);const n=(0,ie.useViewportMatch)("medium");return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(de,null,(e=>(0,c.createElement)(c.Fragment,null,n&&(0,c.createElement)(S.MenuGroup,{label:(0,b._x)("View","noun")},(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"fixedToolbar",label:(0,b.__)("Top toolbar"),info:(0,b.__)("Access all block and document tools in a single place"),messageActivated:(0,b.__)("Top toolbar activated"),messageDeactivated:(0,b.__)("Top toolbar deactivated")})),(0,c.createElement)(S.MenuGroup,{label:(0,b.__)("Tools")},(0,c.createElement)(S.MenuItem,{onClick:()=>{t(!0)},shortcut:ct.displayShortcut.access("h")},(0,b.__)("Keyboard shortcuts")),(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"welcomeGuide",label:(0,b.__)("Welcome Guide")}),(0,c.createElement)(S.MenuItem,{role:"menuitem",icon:Pt,href:(0,b.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,b.__)("Help"),(0,c.createElement)(S.VisuallyHidden,{as:"span"},(0,b.__)("(opens in a new tab)"))),(0,c.createElement)(jt.Slot,{fillProps:{onClose:e}})),(0,c.createElement)(S.MenuGroup,{label:(0,b.__)("Preferences")},(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"keepCaretInsideBlock",label:(0,b.__)("Contain text cursor inside block"),info:(0,b.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,b.__)("Contain text cursor inside block activated"),messageDeactivated:(0,b.__)("Contain text cursor inside block deactivated")}),(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"themeStyles",info:(0,b.__)("Make the editor look like your theme."),label:(0,b.__)("Use theme styles")}),n&&(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"showBlockBreadcrumbs",label:(0,b.__)("Display block breadcrumbs"),info:(0,b.__)("Shows block breadcrumbs at the bottom of the editor."),messageActivated:(0,b.__)("Display block breadcrumbs activated"),messageDeactivated:(0,b.__)("Display block breadcrumbs deactivated")}))))),(0,c.createElement)(Ht,{isModalActive:e,toggleModal:r}))}const{useShouldContextualToolbarShow:Kt}=pt(ue.privateApis);var Zt=function(){const e=(0,ie.useViewportMatch)("medium"),t=(0,c.useRef)(),r=ut(),n=(0,d.useSelect)((e=>e(Ye).getIsWidgetAreaOpen(r)),[r]),{isInserterOpen:a,isListViewOpen:i}=(0,d.useSelect)((e=>{const{isInserterOpened:t,isListViewOpened:r}=e(Ye);return{isInserterOpen:t(),isListViewOpen:r()}}),[]),{setIsWidgetAreaOpen:o,setIsInserterOpened:s,setIsListViewOpened:l}=(0,d.useDispatch)(Ye),{selectBlock:u}=(0,d.useDispatch)(ue.store),m=(0,c.useCallback)((()=>l(!i)),[l,i]),{shouldShowContextualToolbar:g,canFocusHiddenToolbar:p,fixedToolbarCanBeFocused:h}=Kt(),_=g||p||h;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"edit-widgets-header"},(0,c.createElement)("div",{className:"edit-widgets-header__navigable-toolbar-wrapper"},e&&(0,c.createElement)("h1",{className:"edit-widgets-header__title"},(0,b.__)("Widgets")),!e&&(0,c.createElement)(S.VisuallyHidden,{as:"h1",className:"edit-widgets-header__title"},(0,b.__)("Widgets")),(0,c.createElement)(ue.NavigableToolbar,{className:"edit-widgets-header-toolbar","aria-label":(0,b.__)("Document tools"),shouldUseKeyboardFocusShortcut:!_},(0,c.createElement)(S.ToolbarItem,{ref:t,as:S.Button,className:"edit-widgets-header-toolbar__inserter-toggle",variant:"primary",isPressed:a,onMouseDown:e=>{e.preventDefault()},onClick:()=>{a?s(!1):(n||(u(r),o(r,!0)),window.requestAnimationFrame((()=>s(!0))))},icon:Bt,label:(0,b._x)("Toggle block inserter","Generic label for block inserter button")}),e&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Lt,null),(0,c.createElement)(Rt,null),(0,c.createElement)(S.ToolbarItem,{as:S.Button,className:"edit-widgets-header-toolbar__list-view-toggle",icon:Nt,isPressed:i,label:(0,b.__)("List View"),onClick:m})))),(0,c.createElement)("div",{className:"edit-widgets-header__actions"},(0,c.createElement)(xt,null),(0,c.createElement)(te.Slot,{scope:"core/edit-widgets"}),(0,c.createElement)(Yt,null))))};var qt=function(){const{removeNotice:e}=(0,d.useDispatch)(v.store),{notices:t}=(0,d.useSelect)((e=>({notices:e(v.store).getNotices()})),[]),r=t.filter((({isDismissible:e,type:t})=>e&&"default"===t)),n=t.filter((({isDismissible:e,type:t})=>!e&&"default"===t)),a=t.filter((({type:e})=>"snackbar"===e));return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(S.NoticeList,{notices:n,className:"edit-widgets-notices__pinned"}),(0,c.createElement)(S.NoticeList,{notices:r,className:"edit-widgets-notices__dismissible",onRemove:e}),(0,c.createElement)(S.SnackbarList,{notices:a,className:"edit-widgets-notices__snackbar",onRemove:e}))};function Qt({blockEditorSettings:e}){const t=(0,d.useSelect)((e=>!!e(_.store).get("core/edit-widgets","themeStyles")),[]),r=(0,c.useMemo)((()=>t?e.styles:[]),[e,t]);return(0,c.createElement)("div",{className:"edit-widgets-block-editor"},(0,c.createElement)(qt,null),(0,c.createElement)(ue.BlockTools,null,(0,c.createElement)(dt,null),(0,c.createElement)(ue.__unstableEditorStyles,{styles:r}),(0,c.createElement)(ue.BlockSelectionClearer,null,(0,c.createElement)(ue.WritingFlow,null,(0,c.createElement)(ue.ObserveTyping,null,(0,c.createElement)(ue.BlockList,{className:"edit-widgets-main-block-list"}))))))}var Jt=(0,c.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(I.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));var Xt=()=>{const e=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(p.store);return t(pe,_e,"widget-areas")?.blocks[0]?.clientId}),[]);return(0,d.useSelect)((t=>{const{getBlockRootClientId:r,getBlockSelectionEnd:n,getBlockOrder:a,getBlockIndex:i}=t(ue.store),o=t(Ye).__experimentalGetInsertionPoint();if(o.rootClientId)return o;const s=n()||e,c=r(s);return s&&""===c?{rootClientId:s,insertionIndex:a(s).length}:{rootClientId:c,insertionIndex:i(s)+1}}),[e])};function er(){const e=(0,ie.useViewportMatch)("medium","<"),{rootClientId:t,insertionIndex:r}=Xt(),{setIsInserterOpened:n}=(0,d.useDispatch)(Ye),a=(0,c.useCallback)((()=>n(!1)),[n]),i=e?"div":S.VisuallyHidden,[o,s]=(0,ie.__experimentalUseDialog)({onClose:a,focusOnMount:null}),l=(0,c.useRef)();return(0,c.useEffect)((()=>{l.current.focusSearch()}),[]),(0,c.createElement)("div",{ref:o,...s,className:"edit-widgets-layout__inserter-panel"},(0,c.createElement)(i,{className:"edit-widgets-layout__inserter-panel-header"},(0,c.createElement)(S.Button,{icon:Jt,onClick:a,label:(0,b.__)("Close block inserter")})),(0,c.createElement)("div",{className:"edit-widgets-layout__inserter-panel-content"},(0,c.createElement)(ue.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:e,rootClientId:t,__experimentalInsertionIndex:r,ref:l})))}function tr(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Ye),[t,r]=(0,c.useState)(null),n=(0,ie.useFocusOnMount)("firstElement"),a=(0,ie.useFocusReturn)(),i=(0,ie.useFocusReturn)();return(0,c.createElement)("div",{className:"edit-widgets-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==ct.ESCAPE||t.defaultPrevented||(t.preventDefault(),e(!1))}},(0,c.createElement)("div",{className:"edit-widgets-editor__list-view-panel-header",ref:a},(0,c.createElement)("strong",null,(0,b.__)("List View")),(0,c.createElement)(S.Button,{icon:x,label:(0,b.__)("Close"),onClick:()=>e(!1)})),(0,c.createElement)("div",{className:"edit-widgets-editor__list-view-panel-content",ref:(0,ie.useMergeRefs)([i,n,r])},(0,c.createElement)(ue.__experimentalListView,{dropZoneElement:t})))}function rr(){const{isInserterOpen:e,isListViewOpen:t}=(0,d.useSelect)((e=>{const{isInserterOpened:t,isListViewOpened:r}=e(Ye);return{isInserterOpen:t(),isListViewOpen:r()}}),[]);return e?(0,c.createElement)(er,null):t?(0,c.createElement)(tr,null):null}const nr={header:(0,b.__)("Widgets top bar"),body:(0,b.__)("Widgets and blocks"),sidebar:(0,b.__)("Widgets settings"),footer:(0,b.__)("Widgets footer")};var ar=function({blockEditorSettings:e}){const t=(0,ie.useViewportMatch)("medium","<"),r=(0,ie.useViewportMatch)("huge",">="),{setIsInserterOpened:n,setIsListViewOpened:a,closeGeneralSidebar:i}=(0,d.useDispatch)(Ye),{hasBlockBreadCrumbsEnabled:o,hasSidebarEnabled:s,isInserterOpened:l,isListViewOpened:u,previousShortcut:m,nextShortcut:g}=(0,d.useSelect)((e=>({hasSidebarEnabled:!!e(U).getActiveComplementaryArea(Ye.name),isInserterOpened:!!e(Ye).isInserterOpened(),isListViewOpened:!!e(Ye).isListViewOpened(),hasBlockBreadCrumbsEnabled:!!e(_.store).get("core/edit-widgets","showBlockBreadcrumbs"),previousShortcut:e(st.store).getAllShortcutKeyCombinations("core/edit-widgets/previous-region"),nextShortcut:e(st.store).getAllShortcutKeyCombinations("core/edit-widgets/next-region")})),[]);(0,c.useEffect)((()=>{s&&!r&&(n(!1),a(!1))}),[s,r]),(0,c.useEffect)((()=>{!l&&!u||r||i()}),[l,u,r]);const p=u?(0,b.__)("List View"):(0,b.__)("Block Library"),h=u||l;return(0,c.createElement)(ce,{labels:{...nr,secondarySidebar:p},header:(0,c.createElement)(Zt,null),secondarySidebar:h&&(0,c.createElement)(rr,null),sidebar:s&&(0,c.createElement)(ae.Slot,{scope:"core/edit-widgets"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Qt,{blockEditorSettings:e})),footer:o&&!t&&(0,c.createElement)("div",{className:"edit-widgets-layout__footer"},(0,c.createElement)(ue.BlockBreadcrumb,{rootLabelText:(0,b.__)("Widgets")})),shortcuts:{previous:m,next:g}})};function ir(){const e=(0,d.useSelect)((e=>{const{getEditedWidgetAreas:t}=e(Ye);return t()?.length>0}),[]);return(0,c.useEffect)((()=>{const t=t=>{if(e)return t.returnValue=(0,b.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e]),null}function or(){var e;const t=(0,d.useSelect)((e=>!!e(_.store).get("core/edit-widgets","welcomeGuide")),[]),{toggle:r}=(0,d.useDispatch)(_.store),n=(0,d.useSelect)((e=>e(Ye).getWidgetAreas({per_page:-1})),[]);if(!t)return null;const a=n?.every((e=>"wp_inactive_widgets"===e.id||e.widgets.every((e=>e.startsWith("block-"))))),i=null!==(e=n?.filter((e=>"wp_inactive_widgets"!==e.id)).length)&&void 0!==e?e:0;return(0,c.createElement)(S.Guide,{className:"edit-widgets-welcome-guide",contentLabel:(0,b.__)("Welcome to block Widgets"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>r("core/edit-widgets","welcomeGuide"),pages:[{image:(0,c.createElement)(sr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,b.__)("Welcome to block Widgets")),a?(0,c.createElement)(c.Fragment,null,(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,b.sprintf)((0,b._n)("Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.","Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.",i),i))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,b.__)("You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.")),(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,c.createElement)("strong",null,(0,b.__)("Want to stick with the old widgets?"))," ",(0,c.createElement)(S.ExternalLink,{href:(0,b.__)("https://wordpress.org/plugins/classic-widgets/")},(0,b.__)("Get the Classic Widgets plugin.")))))},{image:(0,c.createElement)(sr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,b.__)("Make each block your own")),(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,b.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:(0,c.createElement)(sr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,b.__)("Get to know the block library")),(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,c.createInterpolateElement)((0,b.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the icon."),{InserterIconImage:(0,c.createElement)("img",{className:"edit-widgets-welcome-guide__inserter-icon",alt:(0,b.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,c.createElement)(sr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,b.__)("Learn how to use the block editor")),(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,b.__)("New to the block editor? Want to learn more about using it? "),(0,c.createElement)(S.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,b.__)("Here's a detailed guide."))))}]})}function sr({nonAnimatedSrc:e,animatedSrc:t}){return(0,c.createElement)("picture",{className:"edit-widgets-welcome-guide__image"},(0,c.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,c.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}var cr=function({blockEditorSettings:e}){const{createErrorNotice:t}=(0,d.useDispatch)(v.store);return(0,c.createElement)(it,null,(0,c.createElement)(_t,{blockEditorSettings:e},(0,c.createElement)(ar,{blockEditorSettings:e}),(0,c.createElement)(Ct,null),(0,c.createElement)(S.Popover.Slot,null),(0,c.createElement)($.PluginArea,{onError:function(e){t((0,b.sprintf)((0,b.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}),(0,c.createElement)(ir,null),(0,c.createElement)(or,null)))};const lr=["core/more","core/freeform","core/template-part","core/block"];function dr(e,t){const r=document.getElementById(e),n=(0,c.createRoot)(r),a=(0,g.__experimentalGetCoreBlocks)().filter((e=>!(lr.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")||e.name.startsWith("core/navigation"))));return(0,d.dispatch)(_.store).setDefaults("core/edit-widgets",{fixedToolbar:!1,welcomeGuide:!0,showBlockBreadcrumbs:!0,themeStyles:!0}),(0,d.dispatch)(l.store).__experimentalReapplyBlockTypeFilters(),(0,g.registerCoreBlocks)(a),(0,h.registerLegacyWidgetBlock)(),(0,h.registerLegacyWidgetVariations)(t),gr(s),(0,h.registerWidgetGroupBlock)(),t.__experimentalFetchLinkSuggestions=(e,r)=>(0,p.__experimentalFetchLinkSuggestions)(e,r,t),(0,l.setFreeformContentHandlerName)("core/html"),n.render((0,c.createElement)(cr,{blockEditorSettings:t})),n}const ur=dr;function mr(){m()("wp.editWidgets.reinitializeEditor",{since:"6.2",version:"6.3"})}const gr=e=>{if(!e)return;const{metadata:t,settings:r,name:n}=e;t&&(0,l.unstable__bootstrapServerSideBlockDefinitions)({[n]:t}),(0,l.registerBlockType)(n,r)}}(),(window.wp=window.wp||{}).editWidgets=n}(); \ No newline at end of file +*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),L=(e,t)=>({registry:r,dispatch:n})=>{if(!t)return;r.select(_.store).get(e,"isComplementaryAreaVisible")||r.dispatch(_.store).set(e,"isComplementaryAreaVisible",!0),n({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},T=e=>({registry:t})=>{t.select(_.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(_.store).set(e,"isComplementaryAreaVisible",!1)},P=(e,t)=>({registry:r})=>{if(!t)return;const n=r.select(_.store).get(e,"pinnedItems");!0!==n?.[t]&&r.dispatch(_.store).set(e,"pinnedItems",{...n,[t]:!0})},R=(e,t)=>({registry:r})=>{if(!t)return;const n=r.select(_.store).get(e,"pinnedItems");r.dispatch(_.store).set(e,"pinnedItems",{...n,[t]:!1})};function O(e,t){return function({registry:r}){m()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),r.dispatch(_.store).toggle(e,t)}}function M(e,t,r){return function({registry:n}){m()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),n.dispatch(_.store).set(e,t,!!r)}}function D(e,t){return function({registry:r}){m()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),r.dispatch(_.store).setDefaults(e,t)}}function V(e){return{type:"OPEN_MODAL",name:e}}function F(){return{type:"CLOSE_MODAL"}}const G=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(_.store).get(r,"isComplementaryAreaVisible");if(void 0!==n)return!1===n?null:t?.complementaryAreas?.[r]})),z=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(_.store).get(r,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[r];return n&&void 0===a})),H=(0,d.createRegistrySelector)((e=>(t,r,n)=>{var a;return null===(a=e(_.store).get(r,"pinnedItems")?.[n])||void 0===a||a})),U=(0,d.createRegistrySelector)((e=>(t,r,n)=>(m()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(_.store).get(r,n))));function $(e,t){return e.activeModal===t}var j=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:r,area:n}=t;return e[r]?e:{...e,[r]:n}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:r,area:n}=t;return{...e,[r]:n}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const Y=(0,d.createReduxStore)("core/interface",{reducer:j,actions:e,selectors:t});(0,d.register)(Y);var K=window.wp.plugins,Z=(0,K.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var q=Z((function({as:e=S.Button,scope:t,identifier:r,icon:n,selectedIcon:a,name:i,...o}){const s=e,l=(0,d.useSelect)((e=>e(Y).getActiveComplementaryArea(t)===r),[r]),{enableComplementaryArea:u,disableComplementaryArea:m}=(0,d.useDispatch)(Y);return(0,c.createElement)(s,{icon:a&&l?a:n,onClick:()=>{l?m(t):u(t,r)},...o})}));var Q=({smallScreenTitle:e,children:t,className:r,toggleButtonProps:n})=>{const a=(0,c.createElement)(q,{icon:x,...n});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,c.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),a),(0,c.createElement)("div",{className:k()("components-panel__header","interface-complementary-area-header",r),tabIndex:-1},t,a))};const J=()=>{};function X({name:e,as:t=S.Button,onClick:r,...n}){return(0,c.createElement)(S.Fill,{name:e},(({onClick:e})=>(0,c.createElement)(t,{onClick:r||e?(...t)=>{(r||J)(...t),(e||J)(...t)}:void 0,...n})))}X.Slot=function({name:e,as:t=S.ButtonGroup,fillProps:r={},bubblesVirtually:n,...a}){return(0,c.createElement)(S.Slot,{name:e,bubblesVirtually:n,fillProps:r},(e=>{if(!c.Children.toArray(e).length)return null;const r=[];c.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&r.push(t)}));const n=c.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&r.includes(e.props.__unstableTarget)?null:e));return(0,c.createElement)(t,{...a},n)}))};var ee=X;const te=({__unstableExplicitMenuItem:e,__unstableTarget:t,...r})=>(0,c.createElement)(S.MenuItem,{...r});function re({scope:e,target:t,__unstableExplicitMenuItem:r,...n}){return(0,c.createElement)(q,{as:n=>(0,c.createElement)(ee,{__unstableExplicitMenuItem:r,__unstableTarget:`${e}/${t}`,as:te,name:`${e}/plugin-more-menu`,...n}),role:"menuitemcheckbox",selectedIcon:I,name:t,scope:e,...n})}function ne({scope:e,...t}){return(0,c.createElement)(S.Fill,{name:`PinnedItems/${e}`,...t})}ne.Slot=function({scope:e,className:t,...r}){return(0,c.createElement)(S.Slot,{name:`PinnedItems/${e}`,...r},(e=>e?.length>0&&(0,c.createElement)("div",{className:k()(t,"interface-pinned-items")},e)))};var ae=ne;function ie({scope:e,children:t,className:r}){return(0,c.createElement)(S.Fill,{name:`ComplementaryArea/${e}`},(0,c.createElement)("div",{className:r},t))}const oe=Z((function({children:e,className:t,closeLabel:r=(0,b.__)("Close plugin"),identifier:n,header:a,headerClassName:i,icon:o,isPinnable:s=!0,panelClassName:l,scope:u,name:m,smallScreenTitle:g,title:p,toggleShortcut:h,isActiveByDefault:_,showIconLabels:w=!1}){const{isLoading:f,isActive:E,isPinned:v,activeArea:y,isSmall:A,isLarge:x}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:r,isItemPinned:a}=e(Y),i=t(u);return{isLoading:r(u),isActive:i===n,isPinned:a(u,n),activeArea:i,isSmall:e(N.store).isViewportMatch("< medium"),isLarge:e(N.store).isViewportMatch("large")}}),[n,u]);!function(e,t,r,n,a){const i=(0,c.useRef)(!1),o=(0,c.useRef)(!1),{enableComplementaryArea:s,disableComplementaryArea:l}=(0,d.useDispatch)(Y);(0,c.useEffect)((()=>{n&&a&&!i.current?(l(e),o.current=!0):o.current&&!a&&i.current?(o.current=!1,s(e,t)):o.current&&r&&r!==t&&(o.current=!1),a!==i.current&&(i.current=a)}),[n,a,e,t,r])}(u,n,y,E,A);const{enableComplementaryArea:W,disableComplementaryArea:L,pinItem:T,unpinItem:P}=(0,d.useDispatch)(Y);return(0,c.useEffect)((()=>{_&&void 0===y&&!A?W(u,n):void 0===y&&A&&L(u,n)}),[y,_,u,n,A]),(0,c.createElement)(c.Fragment,null,s&&(0,c.createElement)(ae,{scope:u},v&&(0,c.createElement)(q,{scope:u,identifier:n,isPressed:E&&(!w||x),"aria-expanded":E,"aria-disabled":f,label:p,icon:w?I:o,showTooltip:!w,variant:w?"tertiary":void 0})),m&&s&&(0,c.createElement)(re,{target:m,scope:u,icon:o},p),E&&(0,c.createElement)(ie,{className:k()("interface-complementary-area",t),scope:u},(0,c.createElement)(Q,{className:i,closeLabel:r,onClose:()=>L(u),smallScreenTitle:g,toggleButtonProps:{label:r,shortcut:h,scope:u,identifier:n}},a||(0,c.createElement)(c.Fragment,null,(0,c.createElement)("strong",null,p),s&&(0,c.createElement)(S.Button,{className:"interface-complementary-area__pin-unpin-item",icon:v?C:B,label:v?(0,b.__)("Unpin from toolbar"):(0,b.__)("Pin to toolbar"),onClick:()=>(v?P:T)(u,n),isPressed:v,"aria-expanded":v}))),(0,c.createElement)(S.Panel,{className:l},e)))}));oe.Slot=function({scope:e,...t}){return(0,c.createElement)(S.Slot,{name:`ComplementaryArea/${e}`,...t})};var se=oe,ce=window.wp.compose;function le({children:e,className:t,ariaLabel:r,as:n="div",...a}){return(0,c.createElement)(n,{className:k()("interface-navigable-region",t),"aria-label":r,role:"region",tabIndex:"-1",...a},e)}const de={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var ue=(0,c.forwardRef)((function({isDistractionFree:e,footer:t,header:r,editorNotices:n,sidebar:a,secondarySidebar:i,notices:o,content:s,actions:l,labels:d,className:u,enableRegionNavigation:m=!0,shortcuts:g},p){const h=(0,S.__unstableUseNavigateRegions)(g);!function(e){(0,c.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const _={...{header:(0,b.__)("Header"),body:(0,b.__)("Content"),secondarySidebar:(0,b.__)("Block Library"),sidebar:(0,b.__)("Settings"),actions:(0,b.__)("Publish"),footer:(0,b.__)("Footer")},...d};return(0,c.createElement)("div",{...m?h:{},ref:(0,ce.useMergeRefs)([p,m?h.ref:void 0]),className:k()(u,"interface-interface-skeleton",h.className,!!t&&"has-footer")},(0,c.createElement)("div",{className:"interface-interface-skeleton__editor"},!!r&&(0,c.createElement)(le,{as:S.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":_.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:de,transition:e?{type:"tween",delay:.8}:void 0},r),e&&(0,c.createElement)("div",{className:"interface-interface-skeleton__header"},n),(0,c.createElement)("div",{className:"interface-interface-skeleton__body"},!!i&&(0,c.createElement)(le,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:_.secondarySidebar},i),!!o&&(0,c.createElement)("div",{className:"interface-interface-skeleton__notices"},o),(0,c.createElement)(le,{className:"interface-interface-skeleton__content",ariaLabel:_.body},s),!!a&&(0,c.createElement)(le,{className:"interface-interface-skeleton__sidebar",ariaLabel:_.sidebar},a),!!l&&(0,c.createElement)(le,{className:"interface-interface-skeleton__actions",ariaLabel:_.actions},l))),!!t&&(0,c.createElement)(le,{className:"interface-interface-skeleton__footer",ariaLabel:_.footer},t))}));var me=(0,c.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function ge({as:e=S.DropdownMenu,className:t,label:r=(0,b.__)("Options"),popoverProps:n,toggleProps:a,children:i}){return(0,c.createElement)(e,{className:k()("interface-more-menu-dropdown",t),icon:me,label:r,popoverProps:{placement:"bottom-end",...n,className:k()("interface-more-menu-dropdown__content",n?.className)},toggleProps:{tooltipPosition:"bottom",...a}},(e=>i(e)))}var pe=window.wp.blockEditor;function he(e){if("block"===e.id_base){const t=(0,l.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});return t.length?(0,h.addWidgetIdToBlock)(t[0],e.id):(0,h.addWidgetIdToBlock)((0,l.createBlock)("core/paragraph",{},[]),e.id)}let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},(0,h.addWidgetIdToBlock)((0,l.createBlock)("core/legacy-widget",t,[]),e.id)}function _e(e,t={}){let r;var n,a,i;"core/legacy-widget"===e.name&&(e.attributes.id||e.attributes.instance)?r={...t,id:null!==(n=e.attributes.id)&&void 0!==n?n:t.id,id_base:null!==(a=e.attributes.idBase)&&void 0!==a?a:t.id_base,instance:null!==(i=e.attributes.instance)&&void 0!==i?i:t.instance}:r={...t,id_base:"block",instance:{raw:{content:(0,l.serialize)(e)}}};return delete r.rendered,delete r.rendered_form,r}const we="root",fe="sidebar",Ee="postType",be=e=>`widget-area-${e}`;const ve="core/edit-widgets",ye=(e,t)=>({registry:r})=>{const n=((e,t)=>({id:e,slug:e,status:"draft",type:"page",blocks:t,meta:{widgetAreaId:e}}))(e,t);return r.dispatch(p.store).receiveEntityRecords(we,Ee,n,{id:n.id},!1),n},ke=()=>async({select:e,dispatch:t,registry:r})=>{const n=e.getEditedWidgetAreas();if(n?.length)try{await t.saveWidgetAreas(n),r.dispatch(v.store).createSuccessNotice((0,b.__)("Widgets saved."),{type:"snackbar"})}catch(e){r.dispatch(v.store).createErrorNotice((0,b.sprintf)((0,b.__)("There was an error. %s"),e.message),{type:"snackbar"})}},Se=e=>async({dispatch:t,registry:r})=>{try{for(const r of e)await t.saveWidgetArea(r.id)}finally{await r.dispatch(p.store).finishResolution("getEntityRecord",we,fe,{per_page:-1})}},Ae=e=>async({dispatch:t,select:r,registry:n})=>{const a=r.getWidgets(),i=n.select(p.store).getEditedEntityRecord(we,Ee,be(e)),o=Object.values(a).filter((({sidebar:t})=>t===e)),s=[],c=i.blocks.filter((e=>{const{id:t}=e.attributes;if("core/legacy-widget"===e.name&&t){if(s.includes(t))return!1;s.push(t)}return!0})),l=[];for(const e of o){r.getWidgetAreaForWidgetId(e.id)||l.push(e)}const d=[],u=[],m=[];for(let t=0;te("root","widget",i)))}else u.push((({saveEntityRecord:t})=>t("root","widget",{...s,sidebar:e})));d.push({block:r,position:t,clientId:r.clientId})}for(const e of l)u.push((({deleteEntityRecord:t})=>t("root","widget",e.id,{force:!0})));const g=(await n.dispatch(p.store).__experimentalBatch(u)).filter((e=>!e.hasOwnProperty("deleted"))),_=[];for(let e=0;e({registry:t})=>{t.dispatch(p.store).saveEditedEntityRecord(we,fe,e,{throwOnError:!0})};function Ce(e,t){return{type:"SET_WIDGET_ID_FOR_CLIENT_ID",clientId:e,widgetId:t}}function Be(e){return{type:"SET_WIDGET_AREAS_OPEN_STATE",widgetAreasOpenState:e}}function Ne(e,t){return{type:"SET_IS_WIDGET_AREA_OPEN",clientId:e,isOpen:t}}function xe(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function We(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}const Le=()=>({registry:e})=>{e.dispatch(Y).disableComplementaryArea(ve)},Te=(e,t)=>async({dispatch:r,select:n,registry:a})=>{const i=a.select(pe.store).getBlockRootClientId(e),o=a.select(pe.store).getBlocks().find((({attributes:e})=>e.id===t)).clientId,s=a.select(pe.store).getBlockOrder(o).length;n.getIsWidgetAreaOpen(o)||r.setIsWidgetAreaOpen(o,!0),a.dispatch(pe.store).moveBlocksToPosition([e],i,o,s)},Pe=()=>async({dispatch:e,registry:t})=>{const r={per_page:-1},n=[],a=(await t.resolveSelect(p.store).getEntityRecords(we,fe,r)).sort(((e,t)=>"wp_inactive_widgets"===e.id?1:"wp_inactive_widgets"===t.id?-1:0));for(const t of a)n.push((0,l.createBlock)("core/widget-area",{id:t.id,name:t.name})),t.widgets.length||e(ye(be(t.id),[]));const i={};n.forEach(((e,t)=>{i[e.clientId]=0===t})),e(Be(i)),e(ye("widget-areas",n))},Re=()=>async({dispatch:e,registry:t})=>{const r={per_page:-1,_embed:"about"},n=await t.resolveSelect(p.store).getEntityRecords("root","widget",r),a={};for(const e of n){const t=he(e);a[e.sidebar]=a[e.sidebar]||[],a[e.sidebar].push(t)}for(const t in a)a.hasOwnProperty(t)&&e(ye(be(t),a[t]))},Oe=(0,d.createRegistrySelector)((e=>()=>e(p.store).getEntityRecords("root","widget",{per_page:-1,_embed:"about"})?.reduce(((e,t)=>({...e,[t.id]:t})),{})||{})),Me=(0,d.createRegistrySelector)((e=>(t,r)=>e(ve).getWidgets()[r])),De=(0,d.createRegistrySelector)((e=>()=>{const t={per_page:-1};return e(p.store).getEntityRecords(we,fe,t)})),Ve=(0,d.createRegistrySelector)((e=>(t,r)=>e(ve).getWidgetAreas().find((t=>e(p.store).getEditedEntityRecord(we,Ee,be(t.id)).blocks.map((e=>(0,h.getWidgetIdFromBlock)(e))).includes(r))))),Fe=(0,d.createRegistrySelector)((e=>(t,r)=>{const{getBlock:n,getBlockName:a,getBlockParents:i}=e(pe.store);return n(i(r).find((e=>"core/widget-area"===a(e))))})),Ge=(0,d.createRegistrySelector)((e=>(t,r)=>{let n=e(ve).getWidgetAreas();return n?(r&&(n=n.filter((({id:e})=>r.includes(e)))),n.filter((({id:t})=>e(p.store).hasEditsForEntityRecord(we,Ee,be(t)))).map((({id:t})=>e(p.store).getEditedEntityRecord(we,fe,t)))):[]})),ze=(0,d.createRegistrySelector)((e=>(t,r=null)=>{const n=[],a=e(ve).getWidgetAreas();for(const t of a){const a=e(p.store).getEditedEntityRecord(we,Ee,be(t.id));for(const e of a.blocks)"core/legacy-widget"!==e.name||r&&e.attributes?.referenceWidgetName!==r||n.push(e)}return n})),He=(0,d.createRegistrySelector)((e=>()=>{const t=e(ve).getWidgetAreas()?.map((({id:e})=>e));if(!t)return!1;for(const r of t){if(e(p.store).isSavingEntityRecord(we,fe,r))return!0}const r=[...Object.keys(e(ve).getWidgets()),void 0];for(const t of r){if(e(p.store).isSavingEntityRecord("root","widget",t))return!0}return!1})),Ue=(e,t)=>{const{widgetAreasOpenState:r}=e;return!!r[t]};function $e(e){return!!e.blockInserterPanel}function je(e){const{rootClientId:t,insertionIndex:r}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:r}}const Ye=(0,d.createRegistrySelector)((e=>(t,r)=>{const n=e(pe.store).getBlocks(),[a]=n;return e(pe.store).canInsertBlockType(r,a.clientId)}));function Ke(e){return e.listViewPanel}const Ze={reducer:E,selectors:o,resolvers:i,actions:a},qe=(0,d.createReduxStore)(ve,Ze);(0,d.register)(qe),f().use((function(e,t){return 0===e.path?.indexOf("/wp/v2/types/widget-area")?Promise.resolve({}):t(e)}));var Qe=window.wp.hooks;const Je=(0,ce.createHigherOrderComponent)((e=>t=>{const{clientId:r,name:n}=t,{widgetAreas:a,currentWidgetAreaId:i,canInsertBlockInWidgetArea:o}=(0,d.useSelect)((e=>{if("core/widget-area"===n)return{};const t=e(qe),a=t.getParentWidgetAreaBlock(r);return{widgetAreas:t.getWidgetAreas(),currentWidgetAreaId:a?.attributes?.id,canInsertBlockInWidgetArea:t.canInsertBlockInWidgetArea(n)}}),[r,n]),{moveBlockToWidgetArea:s}=(0,d.useDispatch)(qe),l="core/widget-area"!==n&&a?.length>1&&o;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),l&&(0,c.createElement)(pe.BlockControls,null,(0,c.createElement)(h.MoveToWidgetArea,{widgetAreas:a,currentWidgetAreaId:i,onSelect:e=>{s(t.clientId,e)}})))}),"withMoveToWidgetAreaToolbarItem");(0,Qe.addFilter)("editor.BlockEdit","core/edit-widgets/block-edit",Je);var Xe=window.wp.mediaUtils;(0,Qe.addFilter)("editor.MediaUpload","core/edit-widgets/replace-media-upload",(()=>Xe.MediaUpload));var et=e=>{const[t,r]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(e){i(e)}function a(){r(!1)}function i(t){e.current.contains(t.target)?r(!0):r(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",a),t.addEventListener("dragenter",i),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",a),t.removeEventListener("dragenter",i)}}),[]),t};function tt({id:e}){const[t,r,n]=(0,p.useEntityBlockEditor)("root","postType"),a=(0,c.useRef)(),i=et(a),o=(0,pe.useInnerBlocksProps)({ref:a},{value:t,onInput:r,onChange:n,templateLock:!1,renderAppender:pe.InnerBlocks.ButtonBlockAppender});return(0,c.createElement)("div",{"data-widget-area-id":e,className:k()("wp-block-widget-area__inner-blocks block-editor-inner-blocks editor-styles-wrapper",{"wp-block-widget-area__highlight-drop-zone":i})},(0,c.createElement)("div",{...o}))}const rt=e=>{const[t,r]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{const{ownerDocument:t}=e.current;function n(){r(!0)}function a(){r(!1)}return t.addEventListener("dragstart",n),t.addEventListener("dragend",a),()=>{t.removeEventListener("dragstart",n),t.removeEventListener("dragend",a)}}),[]),t},nt={name:"core/widget-area",category:"widgets",attributes:{id:{type:"string"},name:{type:"string"}},supports:{html:!1,inserter:!1,customClassName:!1,reusable:!1,__experimentalToolbar:!1,__experimentalParentSelector:!1,__experimentalDisableBlockOverlay:!0},editorStyle:"wp-block-widget-area-editor",style:"wp-block-widget-area"},{name:at}=nt,it={title:(0,b.__)("Widget Area"),description:(0,b.__)("A widget area container."),__experimentalLabel:({name:e})=>e,edit:function({clientId:e,className:t,attributes:{id:r,name:n}}){const a=(0,d.useSelect)((t=>t(qe).getIsWidgetAreaOpen(e)),[e]),{setIsWidgetAreaOpen:i}=(0,d.useDispatch)(qe),o=(0,c.useRef)(),s=(0,c.useCallback)((t=>i(e,t)),[e]),l=rt(o),u=et(o),[m,g]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{l?u&&!a?(s(!0),g(!0)):!u&&a&&m&&s(!1):g(!1)}),[a,l,u,m]),(0,c.createElement)(S.Panel,{className:t,ref:o},(0,c.createElement)(S.PanelBody,{title:n,opened:a,onToggle:()=>{i(e,!a)},scrollAfterOpen:!l},(({opened:e})=>(0,c.createElement)(S.__unstableDisclosureContent,{className:"wp-block-widget-area__panel-body-content",visible:e},(0,c.createElement)(p.EntityProvider,{kind:"root",type:"postType",id:`widget-area-${r}`},(0,c.createElement)(tt,{id:r}))))))}};function ot({text:e,children:t}){const r=(0,ce.useCopyToClipboard)(e);return(0,c.createElement)(S.Button,{variant:"secondary",ref:r},t)}function st({message:e,error:t}){const r=[(0,c.createElement)(ot,{key:"copy-error",text:t.stack},(0,b.__)("Copy Error"))];return(0,c.createElement)(pe.Warning,{className:"edit-widgets-error-boundary",actions:r},e)}class ct extends c.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,Qe.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,c.createElement)(st,{message:(0,b.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}var lt=window.wp.reusableBlocks,dt=window.wp.keyboardShortcuts,ut=window.wp.keycodes;function mt(){const{redo:e,undo:t}=(0,d.useDispatch)(p.store),{saveEditedWidgetAreas:r}=(0,d.useDispatch)(qe),{replaceBlocks:n}=(0,d.useDispatch)(pe.store),{getBlockName:a,getSelectedBlockClientId:i,getBlockAttributes:o}=(0,d.useSelect)(pe.store),s=(e,t)=>{e.preventDefault();const r=0===t?"core/paragraph":"core/heading",s=i();if(null===s)return;const c=a(s);if("core/paragraph"!==c&&"core/heading"!==c)return;const d=o(s),u="core/paragraph"===c?"align":"textAlign",m="core/paragraph"===r?"align":"textAlign";n(s,(0,l.createBlock)(r,{level:t,content:d.content,[m]:d[u]}))};return(0,dt.useShortcut)("core/edit-widgets/undo",(e=>{t(),e.preventDefault()})),(0,dt.useShortcut)("core/edit-widgets/redo",(t=>{e(),t.preventDefault()})),(0,dt.useShortcut)("core/edit-widgets/save",(e=>{e.preventDefault(),r()})),(0,dt.useShortcut)("core/edit-widgets/transform-heading-to-paragraph",(e=>s(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,dt.useShortcut)(`core/edit-widgets/transform-paragraph-to-heading-${e}`,(t=>s(t,e)))})),null}mt.Register=function(){const{registerShortcut:e}=(0,d.useDispatch)(dt.store);return(0,c.useEffect)((()=>{e({name:"core/edit-widgets/undo",category:"global",description:(0,b.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-widgets/redo",category:"global",description:(0,b.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,ut.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-widgets/save",category:"global",description:(0,b.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-widgets/keyboard-shortcuts",category:"main",description:(0,b.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-widgets/next-region",category:"global",description:(0,b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-widgets/previous-region",category:"global",description:(0,b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-widgets/transform-heading-to-paragraph",category:"block-library",description:(0,b.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-widgets/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,b.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})}))}),[e]),null};var gt=mt;var pt=()=>(0,d.useSelect)((e=>{const{getBlockSelectionEnd:t,getBlockName:r}=e(pe.store),n=t();if("core/widget-area"===r(n))return n;const{getParentWidgetAreaBlock:a}=e(qe),i=a(n)?.clientId;if(i)return i;const{getEntityRecord:o}=e(p.store);return o(we,Ee,"widget-areas")?.blocks[0]?.clientId}),[]);var ht=window.wp.privateApis;const{lock:_t,unlock:wt}=(0,ht.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-widgets"),{ExperimentalBlockEditorProvider:ft}=wt(pe.privateApis);function Et({blockEditorSettings:e,children:t,...r}){const n=(0,p.useResourcePermissions)("media"),{reusableBlocks:a,isFixedToolbarActive:i,keepCaretInsideBlock:o}=(0,d.useSelect)((e=>({widgetAreas:e(qe).getWidgetAreas(),widgets:e(qe).getWidgets(),reusableBlocks:[],isFixedToolbarActive:!!e(_.store).get("core/edit-widgets","fixedToolbar"),keepCaretInsideBlock:!!e(_.store).get("core/edit-widgets","keepCaretInsideBlock")})),[]),{setIsInserterOpened:s}=(0,d.useDispatch)(qe),l=(0,c.useMemo)((()=>{let t;return n.canCreate&&(t=({onError:t,...r})=>{(0,Xe.uploadMedia)({wpAllowedMimeTypes:e.allowedMimeTypes,onError:({message:e})=>t(e),...r})}),{...e,__experimentalReusableBlocks:a,hasFixedToolbar:i,keepCaretInsideBlock:o,mediaUpload:t,templateLock:"all",__experimentalSetIsInserterOpened:s}}),[e,i,o,n.canCreate,a,s]),u=pt(),[m,g,h]=(0,p.useEntityBlockEditor)(we,Ee,{id:"widget-areas"});return(0,c.createElement)(dt.ShortcutProvider,null,(0,c.createElement)(pe.BlockEditorKeyboardShortcuts.Register,null),(0,c.createElement)(gt.Register,null),(0,c.createElement)(S.SlotFillProvider,null,(0,c.createElement)(ft,{value:m,onInput:g,onChange:h,settings:l,useSubRegistry:!1,...r},(0,c.createElement)(pe.CopyHandler,null,t),(0,c.createElement)(lt.ReusableBlocksMenuItems,{rootClientId:u}))))}var bt=(0,c.createElement)(A.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var vt=(0,c.createElement)(A.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));var yt=(0,c.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),kt=window.wp.url,St=window.wp.dom;function At({selectedWidgetAreaId:e}){const t=(0,d.useSelect)((e=>e(qe).getWidgetAreas()),[]),r=(0,c.useMemo)((()=>e&&t?.find((t=>t.id===e))),[e,t]);let n;return n=r?"wp_inactive_widgets"===e?(0,b.__)("Blocks in this Widget Area will not be displayed in your site."):r.description:(0,b.__)("Widget Areas are global parts in your site’s layout that can accept blocks. These vary by theme, but are typically parts like your Sidebar or Footer."),(0,c.createElement)("div",{className:"edit-widgets-widget-areas"},(0,c.createElement)("div",{className:"edit-widgets-widget-areas__top-container"},(0,c.createElement)(pe.BlockIcon,{icon:yt}),(0,c.createElement)("div",null,(0,c.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,St.safeHTML)(n)}}),0===t?.length&&(0,c.createElement)("p",null,(0,b.__)("Your theme does not contain any Widget Areas.")),!r&&(0,c.createElement)(S.Button,{href:(0,kt.addQueryArgs)("customize.php",{"autofocus[panel]":"widgets",return:window.location.pathname}),variant:"tertiary"},(0,b.__)("Manage with live preview")))))}const It=c.Platform.select({web:!0,native:!1}),Ct="edit-widgets/block-inspector",Bt="edit-widgets/block-areas";function Nt({identifier:e,label:t,isActive:r}){const{enableComplementaryArea:n}=(0,d.useDispatch)(Y);return(0,c.createElement)(S.Button,{onClick:()=>n(qe.name,e),className:k()("edit-widgets-sidebar__panel-tab",{"is-active":r}),"aria-label":r?(0,b.sprintf)((0,b.__)("%s (selected)"),t):t,"data-label":t},t)}function xt(){const{enableComplementaryArea:e}=(0,d.useDispatch)(Y),{currentArea:t,hasSelectedNonAreaBlock:r,isGeneralSidebarOpen:n,selectedWidgetAreaBlock:a}=(0,d.useSelect)((e=>{const{getSelectedBlock:t,getBlock:r,getBlockParentsByBlockName:n}=e(pe.store),{getActiveComplementaryArea:a}=e(Y),i=t(),o=a(qe.name);let s,c=o;return c||(c=i?Ct:Bt),i&&(s="core/widget-area"===i.name?i:r(n(i.clientId,"core/widget-area")[0])),{currentArea:c,hasSelectedNonAreaBlock:!(!i||"core/widget-area"===i.name),isGeneralSidebarOpen:!!o,selectedWidgetAreaBlock:s}}),[]);return(0,c.useEffect)((()=>{r&&t===Bt&&n&&e("core/edit-widgets",Ct),!r&&t===Ct&&n&&e("core/edit-widgets",Bt)}),[r,e]),(0,c.createElement)(se,{className:"edit-widgets-sidebar",header:(0,c.createElement)("ul",null,(0,c.createElement)("li",null,(0,c.createElement)(Nt,{identifier:Bt,label:a?a.attributes.name:(0,b.__)("Widget Areas"),isActive:t===Bt})),(0,c.createElement)("li",null,(0,c.createElement)(Nt,{identifier:Ct,label:(0,b.__)("Block"),isActive:t===Ct}))),headerClassName:"edit-widgets-sidebar__panel-tabs",title:(0,b.__)("Settings"),closeLabel:(0,b.__)("Close Settings"),scope:"core/edit-widgets",identifier:t,icon:(0,b.isRTL)()?bt:vt,isActiveByDefault:It},t===Bt&&(0,c.createElement)(At,{selectedWidgetAreaId:a?.attributes.id}),t===Ct&&(r?(0,c.createElement)(pe.BlockInspector,null):(0,c.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,b.__)("No block selected."))))}var Wt=(0,c.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var Lt=(0,c.createElement)(A.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(A.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var Tt=function(){const{hasEditedWidgetAreaIds:e,isSaving:t}=(0,d.useSelect)((e=>{const{getEditedWidgetAreas:t,isSavingWidgetAreas:r}=e(qe);return{hasEditedWidgetAreaIds:t()?.length>0,isSaving:r()}}),[]),{saveEditedWidgetAreas:r}=(0,d.useDispatch)(qe);return(0,c.createElement)(S.Button,{variant:"primary",isBusy:t,"aria-disabled":t,onClick:t?void 0:r,disabled:!e},t?(0,b.__)("Saving…"):(0,b.__)("Update"))};var Pt=(0,c.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var Rt=(0,c.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));function Ot(){const e=(0,d.useSelect)((e=>e(p.store).hasUndo()),[]),{undo:t}=(0,d.useDispatch)(p.store);return(0,c.createElement)(S.ToolbarButton,{icon:(0,b.isRTL)()?Rt:Pt,label:(0,b.__)("Undo"),shortcut:ut.displayShortcut.primary("z"),"aria-disabled":!e,onClick:e?t:void 0})}function Mt(){const e=(0,ut.isAppleOS)()?ut.displayShortcut.primaryShift("z"):ut.displayShortcut.primary("y"),t=(0,d.useSelect)((e=>e(p.store).hasRedo()),[]),{redo:r}=(0,d.useDispatch)(p.store);return(0,c.createElement)(S.ToolbarButton,{icon:(0,b.isRTL)()?Pt:Rt,label:(0,b.__)("Redo"),shortcut:e,"aria-disabled":!t,onClick:t?r:void 0})}var Dt=(0,c.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const Vt=[{keyCombination:{modifier:"primary",character:"b"},description:(0,b.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,b.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,b.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,b.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,b.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,b.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,b.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,b.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,b.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,b.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Ft({keyCombination:e,forceAriaLabel:t}){const r=e.modifier?ut.displayShortcutList[e.modifier](e.character):e.character,n=e.modifier?ut.shortcutAriaLabel[e.modifier](e.character):e.character,a=Array.isArray(r)?r:[r];return(0,c.createElement)("kbd",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||n},a.map(((e,t)=>"+"===e?(0,c.createElement)(c.Fragment,{key:t},e):(0,c.createElement)("kbd",{key:t,className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-key"},e))))}var Gt=function({description:e,keyCombination:t,aliases:r=[],ariaLabel:n}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-description"},e),(0,c.createElement)("div",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-term"},(0,c.createElement)(Ft,{keyCombination:t,forceAriaLabel:n}),r.map(((e,t)=>(0,c.createElement)(Ft,{keyCombination:e,forceAriaLabel:n,key:t})))))};var zt=function({name:e}){const{keyCombination:t,description:r,aliases:n}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:r,getShortcutDescription:n,getShortcutAliases:a}=t(dt.store);return{keyCombination:r(e),aliases:a(e),description:n(e)}}),[e]);return t?(0,c.createElement)(Gt,{keyCombination:t,description:r,aliases:n}):null};const Ht=({shortcuts:e})=>(0,c.createElement)("ul",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,c.createElement)("li",{className:"edit-widgets-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,c.createElement)(zt,{name:e}):(0,c.createElement)(Gt,{...e}))))),Ut=({title:e,shortcuts:t,className:r})=>(0,c.createElement)("section",{className:k()("edit-widgets-keyboard-shortcut-help-modal__section",r)},!!e&&(0,c.createElement)("h2",{className:"edit-widgets-keyboard-shortcut-help-modal__section-title"},e),(0,c.createElement)(Ht,{shortcuts:t})),$t=({title:e,categoryName:t,additionalShortcuts:r=[]})=>{const n=(0,d.useSelect)((e=>e(dt.store).getCategoryShortcuts(t)),[t]);return(0,c.createElement)(Ut,{title:e,shortcuts:n.concat(r)})};function jt({isModalActive:e,toggleModal:t}){return(0,dt.useShortcut)("core/edit-widgets/keyboard-shortcuts",t,{bindGlobal:!0}),e?(0,c.createElement)(S.Modal,{className:"edit-widgets-keyboard-shortcut-help-modal",title:(0,b.__)("Keyboard shortcuts"),onRequestClose:t},(0,c.createElement)(Ut,{className:"edit-widgets-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-widgets/keyboard-shortcuts"]}),(0,c.createElement)($t,{title:(0,b.__)("Global shortcuts"),categoryName:"global"}),(0,c.createElement)($t,{title:(0,b.__)("Selection shortcuts"),categoryName:"selection"}),(0,c.createElement)($t,{title:(0,b.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,b.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,b.__)("Forward-slash")}]}),(0,c.createElement)(Ut,{title:(0,b.__)("Text formatting"),shortcuts:Vt})):null}const{Fill:Yt,Slot:Kt}=(0,S.createSlotFill)("EditWidgetsToolsMoreMenuGroup");Yt.Slot=({fillProps:e})=>(0,c.createElement)(Kt,{fillProps:e},(e=>e.length>0&&e));var Zt=Yt;function qt(){const[e,t]=(0,c.useState)(!1),r=()=>t(!e);(0,dt.useShortcut)("core/edit-widgets/keyboard-shortcuts",r);const n=(0,ce.useViewportMatch)("medium");return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(ge,null,(e=>(0,c.createElement)(c.Fragment,null,n&&(0,c.createElement)(S.MenuGroup,{label:(0,b._x)("View","noun")},(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"fixedToolbar",label:(0,b.__)("Top toolbar"),info:(0,b.__)("Access all block and document tools in a single place"),messageActivated:(0,b.__)("Top toolbar activated"),messageDeactivated:(0,b.__)("Top toolbar deactivated")})),(0,c.createElement)(S.MenuGroup,{label:(0,b.__)("Tools")},(0,c.createElement)(S.MenuItem,{onClick:()=>{t(!0)},shortcut:ut.displayShortcut.access("h")},(0,b.__)("Keyboard shortcuts")),(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"welcomeGuide",label:(0,b.__)("Welcome Guide")}),(0,c.createElement)(S.MenuItem,{role:"menuitem",icon:Dt,href:(0,b.__)("https://wordpress.org/documentation/article/block-based-widgets-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,b.__)("Help"),(0,c.createElement)(S.VisuallyHidden,{as:"span"},(0,b.__)("(opens in a new tab)"))),(0,c.createElement)(Zt.Slot,{fillProps:{onClose:e}})),(0,c.createElement)(S.MenuGroup,{label:(0,b.__)("Preferences")},(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"keepCaretInsideBlock",label:(0,b.__)("Contain text cursor inside block"),info:(0,b.__)("Aids screen readers by stopping text caret from leaving blocks."),messageActivated:(0,b.__)("Contain text cursor inside block activated"),messageDeactivated:(0,b.__)("Contain text cursor inside block deactivated")}),(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"themeStyles",info:(0,b.__)("Make the editor look like your theme."),label:(0,b.__)("Use theme styles")}),n&&(0,c.createElement)(_.PreferenceToggleMenuItem,{scope:"core/edit-widgets",name:"showBlockBreadcrumbs",label:(0,b.__)("Display block breadcrumbs"),info:(0,b.__)("Shows block breadcrumbs at the bottom of the editor."),messageActivated:(0,b.__)("Display block breadcrumbs activated"),messageDeactivated:(0,b.__)("Display block breadcrumbs deactivated")}))))),(0,c.createElement)(jt,{isModalActive:e,toggleModal:r}))}const{useShouldContextualToolbarShow:Qt}=wt(pe.privateApis);var Jt=function(){const e=(0,ce.useViewportMatch)("medium"),t=(0,c.useRef)(),r=pt(),n=(0,d.useSelect)((e=>e(qe).getIsWidgetAreaOpen(r)),[r]),{isInserterOpen:a,isListViewOpen:i}=(0,d.useSelect)((e=>{const{isInserterOpened:t,isListViewOpened:r}=e(qe);return{isInserterOpen:t(),isListViewOpen:r()}}),[]),{setIsWidgetAreaOpen:o,setIsInserterOpened:s,setIsListViewOpened:l}=(0,d.useDispatch)(qe),{selectBlock:u}=(0,d.useDispatch)(pe.store),m=(0,c.useCallback)((()=>l(!i)),[l,i]),{shouldShowContextualToolbar:g,canFocusHiddenToolbar:p,fixedToolbarCanBeFocused:h}=Qt(),_=g||p||h;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"edit-widgets-header"},(0,c.createElement)("div",{className:"edit-widgets-header__navigable-toolbar-wrapper"},e&&(0,c.createElement)("h1",{className:"edit-widgets-header__title"},(0,b.__)("Widgets")),!e&&(0,c.createElement)(S.VisuallyHidden,{as:"h1",className:"edit-widgets-header__title"},(0,b.__)("Widgets")),(0,c.createElement)(pe.NavigableToolbar,{className:"edit-widgets-header-toolbar","aria-label":(0,b.__)("Document tools"),shouldUseKeyboardFocusShortcut:!_},(0,c.createElement)(S.ToolbarItem,{ref:t,as:S.Button,className:"edit-widgets-header-toolbar__inserter-toggle",variant:"primary",isPressed:a,onMouseDown:e=>{e.preventDefault()},onClick:()=>{a?s(!1):(n||(u(r),o(r,!0)),window.requestAnimationFrame((()=>s(!0))))},icon:Wt,label:(0,b._x)("Toggle block inserter","Generic label for block inserter button")}),e&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Ot,null),(0,c.createElement)(Mt,null),(0,c.createElement)(S.ToolbarItem,{as:S.Button,className:"edit-widgets-header-toolbar__list-view-toggle",icon:Lt,isPressed:i,label:(0,b.__)("List View"),onClick:m})))),(0,c.createElement)("div",{className:"edit-widgets-header__actions"},(0,c.createElement)(Tt,null),(0,c.createElement)(ae.Slot,{scope:"core/edit-widgets"}),(0,c.createElement)(qt,null))))};var Xt=function(){const{removeNotice:e}=(0,d.useDispatch)(v.store),{notices:t}=(0,d.useSelect)((e=>({notices:e(v.store).getNotices()})),[]),r=t.filter((({isDismissible:e,type:t})=>e&&"default"===t)),n=t.filter((({isDismissible:e,type:t})=>!e&&"default"===t)),a=t.filter((({type:e})=>"snackbar"===e));return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(S.NoticeList,{notices:n,className:"edit-widgets-notices__pinned"}),(0,c.createElement)(S.NoticeList,{notices:r,className:"edit-widgets-notices__dismissible",onRemove:e}),(0,c.createElement)(S.SnackbarList,{notices:a,className:"edit-widgets-notices__snackbar",onRemove:e}))};function er({blockEditorSettings:e}){const t=(0,d.useSelect)((e=>!!e(_.store).get("core/edit-widgets","themeStyles")),[]),r=(0,c.useMemo)((()=>t?e.styles:[]),[e,t]);return(0,c.createElement)("div",{className:"edit-widgets-block-editor"},(0,c.createElement)(Xt,null),(0,c.createElement)(pe.BlockTools,null,(0,c.createElement)(gt,null),(0,c.createElement)(pe.__unstableEditorStyles,{styles:r}),(0,c.createElement)(pe.BlockSelectionClearer,null,(0,c.createElement)(pe.WritingFlow,null,(0,c.createElement)(pe.ObserveTyping,null,(0,c.createElement)(pe.BlockList,{className:"edit-widgets-main-block-list"}))))))}var tr=(0,c.createElement)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(A.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));var rr=()=>{const e=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(p.store);return t(we,Ee,"widget-areas")?.blocks[0]?.clientId}),[]);return(0,d.useSelect)((t=>{const{getBlockRootClientId:r,getBlockSelectionEnd:n,getBlockOrder:a,getBlockIndex:i}=t(pe.store),o=t(qe).__experimentalGetInsertionPoint();if(o.rootClientId)return o;const s=n()||e,c=r(s);return s&&""===c?{rootClientId:s,insertionIndex:a(s).length}:{rootClientId:c,insertionIndex:i(s)+1}}),[e])};function nr(){const e=(0,ce.useViewportMatch)("medium","<"),{rootClientId:t,insertionIndex:r}=rr(),{setIsInserterOpened:n}=(0,d.useDispatch)(qe),a=(0,c.useCallback)((()=>n(!1)),[n]),i=e?"div":S.VisuallyHidden,[o,s]=(0,ce.__experimentalUseDialog)({onClose:a,focusOnMount:null}),l=(0,c.useRef)();return(0,c.useEffect)((()=>{l.current.focusSearch()}),[]),(0,c.createElement)("div",{ref:o,...s,className:"edit-widgets-layout__inserter-panel"},(0,c.createElement)(i,{className:"edit-widgets-layout__inserter-panel-header"},(0,c.createElement)(S.Button,{icon:tr,onClick:a,label:(0,b.__)("Close block inserter")})),(0,c.createElement)("div",{className:"edit-widgets-layout__inserter-panel-content"},(0,c.createElement)(pe.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:e,rootClientId:t,__experimentalInsertionIndex:r,ref:l})))}function ar(){const{setIsListViewOpened:e}=(0,d.useDispatch)(qe),[t,r]=(0,c.useState)(null),n=(0,ce.useFocusOnMount)("firstElement"),a=(0,ce.useFocusReturn)(),i=(0,ce.useFocusReturn)();return(0,c.createElement)("div",{className:"edit-widgets-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==ut.ESCAPE||t.defaultPrevented||(t.preventDefault(),e(!1))}},(0,c.createElement)("div",{className:"edit-widgets-editor__list-view-panel-header",ref:a},(0,c.createElement)("strong",null,(0,b.__)("List View")),(0,c.createElement)(S.Button,{icon:x,label:(0,b.__)("Close"),onClick:()=>e(!1)})),(0,c.createElement)("div",{className:"edit-widgets-editor__list-view-panel-content",ref:(0,ce.useMergeRefs)([i,n,r])},(0,c.createElement)(pe.__experimentalListView,{dropZoneElement:t})))}function ir(){const{isInserterOpen:e,isListViewOpen:t}=(0,d.useSelect)((e=>{const{isInserterOpened:t,isListViewOpened:r}=e(qe);return{isInserterOpen:t(),isListViewOpen:r()}}),[]);return e?(0,c.createElement)(nr,null):t?(0,c.createElement)(ar,null):null}const or={header:(0,b.__)("Widgets top bar"),body:(0,b.__)("Widgets and blocks"),sidebar:(0,b.__)("Widgets settings"),footer:(0,b.__)("Widgets footer")};var sr=function({blockEditorSettings:e}){const t=(0,ce.useViewportMatch)("medium","<"),r=(0,ce.useViewportMatch)("huge",">="),{setIsInserterOpened:n,setIsListViewOpened:a,closeGeneralSidebar:i}=(0,d.useDispatch)(qe),{hasBlockBreadCrumbsEnabled:o,hasSidebarEnabled:s,isInserterOpened:l,isListViewOpened:u,previousShortcut:m,nextShortcut:g}=(0,d.useSelect)((e=>({hasSidebarEnabled:!!e(Y).getActiveComplementaryArea(qe.name),isInserterOpened:!!e(qe).isInserterOpened(),isListViewOpened:!!e(qe).isListViewOpened(),hasBlockBreadCrumbsEnabled:!!e(_.store).get("core/edit-widgets","showBlockBreadcrumbs"),previousShortcut:e(dt.store).getAllShortcutKeyCombinations("core/edit-widgets/previous-region"),nextShortcut:e(dt.store).getAllShortcutKeyCombinations("core/edit-widgets/next-region")})),[]);(0,c.useEffect)((()=>{s&&!r&&(n(!1),a(!1))}),[s,r]),(0,c.useEffect)((()=>{!l&&!u||r||i()}),[l,u,r]);const p=u?(0,b.__)("List View"):(0,b.__)("Block Library"),h=u||l;return(0,c.createElement)(ue,{labels:{...or,secondarySidebar:p},header:(0,c.createElement)(Jt,null),secondarySidebar:h&&(0,c.createElement)(ir,null),sidebar:s&&(0,c.createElement)(se.Slot,{scope:"core/edit-widgets"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(er,{blockEditorSettings:e})),footer:o&&!t&&(0,c.createElement)("div",{className:"edit-widgets-layout__footer"},(0,c.createElement)(pe.BlockBreadcrumb,{rootLabelText:(0,b.__)("Widgets")})),shortcuts:{previous:m,next:g}})};function cr(){const e=(0,d.useSelect)((e=>{const{getEditedWidgetAreas:t}=e(qe);return t()?.length>0}),[]);return(0,c.useEffect)((()=>{const t=t=>{if(e)return t.returnValue=(0,b.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[e]),null}function lr(){var e;const t=(0,d.useSelect)((e=>!!e(_.store).get("core/edit-widgets","welcomeGuide")),[]),{toggle:r}=(0,d.useDispatch)(_.store),n=(0,d.useSelect)((e=>e(qe).getWidgetAreas({per_page:-1})),[]);if(!t)return null;const a=n?.every((e=>"wp_inactive_widgets"===e.id||e.widgets.every((e=>e.startsWith("block-"))))),i=null!==(e=n?.filter((e=>"wp_inactive_widgets"!==e.id)).length)&&void 0!==e?e:0;return(0,c.createElement)(S.Guide,{className:"edit-widgets-welcome-guide",contentLabel:(0,b.__)("Welcome to block Widgets"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>r("core/edit-widgets","welcomeGuide"),pages:[{image:(0,c.createElement)(dr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,b.__)("Welcome to block Widgets")),a?(0,c.createElement)(c.Fragment,null,(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,b.sprintf)((0,b._n)("Your theme provides %s “block” area for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.","Your theme provides %s different “block” areas for you to add and edit content. Try adding a search bar, social icons, or other types of blocks here and see how they’ll look on your site.",i),i))):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,b.__)("You can now add any block to your site’s widget areas. Don’t worry, all of your favorite widgets still work flawlessly.")),(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,c.createElement)("strong",null,(0,b.__)("Want to stick with the old widgets?"))," ",(0,c.createElement)(S.ExternalLink,{href:(0,b.__)("https://wordpress.org/plugins/classic-widgets/")},(0,b.__)("Get the Classic Widgets plugin.")))))},{image:(0,c.createElement)(dr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,b.__)("Make each block your own")),(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,b.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:(0,c.createElement)(dr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,b.__)("Get to know the block library")),(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,c.createInterpolateElement)((0,b.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the icon."),{InserterIconImage:(0,c.createElement)("img",{className:"edit-widgets-welcome-guide__inserter-icon",alt:(0,b.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,c.createElement)(dr,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,c.createElement)(c.Fragment,null,(0,c.createElement)("h1",{className:"edit-widgets-welcome-guide__heading"},(0,b.__)("Learn how to use the block editor")),(0,c.createElement)("p",{className:"edit-widgets-welcome-guide__text"},(0,b.__)("New to the block editor? Want to learn more about using it? "),(0,c.createElement)(S.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,b.__)("Here's a detailed guide."))))}]})}function dr({nonAnimatedSrc:e,animatedSrc:t}){return(0,c.createElement)("picture",{className:"edit-widgets-welcome-guide__image"},(0,c.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,c.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}var ur=function({blockEditorSettings:e}){const{createErrorNotice:t}=(0,d.useDispatch)(v.store);return(0,c.createElement)(ct,null,(0,c.createElement)(Et,{blockEditorSettings:e},(0,c.createElement)(sr,{blockEditorSettings:e}),(0,c.createElement)(xt,null),(0,c.createElement)(S.Popover.Slot,null),(0,c.createElement)(K.PluginArea,{onError:function(e){t((0,b.sprintf)((0,b.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}),(0,c.createElement)(cr,null),(0,c.createElement)(lr,null)))};const mr=["core/more","core/freeform","core/template-part","core/block"];function gr(e,t){const r=document.getElementById(e),n=(0,c.createRoot)(r),a=(0,g.__experimentalGetCoreBlocks)().filter((e=>!(mr.includes(e.name)||e.name.startsWith("core/post")||e.name.startsWith("core/query")||e.name.startsWith("core/site")||e.name.startsWith("core/navigation"))));return(0,d.dispatch)(_.store).setDefaults("core/edit-widgets",{fixedToolbar:!1,welcomeGuide:!0,showBlockBreadcrumbs:!0,themeStyles:!0}),(0,d.dispatch)(l.store).__experimentalReapplyBlockTypeFilters(),(0,g.registerCoreBlocks)(a),(0,h.registerLegacyWidgetBlock)(),(0,h.registerLegacyWidgetVariations)(t),_r(s),(0,h.registerWidgetGroupBlock)(),t.__experimentalFetchLinkSuggestions=(e,r)=>(0,p.__experimentalFetchLinkSuggestions)(e,r,t),(0,l.setFreeformContentHandlerName)("core/html"),n.render((0,c.createElement)(ur,{blockEditorSettings:t})),n}const pr=gr;function hr(){m()("wp.editWidgets.reinitializeEditor",{since:"6.2",version:"6.3"})}const _r=e=>{if(!e)return;const{metadata:t,settings:r,name:n}=e;t&&(0,l.unstable__bootstrapServerSideBlockDefinitions)({[n]:t}),(0,l.registerBlockType)(n,r)}}(),(window.wp=window.wp||{}).editWidgets=n}(); \ No newline at end of file diff --git a/wp-includes/version.php b/wp-includes/version.php index 947f812d91..d655aaf9e5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-56085'; +$wp_version = '6.3-alpha-56086'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.